t2048 1.0.2

A 2048 clone for the terminal, built with ratatui
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! A 2048 clone for the terminal, built with ratatui.
//!
//! The crate is split so the rules can be tested without a terminal:
//!
//! - [`game`] holds the rules and knows nothing about rendering.
//! - [`app`] holds the application state and turns key presses into moves.
//! - [`ui`] draws an [`app::App`] with ratatui.
//! - [`theme`] holds the colour palette.
//! - [`storage`] remembers the best score between runs.
//!
//! The `t2048` binary in `src/main.rs` is a thin wrapper that wires these
//! together with a terminal event loop.

pub mod app;
pub mod game;
pub mod storage;
pub mod theme;
pub mod ui;