Struct noughts_and_crosses_lib::GameBoard [−][src]
pub struct GameBoard { /* fields omitted */ }
Methods
impl GameBoard
[src]
impl GameBoard
pub fn random_placement(self, player_to_place: Players) -> Option<Self>
[src]
pub fn random_placement(self, player_to_place: Players) -> Option<Self>
impl GameBoard
[src]
impl GameBoard
pub fn place_largest_empty(
self,
inputs: &[f64],
player_to_place: Players
) -> Option<Self>
[src]
pub fn place_largest_empty(
self,
inputs: &[f64],
player_to_place: Players
) -> Option<Self>
pub fn process_rating_board(
self,
rating_board: RatingBoard,
player_to_place: Players
) -> Self
[src]
pub fn process_rating_board(
self,
rating_board: RatingBoard,
player_to_place: Players
) -> Self
impl GameBoard
[src]
impl GameBoard
pub fn smart_random_placement(self, player_to_place: Players) -> Self
[src]
pub fn smart_random_placement(self, player_to_place: Players) -> Self
impl GameBoard
[src]
impl GameBoard
pub fn draw_game_board(&self, game_mode: &GameMode)
[src]
pub fn draw_game_board(&self, game_mode: &GameMode)
impl GameBoard
[src]
impl GameBoard
pub fn move_cursor(self, inputed_movement: Movement) -> Option<Self>
[src]
pub fn move_cursor(self, inputed_movement: Movement) -> Option<Self>
impl GameBoard
[src]
impl GameBoard
pub fn has_someone_won(self) -> Winner
[src]
pub fn has_someone_won(self) -> Winner
impl GameBoard
[src]
impl GameBoard
pub fn is_board_full(self) -> bool
[src]
pub fn is_board_full(self) -> bool
impl GameBoard
[src]
impl GameBoard
pub fn empty_board() -> Self
[src]
pub fn empty_board() -> Self
Trait Implementations
impl Copy for GameBoard
[src]
impl Copy for GameBoard
impl Clone for GameBoard
[src]
impl Clone for GameBoard
fn clone(&self) -> GameBoard
[src]
fn clone(&self) -> GameBoard
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for GameBoard
[src]
impl Debug for GameBoard
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Index<usize> for GameBoard
[src]
impl Index<usize> for GameBoard
type Output = [TileStatus; 3]
The returned type after indexing.
fn index(&self, index: usize) -> &[TileStatus; 3]
[src]
fn index(&self, index: usize) -> &[TileStatus; 3]
Performs the indexing (container[index]
) operation.