Expand description
Core game logic for Rusty2048
This module provides the fundamental game mechanics including:
- Game board representation
- Move validation and execution
- Score calculation
- Game state management
- Random number generation with seed support
Re-exports§
pub use ai::AIAlgorithm;pub use ai::AIGameController;pub use ai::AIPlayer;pub use board::Board;pub use error::GameError;pub use error::GameResult;pub use game::Direction;pub use game::Game;pub use game::GameState;pub use replay::ReplayData;pub use replay::ReplayManager;pub use replay::ReplayMetadata;pub use replay::ReplayMove;pub use replay::ReplayPlayer;pub use replay::ReplayRecorder;pub use rng::GameRng;pub use score::Score;pub use stats::create_session_stats;pub use stats::GameSessionStats;pub use stats::StatisticsManager;pub use stats::StatisticsSummary;
Modules§
Structs§
- Game
Config - Game configuration
- Game
Stats - Game statistics
Functions§
- get_
current_ time - Get current time as Unix timestamp