Debug information about positions of units
Random position for flag and enemy (function Random)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
constexpr auto SIZE = 10;
|
||||
constexpr auto SIZE_FOR_ARRAY = SIZE - 1;
|
||||
constexpr auto ARMY = 5;
|
||||
|
||||
class Game {
|
||||
private:
|
||||
@@ -17,13 +18,16 @@ public:
|
||||
field[i][j] = '*';
|
||||
}
|
||||
}
|
||||
|
||||
gamers[0].set_name('P');
|
||||
gamers[1].set_name('E');
|
||||
};
|
||||
|
||||
void info();
|
||||
void init();
|
||||
void play();
|
||||
|
||||
private:
|
||||
void Random(char);
|
||||
void clearScreen();
|
||||
void print_field();
|
||||
};
|
||||
Reference in New Issue
Block a user