diff --git a/Clients/Java/main.java b/Clients/Java/main.java index a544619..844215a 100644 --- a/Clients/Java/main.java +++ b/Clients/Java/main.java @@ -96,6 +96,7 @@ public void setInfo() { int x = scanner.nextInt(); int y = scanner.nextInt(); location = new Point(x, y); // (row, column) + map.grid = new Vector<>(); for (int i = 0; i < map.sightRange * map.sightRange; i++) { MapTile tile = new MapTile(); tile.type = MapType.values()[scanner.nextInt()]; diff --git a/src/process/GameHandler.py b/src/process/GameHandler.py index b10076e..4cb1637 100644 --- a/src/process/GameHandler.py +++ b/src/process/GameHandler.py @@ -119,7 +119,7 @@ def check_finish(self): self.end_engine = True self.winner = [1, 'Timeout'] if(self.end_engine): - self.winner[0] = randrange(2) + self.winner[0] += randrange(2) self.winner[1] += '/random' def update_info(self):