Design a game in java, JAVA Programming

The game of Kala is played on a rectangular board:

1730_Design a Game in java.png

In front of each player are six pits numbered 1 to 6 (called the 'side pits'). To the right of a player's side pits is a special pit, called the player's 'kala'. Initially, all the side pits contain an equal number of stones. A 'move' consists of taking the stones from one of one's own side pits and distributing them anti-clockwise one-by-one in the other pits, including one's own kala, but not the opponent's kala. There are two rules:

  • Players make moves alternately except when the last stone of a heap being distributed lands in the current player's kala, and the current player is rewarded with another go.
  • If the last stone of a heap moved by a player lands in an empty side pit on the player's own side, that stone together with any stones in the opposite side pit belonging to the player's opponent are won and transferred to the current player's kala. This is referred to as a 'capture'.

The game ends when the player whose turn it is cannot make a move (i.e., all of that player's side pits are empty). Each player's ?nal score is the number of stones in the player's kala plus the number (if any) in their side pits. The player with the higher score is the winner. For a good beginner's game, start with two or three stones in each side pit. Starting with six stones or more in each pit results in quite a diffcult game.

Posted Date: 2/23/2013 4:28:07 AM | Location : United States







Related Discussions:- Design a game in java, Assignment Help, Ask Question on Design a game in java, Get Answer, Expert's Help, Design a game in java Discussions

Write discussion on Design a game in java
Your posts are moderated
Related Questions
Fill in the necessary parts to create a GUI that uses the CardDeck class.  In your GUI you should have a text field for each hand, two buttons and a text area.   Your program s

1) Around : org.aopalliance.intercept.MethodInterceptor 2) Before : org.springframework.aop.BeforeAdvice 3)  After : org.springframework.aop.AfterReturningAdvice 4) Throws

Describe about Applet Security? The possibility of surfing the Net, wandering across a random page, playing an applet and catching a virus is a fear in which has scared several

What is the difference between inner class and nested class? When a class is explained within a scope od another class, then it becomes inner class. If the access modifier o

I have to write a several line currency exchange rate calculator.it wants me to use a variable and prompt var dollarAmount = Prompt("Enter amount in U.S. dollars:"); and give t

I want to develop a Chat application for j2me Project Description: We require a chat application for a community website. Skills required: Java, J2ME

Java Project Introduction: In this project, you will explore a few sorting algorithms. You will also test their efficiency by both timing how long a given sorting operation take

how i made a calculator in java plz tell help me

Ask question how to implement a decision tree in java #Minimum 100 words accepted#

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b