d03 ex01 guardGate functions

This commit is contained in:
Hugo LAMY
2022-02-18 18:44:09 +01:00
parent ab0a2c4184
commit 1d9b557b57
3 changed files with 4 additions and 1 deletions

View File

@@ -54,11 +54,14 @@ int main() {
goAttack(robot1, robot2);
goAttack(robot2, robot1);
goAttack(robot1, robot3);
robot2.guardGate();
goAttack(robot1, robot4);
goAttack(robot4, robot2);
goAttack(robot2, robot3);
goAttack(robot2, robot4);
robot3.guardGate();
goAttack(robot3, robot1);
robot2.guardGate();
goAttack(robot3, robot4);
goAttack(robot2, robot1);
goAttack(robot2, robot4);