a few days

This commit is contained in:
Tim Nope
2022-12-21 20:04:44 +01:00
parent 83c28369c7
commit 2292e4a65f
741 changed files with 8372 additions and 98 deletions

View File

@ -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)) {

View File

@ -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());