Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Windows Develop
Title: Nim Download
 Description: Nim game (The game of Nim) is a well-known and there are many versions of the game. Here is an interesting version of a winning strategy. Two players alternately remove stones from the pile of a certain number, the number of the participants own decision. but requires participants to take out at least one time, up to remove the half, and then the other participants to continue. get the last stone of the participants will lose the game. Write a program that allows computers and the throne. 10 to 100 generate a random number as the initial number of pebbles. And then, randomly generated 0 or 1, to determine whether to play or people get the computer to play first. Then, again randomly produce 0 or 1, to determine the computer using "smart" or "stupid" mode. in stupid mode, the turn of the computer, simply pick random number (from 1 to n/2 between) the stones in smart mode, the computer each time you pick a certain number of stones, making the number of remaining stones is a power of 2
 Downloaders recently: [More information of uploader fy1990825]
 To Search: nim
  • [AcmGameTheory] - ACM- game theory book on the game some o
  • [nim] - Nim game is a well-known, and there are
File list (Check if you may need any files):
Nim\Debug\Main.obj
...\.....\Nim.exe
...\.....\Nim.ilk
...\.....\Nim.obj
...\.....\Nim.pch
...\.....\Nim.pdb
...\.....\vc60.idb
...\.....\vc60.pdb
...\Main.cpp
...\Nim.cpp
...\Nim.dsp
...\Nim.dsw
...\Nim.h
...\Nim.ncb
...\Nim.opt
...\Nim.plg
...\nim游戏的说明.txt
...\Debug
Nim
    

CodeBus www.codebus.net