Skip to content

Single Pile NIM game written in multiple languages. It's like "Hello, World!", but more complicated.

License

Notifications You must be signed in to change notification settings

mstop4/SinglePileNIM_Multilang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Single Pile NIM Multilanguage

Single Pile NIM game written in multiple languages. It's like "Hello, World!", but more complicated.

Current list of languages:

Rules

The game starts with N objects. The human player and computer player each take turns taking 1 to M objects from N. Whoever takes the last object loses. The human player always goes first.

M is determined randomly each game (= an integer between 2 and 5 inclusive). N is calculated with random factors based on the value of M (possible range of N: an integer between 7 to 35 inclusive).