NIM (Set Up) Click the Green Flag to start. A turn constitutes removing as many coins you like, but only from one Group. The winner is the player who takes the last coin. Code for creating a Random Game is deliberately missing, because it is a student exercise to write it. There are also 2 missing lines for students to write in code to scramble & unscramble the coins.
© Copyright Kids Unlimited 2016 Created by @gregatku for use in Coding Classes for Kids Unlimited, for whom I work as a Coding teacher. Greatly improved using advice from @DiegoOld, who taught me to "ask" less/no questions, how to identify Clones so their id can be used later to trigger their deletion, and showing me how to make sliders appear to take on alpha values. There are comments inside to attempt to explain the perfect strategy.