Struct taxi::Game [] [src]

pub struct Game { /* fields omitted */ }

The Game with accompanying state

Methods

impl Game
[src]

Initialize a new game state

Returns size of the game world

Returns true if player has won the game

Passenger position

Goal position

Returns player position

Returns true if passenger has been picked up

Returns a distance to a game goal

Returns a distance to a passenger

Enter move directly and optionally print the map Returns a bool signifying whether or not this move lead to winning the game

Makes a move and mutates the board, doesn't return anything

Print the map on screen

Trait Implementations

impl PartialEq for Game
[src]

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

This method tests for !=.

impl Eq for Game
[src]

impl Hash for Game
[src]

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

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

impl Clone for Game
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more