Trait shess::Mode[][src]

pub trait Mode {
    const PLAYERS: usize;
    const STARTING_PLAYER: i32;
    const DIMENSIONS: usize;

    fn new() -> Self;
fn create_player(&self) -> Vec<Player>;
fn next_move(
        &mut self,
        input: String,
        player: i32
    ) -> Result<Option<String>, String>;
fn execute_move(&mut self, player: i32);
fn board(&self) -> (Vec<RenderMove2D>, usize);
fn next_player(&self) -> PlayerSwap; }

Associated Constants

Loading content...

Required methods

fn new() -> Self[src]

fn create_player(&self) -> Vec<Player>[src]

fn next_move(
    &mut self,
    input: String,
    player: i32
) -> Result<Option<String>, String>
[src]

fn execute_move(&mut self, player: i32)[src]

fn board(&self) -> (Vec<RenderMove2D>, usize)[src]

fn next_player(&self) -> PlayerSwap[src]

Loading content...

Implementors

impl Mode for Default8x8[src]

Loading content...