fours 0.1.0

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

/// A position on the board.
///
/// Columns are numbered from zero and left to right. Rows are numbered from zero and bottom to
/// top, so row zero is the row a disc reaches when it is placed in an empty column.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct Cell {
    pub column: usize,
    pub row: usize,
}

impl Cell {
    /// A cell at the given column and row.
    pub const fn new(column: usize, row: usize) -> Self {
        Self { column, row }
    }
}

impl fmt::Display for Cell {
    fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(formatter, "(column {}, row {})", self.column, self.row)
    }
}