load program input when opening a solution

This commit is contained in:
Crispy 2024-10-06 20:02:43 +02:00
parent 146618cdc3
commit 4a51369b18
4 changed files with 7 additions and 21 deletions

View file

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