Skip to content

Commit 72b313f

Browse files
committed
change package name to battlecode26
1 parent 717782f commit 72b313f

11 files changed

Lines changed: 14 additions & 14 deletions

File tree

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

engine/src/crossplay_python/battlecode/runner.py renamed to engine/src/crossplay_python/battlecode26/runner.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from threading import Thread, Event, Lock
66
from time import sleep
77

8-
import battlecode
8+
import battlecode26
99

1010
from .classes import GameActionException, GameActionExceptionType
1111
from .instrument import Instrument
@@ -192,13 +192,13 @@ def import_call(self, name, globals=None, locals=None, fromlist=(), level=0, cal
192192
if name == 'enum':
193193
import enum
194194
return enum
195-
if name == 'battlecode':
196-
import battlecode
195+
if name == 'battlecode26':
196+
import battlecode26
197197

198-
if hasattr(battlecode, '_main'):
199-
del battlecode._main
198+
if hasattr(battlecode26, '_main'):
199+
del battlecode26._main
200200

201-
return battlecode
201+
return battlecode26
202202

203203
raise ImportError('Module "' + name + '" does not exist.')
204204

File renamed without changes.

engine/src/crossplay_python/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import sys
55
import traceback
66

7-
from battlecode.classes import GameActionException
8-
from battlecode.runner import RobotRunner
9-
from battlecode.crossplay import (
7+
from battlecode26.classes import GameActionException
8+
from battlecode26.runner import RobotRunner
9+
from battlecode26.crossplay import (
1010
BYTECODE_LIMIT,
1111
CrossPlayException,
1212
receive,
@@ -17,7 +17,7 @@
1717
CrossPlayMethod,
1818
_destroy_queue,
1919
)
20-
from battlecode.wrappers import _GAME_METHODS, Team
20+
from battlecode26.wrappers import _GAME_METHODS, Team
2121

2222
DETACHED_PROCESS = 0x00000008
2323
CROSSPLAY_PYTHON_DIR = "example-bots/src/crossplay_python" # TODO change for scaffold

engine/src/crossplay_python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# set 'SETUPTOOLS_SCM_PRETEND_VERSION=' to manually set the version number when building
1010

11-
setup(name='battlecode',
11+
setup(name='battlecode26',
1212
description='Battlecode 2026 crossplay engine.',
1313
author='Battlecode',
1414
long_description=long_description,

example-bots/src/crossplay_python/lectureplayer_py/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
from battlecode import *
2+
from battlecode26 import *
33
import random
44
from enum import Enum
55

example-bots/src/crossplay_python/pytest/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
from battlecode import *
2+
from battlecode26 import *
33

44
directions = [
55
Direction.NORTH,

0 commit comments

Comments
 (0)