Wednesday, December 17, 2008

ABSTRACT

 The "Even Markers" is a simple two players game. The first player is the computer and the second is the user. The game intially starts with a (random) odd number of markers. The player can draw either 1,2,3 or 4 markers in a single chance. The win condition of the game is that the number of markers owned by the player after his last draw should be even. Otherwise the computer is the winner. 
 Here the Even.java class computes the initial number of markers, a random number for the system for its draw, markers after a draw, the number of markers owned by each player. The Keyin.java class takes the input from the user and verifies it against error conditions.

No comments:

Post a Comment