You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: codeclash/games/robotrumble/robotrumble.py
+53-22Lines changed: 53 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,4 @@
1
+
importjson
1
2
importshlex
2
3
importsubprocess
3
4
fromcollectionsimportCounter
@@ -14,17 +15,26 @@ class RobotRumbleGame(CodeGame):
14
15
name: str="RobotRumble"
15
16
description: str="""RobotRumble is a turn-based coding battle where you program a team of robots in Python to move, attack, and outmaneuver your opponent on a grid.
16
17
Every decision is driven by your code, and victory comes from crafting logic that positions robots smartly, times attacks well, and adapts over the 100-turn match."""
18
+
default_args: dict= {"raw": True}
17
19
submission: str="robot.js"
18
20
19
21
def__init__(self, config, **kwargs):
20
22
super().__init__(config, **kwargs)
21
23
assertlen(config["players"]) ==2, "RobotRumble is a two-player game"
0 commit comments