Expand description
Reversi
Check struct Reversi
for more information
§Examples
use gamie::reversi::{Reversi, Player as ReversiPlayer};
let mut game = Reversi::new().unwrap();
game.place(ReversiPlayer::Player0, 2, 4).unwrap();
// The next player may not be able to place the piece in any position, so check the output of `get_next_player()`
assert_eq!(game.get_next_player(), ReversiPlayer::Player1);
game.place(ReversiPlayer::Player1, 2, 3).unwrap();
// ...
Structs§
- Reversi
Enums§
- Players
- Errors that can occur when placing a piece on the board
- Game status