Crates.io | arimaa_engine_step |
lib.rs | arimaa_engine_step |
version | 1.0.1 |
source | src |
created_at | 2022-06-19 08:34:38.812205 |
updated_at | 2022-06-19 16:54:42.750498 |
description | A step based engine for the board game Arimaa. |
homepage | |
repository | https://github.com/JamesMHarmon/arimaa-engine-step |
max_upload_size | |
id | 608862 |
size | 285,746 |
A game engine for the board game Arimaa. This library provides the functionalities:
use arimaa_engine_step::{action, board};
let game_state = board!(
"2g
+-----------------+
8| h c d m e d c h |
7| r r r r r r r r |
6| x x |
5| |
4| |
3| x x |
2| R R R R R R R R |
1| H C D M E D C H |
+-----------------+
a b c d e f g h"
);
let action = action!(d2n);
let game_state = game_state.take_action(&action);
println!("{:?}", game_state.valid_actions());
This project is licensed under the MIT license.