fours 0.1.0

Four in a row in your terminal, with three levels of opponent.
Documentation
//! The rules of four in a row.
//!
//! [`GameState`] holds a valid position: a board, the player to move and the current
//! [`Status`]. [`Game`] wraps a state together with the moves that produced it.
//!
//! Moves are made by column. Columns are numbered from zero and left to right, rows are numbered
//! from zero and bottom to top.
//!
//! # Examples
//!
//! ```
//! use fours::game::Cell;
//! use fours::game::GameState;
//! use fours::game::Player;
//!
//! let mut state = GameState::new();
//! let placement = state.apply_move(0).unwrap();
//!
//! assert_eq!(placement.player, Player::Red);
//! assert_eq!(placement.cell, Cell::new(0, 0));
//! assert_eq!(state.current_player(), Player::Yellow);
//! ```

mod board_dimensions;
mod cell;
mod error;
mod game_state;
mod placement;
mod player;
mod running_game;
mod status;

pub use board_dimensions::BoardDimensions;
pub use board_dimensions::MAXIMUM_SIDE;
pub use board_dimensions::MINIMUM_SIDE;
pub use cell::Cell;
pub use error::GameError;
pub use game_state::GameState;
pub use placement::Placement;
pub use player::Player;
pub use running_game::Game;
pub use status::Status;
pub use status::Victory;

/// The number of discs a player has to line up in order to win.
pub const LINE_LENGTH: usize = 4;