This commit is contained in:
nora 2022-11-21 15:46:49 +01:00
parent 5c95aa7536
commit 7f3a0e5ad2
No known key found for this signature in database
3 changed files with 127 additions and 3 deletions

View file

@ -1,14 +1,17 @@
#![feature(never_type, try_trait_v2)]
#![feature(never_type, try_trait_v2, return_position_impl_trait_in_trait)]
#![allow(incomplete_features)]
pub mod connect4;
mod minmax;
pub mod tic_tac_toe;
mod player;
use self::minmax::GameBoard;
pub use player::{Player, State};
pub trait Game {
type Board;
type Board: GameBoard;
}
pub trait GamePlayer<G: Game>: Default {