Expand description
Gameboard is a small library to create text UI for board games (like tic-tac-toe, scrabble etc.). It allows you to easily draw and update board in the terminal.
Board must be rectangular and must contain rectangular cells. Also information board is supported.
Library uses termion crate for terminal input/output.
Re-exports§
pub use board::Board;
pub use board::ResourceTable;
pub use board::CellUpdates;
pub use cell::Cell;
pub use game::Game;
pub use game::GameState;
pub use game::InputListener;
pub use game::Position;
pub use info::Info;
pub use info::InfoLayout;
pub use cursor::Cursor;
Modules§
- Game board.
- Board cell.
- Simple cursor implementation.
- Main game object.
- Information area.