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

Function robocode_adjustments

codeclash/utils/generate_confs.py:109–112  ·  view source on GitHub ↗
(config: dict, record_ratio: float)

Source from the content-addressed store, hash-verified

107
108
109def robocode_adjustments(config: dict, record_ratio: float):
110 config["game"]["record_ratio"] = record_ratio
111 for idx in range(len(config["players"])):
112 config["players"][idx]["name"] = config["players"][idx]["name"].replace("-", "").replace(".", "")
113
114
115def main(models, arenas, rounds: int, simulations: int, record_ratio: float, output: Path):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected