|
|
|
|
|
by wbillingsley
367 days ago
|
|
I set this as part of a Scala programming assignment for my second year undergraduate class at UNE (Australia) last term. However, during the working a square is not Queen | Eliminated but Set[Queen | NotQueen] Largely so from a programming perspective it becomes a simplified version of Einstein's Riddle that I showed the class, doing in a similar way. https://theintelligentbook.com/willscala/#/decks/einsteinPro... Where at each step, you're just eliminating one or more possibilities from a cell that starts out containing all of them. Queens has fewer rules to code, making it more amenable for students. |
|