-
-
2.3.zip
一个简单的猜数游戏程序:
利用Math.random()方法生成0-1之间的double型数dNum,将dNum转换为0-100之间的整数iNum。
利用KeyInput.readInt()方法接收键盘输入的整数inNum。如果inNum小于iNum,在屏幕上显示“输入的值小,请输入更大的数.”;如果inNum大于iNum,在屏幕上显示“输入的值大,请输入更小的数.”;如果inNum等于iNum,在屏幕上显示“猜对了.”,并结束运行。
猜测错误 ...
-
caro.rar
This program implement minimax algorithm for caro game for two players, O and X, who take
turns marking the spaces ... marks in a consecutive horizontal, vertical or diagonal row wins the game. Suppose O is
the minimizing player and X is the ...
-
-
conn4_Ass3Prolog.rar
This program which is written in SWI-Prolog makes the "connect 4" game. just type "play." to start seeing the play. There are two opponents there, X and O which are both computer and compete.
-
-
-
beginningcsharpgameprogram.rar
... try your hand at programming games using C#? "Beginning C# Game Programming" is your ideal introductory guide—designed to jumpstart ... your newfound knowledge to the test as you program a complete game!
Provides true beginners with the programming skills ...
-
-
-
-