MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / __init__

Method __init__

codeclash/arenas/robocode/robocode.py:31–39  ·  view source on GitHub ↗
(self, config, **kwargs)

Source from the content-addressed store, hash-verified

29 description: str = f"""Robocode is a programming game where your code IS the tank. This is classic
30Robocode (the `robocode.*` API compiled against robocode.jar) — NOT Robocode Tank Royale.
31Your bot is a Java class that `extends robocode.Robot` (or `robocode.AdvancedRobot` for non-blocking
32control): its `run()` method drives the tank in a loop (e.g. `ahead(100)`, `turnGunRight(90)`,
33`fire(3)`), and it reacts to events like `onScannedRobot(ScannedRobotEvent)`, `onHitByBullet(...)`,
34and `onHitWall(...)`. Move, aim the gun, sweep the radar, and fire to outlast other bots.
35Your bot logic must be written in Java and located in the `robots/custom/` directory.
36Keep the main bot class named `{str(RC_FILE)}`, but you can include additional Java files if you'd like."""
37 default_args: dict = {
38 "nodisplay": True,
39 "nosound": True,
40 }
41 submission: str = "robots/custom/"
42

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected