Skip to content

Instantly share code, notes, and snippets.

@kubaracek
Created February 23, 2019 17:51
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/39c6d38c364c95f3b2b8a10edb09998f to your computer and use it in GitHub Desktop.
Save kubaracek/39c6d38c364c95f3b2b8a10edb09998f to your computer and use it in GitHub Desktop.
validWords (Round (Player "Kuba") (Available "abcd") [(Guess "a"), (Guess "abb"), (Guess "ab"), (Guess "d")] [YellowCard])
-- ["a","ab","d"]
validWords (Round (Player "Kuba") (Available "abcd") [(Guess "a"), (Guess "abb"), (Guess "ab"), (Guess "d")] [YellowCard, YellowCard])
-- ["a","ab"]
validWords (Round (Player "Kuba") (Available "abcd") [(Guess "a"), (Guess "abb"), (Guess "ab"), (Guess "d")] [RedCard])
-- ["a","ab"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment