support multiple stages for each level, resetting the machine between
This commit is contained in:
parent
e6437ae9cf
commit
43130b665d
17 changed files with 220 additions and 126 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue