d03 ex01 guardGate functions
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user