support multiple stages for each level, resetting the machine between

This commit is contained in:
Crispy 2024-12-18 21:31:05 +01:00
parent e6437ae9cf
commit 43130b665d
17 changed files with 220 additions and 126 deletions

View file

@ -21,12 +21,12 @@ pub struct Machine {
}
impl Machine {
pub fn new_empty(input: Vec<u8>, width: usize) -> Self {
pub fn new_empty() -> Self {
Self {
board: Board::new_empty(width, width),
board: Board::new_empty(5, 5),
marbles: Vec::new(),
powered: Vec::new(),
input,
input: Vec::new(),
input_index: 0,
output: Vec::new(),
steps: 0,