mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-06 03:15:48 -06:00
- Moved game logic from `game.rs` to `game/mod.rs` and `game/state.rs` for better organization. - Updated `App` to utilize the new `Game` struct and its state management. - Refactored error handling - Removed unused audio subsystem references
14 lines
252 B
Rust
14 lines
252 B
Rust
use pacman::constants::RAW_BOARD;
|
|
use pacman::map::Map;
|
|
|
|
mod collision;
|
|
mod item;
|
|
|
|
#[test]
|
|
fn test_game_map_creation() {
|
|
let map = Map::new(RAW_BOARD).unwrap();
|
|
|
|
assert!(map.graph.node_count() > 0);
|
|
assert!(!map.grid_to_node.is_empty());
|
|
}
|