fours 0.1.0

Four in a row in your terminal, with three levels of opponent.
Documentation
use crate::game::Cell;
use crate::game::Player;
use std::fmt;

/// A disc that was added to the board by a move.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct Placement {
    /// The player who made the move.
    pub player: Player,
    /// Where the disc came to rest.
    pub cell: Cell,
}

impl Placement {
    /// A placement of a disc by a player at a cell.
    pub const fn new(player: Player, cell: Cell) -> Self {
        Self { player, cell }
    }
}

impl fmt::Display for Placement {
    fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(formatter, "{} at {}", self.player, self.cell)
    }
}