-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb19786
commit 72efdb1
Showing
2 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |