Skip to content

Commit a66d63e

Browse files
Add Chess arena (#91)
* Add Chess arena * Add ref, config * Add tests --------- Co-authored-by: John Yang <byjohnyang@gmail.com>
1 parent f0906c1 commit a66d63e

File tree

6 files changed

+822
-0
lines changed

6 files changed

+822
-0
lines changed

codeclash/arenas/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from codeclash.arenas.battlecode25.battlecode25 import BattleCode25Arena
55
from codeclash.arenas.battlesnake.battlesnake import BattleSnakeArena
66
from codeclash.arenas.bridge.bridge import BridgeArena
7+
from codeclash.arenas.chess.chess import ChessArena
78
from codeclash.arenas.corewar.corewar import CoreWarArena
89
from codeclash.arenas.dummy.dummy import DummyArena
910
from codeclash.arenas.figgie.figgie import FiggieArena
@@ -21,6 +22,7 @@
2122
BattleCode25Arena,
2223
BattleSnakeArena,
2324
BridgeArena,
25+
ChessArena,
2426
CoreWarArena,
2527
DummyArena,
2628
FiggieArena,
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM ubuntu:22.04
2+
3+
ENV DEBIAN_FRONTEND=noninteractive
4+
5+
# Install Python 3.10 (and alias python→python3.10), pip, and prerequisites
6+
# Also install C++ compiler and make for building Kojiro
7+
RUN apt-get update \
8+
&& apt-get install -y --no-install-recommends \
9+
curl ca-certificates python3.10 python3.10-venv \
10+
python3-pip python-is-python3 wget git build-essential \
11+
g++ make jq curl locales \
12+
&& rm -rf /var/lib/apt/lists/*
13+
14+
# Clone Kojiro repository
15+
RUN git clone https://github.com/Babak-SSH/Kojiro.git /workspace \
16+
&& cd /workspace \
17+
&& git remote set-url origin https://github.com/Babak-SSH/Kojiro.git
18+
19+
# Clone and build Fastchess
20+
RUN git clone https://github.com/Disservin/fastchess.git /tmp/fastchess \
21+
&& cd /tmp/fastchess \
22+
&& make -j \
23+
&& install -d /usr/local/bin \
24+
&& install fastchess /usr/local/bin/fastchess \
25+
&& rm -rf /tmp/fastchess
26+
27+
WORKDIR /workspace
28+

codeclash/arenas/chess/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)