feat: TrictracBoard for kZero

This commit is contained in:
Henri Bourcereau 2025-09-01 14:47:09 +02:00
parent 4e299b04e2
commit e66d8b6624
5 changed files with 22 additions and 8 deletions

View file

@ -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()
}