feat: TrictracBoard for kZero
This commit is contained in:
parent
4e299b04e2
commit
e66d8b6624
5 changed files with 22 additions and 8 deletions
|
|
@ -6,10 +6,11 @@ use board_game::board::{
|
|||
use board_game::impl_unit_symmetry_board;
|
||||
use internal_iterator::InternalIterator;
|
||||
use std::fmt;
|
||||
use std::hash::Hash;
|
||||
use std::ops::ControlFlow;
|
||||
use store::Color;
|
||||
|
||||
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||
#[derive(Clone, Debug, Eq, PartialEq, Hash)]
|
||||
pub struct TrictracBoard(crate::GameState);
|
||||
|
||||
impl Default for TrictracBoard {
|
||||
|
|
@ -78,6 +79,10 @@ impl BoardGameBoard for TrictracBoard {
|
|||
}
|
||||
|
||||
impl TrictracBoard {
|
||||
pub fn inner(&self) -> &crate::GameState {
|
||||
&self.0
|
||||
}
|
||||
|
||||
pub fn to_fen(&self) -> String {
|
||||
self.0.to_string_id()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue