Create player.stones

parent 59ac4f73
......@@ -5,19 +5,27 @@
#define DEBUG 1
#define PLAYER_STONES 6
struct Stone {
int position; // where a stone is at right now
bool notInPlay;
bool finished;
Stone() : notInPlay(true), finished(false), position(0) {};
};
struct Player {
short score; // defaults o 0
short saturation; // their colour
int stones[6];
Stone* stones;
unsigned int field;
char* name;
Player();
Player(unsigned int field, char* name) : field(field), score(0), name(name) {};
};
struct Stone {
int position; // where a stone is at right now
Player(unsigned int field, char* name) : field(field), score(0), name(name) {
for(int i=0; i < PLAYER_STONES; i++) {
stones[i] = Stone();
}
};
};
struct Game {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment