Skip to content

Commit feeaca0

Browse files
committed
Ref: Rename files for easier access
1 parent 6bee972 commit feeaca0

15 files changed

Lines changed: 30 additions & 30 deletions

File tree

codeclash/agents/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from minisweagent.environments.docker import DockerEnvironment
22

3-
from codeclash.agents.abstract import Player
4-
from codeclash.agents.dummy import Dummy
3+
from codeclash.agents.dummy_agent import Dummy
54
from codeclash.agents.minisweagent import MiniSWEAgent
5+
from codeclash.agents.player import Player
66
from codeclash.agents.utils import GameContext
77

88

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from codeclash.agents.abstract import Player
1+
from codeclash.agents.player import Player
22

33

44
class Dummy(Player):

codeclash/agents/minisweagent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from minisweagent.models.test_models import DeterministicModel
1010
from minisweagent.run.utils.save import save_traj
1111

12-
from codeclash.agents.abstract import Player
12+
from codeclash.agents.player import Player
1313
from codeclash.agents.utils import GameContext
1414
from codeclash.utils.environment import copy_to_container
1515

codeclash/games/__init__.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from pathlib import Path
22

3-
from codeclash.games.abstract import CodeGame
4-
from codeclash.games.battlecode.main import BattleCodeGame
5-
from codeclash.games.battlesnake.main import BattleSnakeGame
6-
from codeclash.games.corewar.main import CoreWarGame
7-
from codeclash.games.dummy.main import DummyGame
8-
from codeclash.games.robocode.main import RoboCodeGame
9-
from codeclash.games.robotrumble.main import RobotRumbleGame
3+
from codeclash.games.battlecode.battlecode import BattleCodeGame
4+
from codeclash.games.battlesnake.battlesnake import BattleSnakeGame
5+
from codeclash.games.corewar.corewar import CoreWarGame
6+
from codeclash.games.dummy.dummy_game import DummyGame
7+
from codeclash.games.game import CodeGame
8+
from codeclash.games.robocode.robocode import RoboCodeGame
9+
from codeclash.games.robotrumble.robotrumble import RobotRumbleGame
1010

1111

1212
# might consider postponing imports to avoid loading things we don't need
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from tqdm.auto import tqdm
66

77
from codeclash.constants import DIR_WORK, RESULT_TIE
8-
from codeclash.games.abstract import CodeGame, RoundData, RoundStats
8+
from codeclash.games.game import CodeGame, RoundData, RoundStats
99

1010

1111
class BattleCodeGame(CodeGame):

codeclash/games/battlesnake/main.py renamed to codeclash/games/battlesnake/battlesnake.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
from tqdm.auto import tqdm
66

7-
from codeclash.agents.abstract import Player
7+
from codeclash.agents.player import Player
88
from codeclash.constants import RESULT_TIE
9-
from codeclash.games.abstract import CodeGame, RoundData, RoundStats
9+
from codeclash.games.game import CodeGame, RoundData, RoundStats
1010
from codeclash.utils.environment import assert_zero_exit_code
1111

1212

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import shlex
33
from pathlib import Path
44

5-
from codeclash.agents.abstract import Player
6-
from codeclash.games.abstract import CodeGame, RoundData, RoundStats
5+
from codeclash.agents.player import Player
6+
from codeclash.games.game import CodeGame, RoundData, RoundStats
77

88

99
class CoreWarGame(CodeGame):
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import re
22

3-
from codeclash.agents.abstract import Player
4-
from codeclash.games.abstract import CodeGame, RoundData, RoundStats
3+
from codeclash.agents.player import Player
4+
from codeclash.games.game import CodeGame, RoundData, RoundStats
55

66

77
class DummyGame(CodeGame):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from minisweagent.environments.docker import DockerEnvironment
99
from pydantic import BaseModel
1010

11-
from codeclash.agents.abstract import Player
11+
from codeclash.agents.player import Player
1212
from codeclash.constants import DIR_LOGS, DIR_WORK, GH_ORG
1313
from codeclash.utils.environment import assert_zero_exit_code, copy_between_containers
1414
from codeclash.utils.log import get_logger

0 commit comments

Comments
 (0)