Andi Sutedja - CS 680 Spring 2002 MarbleGame Applet Project
MarbleGame will appear below in a Java enabled browser.


Important: Please Read the Game Rule and How-to-Play Instructions first before playing!
Note: Best Run On Internet Explorer 6 or Netscape 6 or Higher

Click here for the Java Documentation of this game.
The Source Code is also available here.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Rule of this Marble Game:

MarbleGame is a 2-player version of the conventional game of shooting marbles.

At the beginning of the game, player has to hit the Lag button to start the lagging session in order to determine who starts the shooting first. At this lagging session, two horizontal lines will be drawn each on the northern and southern parts of the ring. The players will shoot from the south to north direction attempting to get their shooters as close as possible to the northern horizontal line (but not over the line). The player with the shortest distance to the northern horizontal line starts the game first. The player that makes its shooter over the northern horizontal line will lose in this lagging session (means the other player will start the game first). If both players get their shooters over the northern horizontal line, they have to start the lag over again.

During the game, each player's turn is signaled by the turn indicators on the lower left and right corner of the game window for player 1 and player 2, respectively. When it is the player's turn his/her turn indicator will glow red. The scores for both players are shown on the upper panel of the game window.

The player will get his/her score based on the number of marbles he or she shoots out the ring (score of 1 for each marble). The game will be over if all the marbles have been shot out of the ring, and the winner is determined by the score received by each player. Note: if say, player 1's shooter hits player 2's shooter out of the ring, then player 1 will get the score obtained by player 2 up to that moment added to player 1's score and the game will be over with player 1 as the winner. The player will continue with his/her turn as long as he/she can keep shooting each marble out of the ring, even if his/her shooter goes outside the ring after the shot. The turn will go to the other player only if the current player cannot shoot the marble outside of the ring.

The player's marble is indicated by a black dot on the center of the marble. Player 1 has the white marble and player 2 has the yellow marble.

back to top

 

 

How to play?

1. Click the LAG button to start the lag session to find out which player starts the game first.

2. To make a shot, the player should use the mouse to click on a point (a mark will be placed there) behind his/her shooter and another point behind the first point to determine the power and direction of the shot. The farther apart the two points are the greater the force that will be applied to the shooter, thereby the faster and farther the shooter will travel. After clicking to make the two marks, the player needs to click on the SHOOT button to make the shot.

3. Click on the CLEAR button to clear the marks.

4. Click on the NEW GAME button or the "refresh" button on your web browser to start a new game.

5. HAVE FUN!

back to top