load program input when opening a solution
This commit is contained in:
parent
146618cdc3
commit
4a51369b18
4 changed files with 7 additions and 21 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue