Created
February 10, 2019 15:25
-
-
Save JPMoresmau/e6d4ee734513ea7156de94d7eee2670c to your computer and use it in GitHub Desktop.
Lovecraft: main
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use lovecraft::{ | |
solve, | |
parse_grid, | |
}; | |
use std::env; | |
fn main() { | |
let args: Vec<String> = env::args().collect(); | |
let grid_desc = &args[1]; | |
let moves = solve(parse_grid(grid_desc)); | |
println!("{:?}",moves); | |
println!("{} moves",moves.len()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment