Hi.
I require a simple Graphical user interface for the game of GO. The time limit is the main factor here. I require it in 3 days.
Game of GO is a board game where two players play moves alternatively and place stones on the board. The two players are black and white.
I require a 13 * 13 board. The stones are placed on the intersections of the board.
The user should be provided with the functionality of:
1. going to previous move(s)
2. the board position should be saved in the text format and the GUI should be able to read a file from the directory. I think a file format has to implemented which takes the location of the stones, which player is to play, and what is the aim(either to kill or live) and the boundary position before saving the file to directory.
A file has been attached which gives the detailed explanation of what is required in the GUI.
The file menu should have the following features:
1. open
[login to view URL] recent file
3. save
4. save as
5. exit
The Go menu should have the following features:
1. beginning of the game
2. forward
3. forward 10 moves
4. backward
5. backward 10 moves
the game menu should have :
1. new game- should reset all to an empty board.
2. pass- should pass the move of current player to next player.
3. set clock
The edit menu should have :
1. setup black stones- when clicked should allow the user to setup the black stones only
2. setup white stones- when clicked should allow the player to setup the white stones on the board.
3. setup border- when clock should allow the user to set a border around the stones. The border should appear when the user click on the intersection around the group of stones.
The view menu should have:
1. View menu bar
2. view tool bar.
3. view info bar.
The software application is a life and death problem solver. Where a user inputs a life and death problem from a text and solves it by playing alternatively with the computer.
The 3 game rules that are to be followed are:
CAPTURE- a stone is said to be captured if it is surrounded by opponents stones from all 4 adjacent sides and has no liberties left. If it has got liberties it is said to be alive.
SUICIDE rule- a stone cannot play at an intersection if it leads to its capturing(suicide)
KO rule- a move which repeats the board position which was in the last move cannot be played.
An important thing is the legal move generator. The legal move generator should return all the legal moves for a player. The main points of consideration for the legal move generator are:
1. The legal move generator should check whether the intersection is empty for the stone to be placed.
2. If the intersection is empty, then put the stone on the intersection.
3. Then remove any opposite player stones that have no liberties.
4. then check to see if the placed stone has got any liberties or not.
5. If there are no liberties then the move is not legal.
6. If the placed stone has liberties after capturing the opponent stones, then check to see if the board position has been repeated or not. If the board position is repeated , then it is no t a legal move, else it is a legal move.
I have attached a file which describes the rules so that you get a clear understanding.
It is urgently required.
Hoping for a positive response.