Design a game in java, JAVA Programming

Assignment Help:

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.


Related Discussions:- Design a game in java

Pogram must work on all realms and all ladders, Project Description: The...

Project Description: The program must work on all realms, all ladders, all cores (4x realms,2x ladders,2x cores) The program must be unpatchable and undetectable If patche

Applying java if and if..else statements, For this Assignment, submit the f...

For this Assignment, submit the following program: Create an application for an animal-fur trimming service. The business is open 15 weeks of the year, from April through July. The

Explain about core java, Java is increasingly used for middleware applicati...

Java is increasingly used for middleware applications to communicate among Server and clients. Java has features like multithreading, portability and networking capabilities. Chang

Implement the list calss, Your next task is to implement the MovieList clas...

Your next task is to implement the MovieList class that manages the details for a list of DVD Movies read from the specified data file. The constructor will include a parameter tha

Create a new project in eclipse , Task 1 Create a new project in Eclips...

Task 1 Create a new project in Eclipse called Assignment 1. Within this project create a package called task01. 1/ Download the class Date (you must use this class - no

Explain function arguments with the help of an example, Explain function ar...

Explain function arguments with the help of an example? Arguments on a function are comma separated list of data enclosed within braces. It describes interface among the web pa

Develop contact list application, Develop Contact list application Proje...

Develop Contact list application Project Description: Prepare a computer application to help employees manage their contact list. Users must be able to store two kinds of con

Dialog window in Oracle by Java stored procedure, Is it possible to create ...

Is it possible to create any dialog window in Oracle in Java stored procedure?

Support for web and enterprise web applications, Support for Web and Enterp...

Support for Web and Enterprise Web Applications Java offers an extensive support for the development of web and enterprise applications Servlets, JSP, Applets, RMI, JDBC, EJBs

Explain how many ways businesses monitor their employees, Explain how many ...

Explain how many ways businesses monitor their employees? • Systems are available which monitor almost every key stroke that an employee forms on a computer. • Systems are avai

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd