mirror of
https://github.com/Noratrieb/minmax.git
synced 2026-01-17 08:45:04 +01:00
minmax
This commit is contained in:
parent
5c95aa7536
commit
7f3a0e5ad2
3 changed files with 127 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue