This commit is contained in:
nora 2022-12-05 11:05:23 +01:00
parent 6172250ff5
commit 5b0c3106c0
No known key found for this signature in database
11 changed files with 560 additions and 185 deletions

View file

@ -3,10 +3,6 @@ use crate::{GamePlayer, Player, State};
use super::TicTacToe;
impl TicTacToe {
pub fn default_play<X: GamePlayer<TicTacToe>, O: GamePlayer<TicTacToe>>() -> Option<Player> {
Self::empty().play(&mut X::default(), &mut O::default())
}
pub fn play<A: GamePlayer<TicTacToe>, B: GamePlayer<TicTacToe>>(
&mut self,
x: &mut A,