Processing A06

Create an interactive interface for the game of Nim. Each iteration of the game begins with three rows of random length (from 1-10), with the text indicating which player’s turn it is.

Nim is a two-player mathematical game of strategy in which players take turns removing objects from distinct heaps. On each turn, a player must remove at least one object, and may remove any number of objects provided they all come from the same heap. The person who makes the last move (i.e., who takes the last object) wins.

Java Applet | .PDE Source Code

Tags Posted under technology by Brooks Guthrie

Share your comment

You must be logged in to post a comment.