a few days
This commit is contained in:
@ -143,6 +143,9 @@ pub fn run(inp :Vec<String>) {
|
||||
|
||||
|
||||
let mut highest_point = find_highest(&positions);
|
||||
|
||||
// check if the top row is completely filled
|
||||
// if so we know that we can reset the board
|
||||
let mut can_be_reset = true;
|
||||
for i in 0..WIDTH {
|
||||
if !positions.contains(&Pos(i, highest_point)) {
|
||||
|
@ -32,7 +32,7 @@ fn read_file(path :&str) -> Vec<String> {
|
||||
|
||||
fn main() {
|
||||
|
||||
let inp :Vec<String> = read_file("input.txt");
|
||||
let inp :Vec<String> = read_file("test_input.txt");
|
||||
|
||||
a1::run(inp.clone());
|
||||
|
||||
|
Reference in New Issue
Block a user