Debug information about positions of units

Random position for flag and enemy (function Random)
This commit is contained in:
2025-07-07 17:42:31 +03:00
parent 253e1cf423
commit 7da1909c76
7 changed files with 110 additions and 52 deletions

View File

@@ -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();
};