A program written for LC-3 to simulate a two-player game in which stones are moved between heaps in an attempt to make the other player create an empty heap. The player to take the last object loses the game.
https://en.wikipedia.org/wiki/Nim
Written for EE306 at the University of Texas at Austin
Posted with permission
If you are also a student in EE306 you should only look at this code if permitted by your professor as a reference.