Lecture Notes on 16 Jan 2013
# Solution for the Nim Game
* Open nim.txt for reading
* Read the number of games from line 1
* Create a loop for number of games
* Read line for that game
* Split line to get number of counters in each pile
* Convert the number of counters into integers
* Calculate nim sum
* If num sum is zero write Lose Game and continue
* Create a loop to go through each pile in that game
* Compute individual nim sum with that pile
* If nim sum is less than the number of counters in
that pile remove the difference
Write result
Exit loop
* Close file
Principles of Object Oriented Programming
* Abstraction:
* Encapsulation / Information Hiding
* Inheritance
* Polymorphism