From e22b3397c7de17177b6bc2c27f69aaa4920a1e67 Mon Sep 17 00:00:00 2001 From: Drobor Date: Fri, 4 Oct 2019 21:16:08 +0300 Subject: [PATCH 1/2] fix c# starter bot doesnt clear robots lists --- config/starterAI/Starter.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/starterAI/Starter.cs b/config/starterAI/Starter.cs index 916612b..98d497b 100644 --- a/config/starterAI/Starter.cs +++ b/config/starterAI/Starter.cs @@ -187,7 +187,9 @@ public Player() int trapCooldown = int.Parse(inputs[2]); // turns left until a new trap can be requested game.Radars.Clear(); game.Traps.Clear(); - for (int i = 0; i < entityCount; i++) + game.MyRobots.Clear(); + game.OpponentRobots.Clear(); + for (int i = 0; i < entityCount; i++) { inputs = Console.ReadLine().Split(' '); int id = int.Parse(inputs[0]); // unique id of the entity From 71af967ca5c7fcac2f6291a31f7405db6dc3e689 Mon Sep 17 00:00:00 2001 From: Drobor Date: Fri, 4 Oct 2019 21:18:32 +0300 Subject: [PATCH 2/2] remove spaces --- config/starterAI/Starter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/starterAI/Starter.cs b/config/starterAI/Starter.cs index 98d497b..bf75502 100644 --- a/config/starterAI/Starter.cs +++ b/config/starterAI/Starter.cs @@ -189,7 +189,7 @@ public Player() game.Traps.Clear(); game.MyRobots.Clear(); game.OpponentRobots.Clear(); - for (int i = 0; i < entityCount; i++) + for (int i = 0; i < entityCount; i++) { inputs = Console.ReadLine().Split(' '); int id = int.Parse(inputs[0]); // unique id of the entity