mirror of
https://github.com/Noratrieb/minmax.git
synced 2026-01-17 08:45:04 +01:00
yes
This commit is contained in:
parent
6316c6b06e
commit
b4badd4290
9 changed files with 160 additions and 89 deletions
|
|
@ -1,14 +1,16 @@
|
|||
#![feature(never_type, try_trait_v2)]
|
||||
|
||||
mod board;
|
||||
mod connect4;
|
||||
pub mod connect4;
|
||||
mod game;
|
||||
mod perfect;
|
||||
mod player;
|
||||
|
||||
use std::io::Write;
|
||||
|
||||
pub use board::{Board, Player, State};
|
||||
pub use board::Board;
|
||||
pub use perfect::PerfectPlayer;
|
||||
pub use player::{Player, State};
|
||||
|
||||
pub trait GamePlayer: Default {
|
||||
fn next_move(&mut self, board: &mut Board, this_player: Player);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue