Skip to content

Instantly share code, notes, and snippets.

@kubaracek
Created February 21, 2019 20:29
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 kubaracek/f5c35f34e2b94934b9af565c88fbb5de to your computer and use it in GitHub Desktop.
Save kubaracek/f5c35f34e2b94934b9af565c88fbb5de to your computer and use it in GitHub Desktop.
checkCoord :: Board -> Coord -> Bool
checkCoord board (x,y) =
all (==True) [
validateVector $ getRow x board
, validateVector $ getCol y board
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment