Struct zero_sum::impls::tic_tac_toe::Board [] [src]

pub struct Board(pub [Option<Mark>; 9], pub u8);

The 3x3 game board.

Methods

impl Board
[src]

Creates an empty board.

Returns the mark that will make the next move.

Trait Implementations

impl Display for Board
[src]

Formats the value using the given formatter. Read more

impl State for Board
[src]

Returns the number of plies that have passed in the game.

Executes the given ply on this state. Pass None to execute a null move.

Reverts the given ply from the state. Pass None to revert a null move.

Returns None if the game has not reached a conclusion.

Returns true if the state is in a good place to allow the null move search optimization. This is optional to implement, returning a default of false. Read more

Executes each ply in plies on the result of the previous ply.

impl Extrapolatable<Ply> for Board
[src]

Returns a list of plies that should be considered from the current state. The search system does not assume that all plies returned are correct. Read more

impl Clone for Board
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Board
[src]

Formats the value using the given formatter.

impl Eq for Board
[src]

impl PartialEq for Board
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for Board
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more