mirror of
https://github.com/Noratrieb/minmax.git
synced 2026-01-17 00:35:05 +01:00
cli
This commit is contained in:
parent
6172250ff5
commit
5b0c3106c0
11 changed files with 560 additions and 185 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue