Sudoku up through chapter 5

This commit is contained in:
2022-11-25 12:20:01 -05:00
parent 96f5f85a27
commit 8f38a3b271
4 changed files with 182 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
//! Game board logic.
const SIZE: usize = 9;
pub struct Gameboard {
pub cells: [[u8; SIZE]; SIZE],
}
impl Gameboard {
pub fn new() -> Gameboard {
Gameboard {
cells: [[0; SIZE]; SIZE],
}
}
}