Skip to content

Commit

Permalink
chore: prepare for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
raklaptudirm committed Apr 3, 2024
1 parent bb19786 commit 72efdb1
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ataxx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ name = "ataxx"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
authors = ["Rak Laptudirm <[email protected]>"]

license = "Apache-2.0"
description = "A Rust library for the game Ataxx"
repository = "https://github.com/raklaptudirm/mexx"
keywords = ["ataxx"]
categories = ["games"]

[dependencies]
num-traits = "0.2"
Expand Down
33 changes: 33 additions & 0 deletions ataxx/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# <samp> ataxx </samp>

![Build Status](https://img.shields.io/github/actions/workflow/status/raklaptudirm/mexx/ci.yml) ![License](https://img.shields.io/crates/l/ataxx) ![Crates.io](https://img.shields.io/crates/v/ataxx
)

<samp>ataxx</samp> is a Rust package which provides various functionalities to deal with the [Ataxx](https://en.wikipedia.org/wiki/Ataxx) game in pure Rust. It provides various functionalities like board representation, move generation, UAI client creation, etc.

```rs
use std::str::FromStr;
use ataxx::{ Board, Square, Move };

fn main() {
// Parse Ataxx Board from FEN
let mut board = Board::from_str("x5o/7/7/7/7/7/o5x x 0 1").unwrap();
println!("{}" board);

// Make moves on the Board
board.make_move(Move::new_single(Square::F1));
println!("{}", board);

// Undo moves from the Board
board.undo_move();
println!("{}", board);
}
```

## Features
- Fast Board representation and Move generation using BitBoards.
- Types for various features of Ataxx, including `Board`, `Position`, `Move`, `Square`, `Color`, etc.
- Support for semi-unique hashing of Ataxx positions for hash tables.
- Parsing `Position` and `Board` from FEN strings.

Refer to the [documentation](https://docs.rs/) for a full in depth list of features and functions.

0 comments on commit 72efdb1

Please sign in to comment.