Anyone Who Can Write this program would be appreciate

Malom is one of the oldest board games. A board was found drawn in the ceiling of an Egyptian temple dating 1400 BC. The game is played on a board with 24 points where stones may be placed. Initially, the board is empty and each of the two players hold nine stones. The player with the white stones starts. During the opening, players alternately place their stones on any vacant point. After all stones have been placed, a player may slide a stone to an adjacent vacant point. If at any time during the game a player succeeds in arranging three stones in a row (closing a mill) they remove any opponent's stone that is not part of a mill. As soon as a player has only three stones left, they may jump one of their stones to any vacant point on the board. The game ends when a player has less than three stones or a player cannot make a legal move.

Requirement 1: Arrays
· The program must use a two dimensional array that is displayed at the beginning empty, and after each player’s turn.
Requirement 2: Loops
· The program should use your choice of loop type.
Requirement 3: Branching Statements
· The program should use your choice of branching statements.
Requirement 4: Declare a winner
· After each turn, the program should evaluate if there is a winner, who the winner is, and notify the players.
We will not do your work for you. Post some code and then we will help.
How much money are you offering? jk, lol.
do you want the game to be developed in opengl or direcetX?
Sounds like a console game. Do you have any idea how to: Create arrays, use loops or any if / while statements?
This is a homework question -- the OP either didn't pay enough attention in class or he is just being lazy...
I agree with Zhuge and Duoas. He's just being lazy and can't be asked to do his own homework.

I love how they never even say "Can I have help with this, please?"; they just post the question and expect it to be written for them the following morning.

Here you go:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#undef WIN32
#undef cplusplus
#define cplusplus MALOM
#define WIN32 MALOM
#define this MALOM

#include <conio.h>
#include <windows.h>
#include <iostream>

void main (void) {

cout << "This is malom. It wins";

int array[1000000000];

for (int i=18000; i>9000; i--) {
  array[i]=i;

  switch (i) {

  case i:
       cout << "Player " << i << " is the winner";
       break;  
  default:
       break;
}

}

system("PAUSE");
}
Topic archived. No new replies allowed.