Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Basical the question is about designing a cell conflict game using any kind of a language, I prefer using visual basic.

Game requirements: The cell game should be played by 2 players on the grid, using N * N, both players start with one cell each placed on opposite corners of the board. One cell occupies one tile, the cell owned by player 1 are of different color that that of the cells played by 2. A player takes his/her turn by first selecting one of his/her cells. The player then decides whether the selected cell should clone to an adjacent empty tile or whether the cell should jump over the adjacent tiles (not necessarily empty) onto an empty tile. Whenever a cell A appears on a tile T all cells on tiles adjacent to T are converted to the colour of A. The turns alternate, player 1 makes a move followed by player 2 making a move followed player 1, etc. Until the game ends. By applying min max algorithm.

Please I just need a help of how to code this, please help me out.

See also: previous question[^]
Posted
Updated 14-May-10 22:43pm
v4

1 solution

You have basically written the rules above.

You want a matrix of cells, you will need to know what cell you have selected, and then analyze the cells around for valid moves.

Nobody will just write code for you, you will need to start yourself and when get stuck on a problem come back and ask specifics.

You will also want to investigate similiar grid type games on google, e.g. minesweeper, game of life, connect4, battleships etc., and see how they have implemented the grids and positioning, rules etc.

There are articles already on the net relating to the examples mentioned, so just go google.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900