Skip to content

Instantly share code, notes, and snippets.

@JPMoresmau
Created February 10, 2019 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JPMoresmau/663e0c8148fda818563cd727153dda06 to your computer and use it in GitHub Desktop.
Save JPMoresmau/663e0c8148fda818563cd727153dda06 to your computer and use it in GitHub Desktop.
Lovecraft: basic types and functions
pub type Grid = [[bool;4];4];
pub type Pos = (usize,usize);
fn is_solved(grid: Grid) -> bool {
grid.iter().all(|r| r.iter().all(|c| *c))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment