Java Reference
In-Depth Information
How many toothpicks do you want to remove? 3
My Turn. There are 13 toothpicks left. I, the Computer, will remove 3 of them.
Your Turn. There are 10 toothpicks left. How many toothpicks do you want to remove? 3
My Turn. There are 7 toothpicks left. I, the Computer, will remove 3 of them.
Your Turn. There are 4 toothpicks left. How many toothpicks do you want to remove? 3
My Turn. There is 1 toothpick left. I, the Computer, will remove it.
YOU WIN!
Try to design your program to play as smart as possible.
 
Search WWH ::




Custom Search