Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions codeclash/arenas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from codeclash.arenas.battlecode25.battlecode25 import BattleCode25Arena
from codeclash.arenas.battlesnake.battlesnake import BattleSnakeArena
from codeclash.arenas.bridge.bridge import BridgeArena
from codeclash.arenas.chess.chess import ChessArena
from codeclash.arenas.corewar.corewar import CoreWarArena
from codeclash.arenas.dummy.dummy import DummyArena
from codeclash.arenas.figgie.figgie import FiggieArena
Expand All @@ -17,6 +18,7 @@
BattleCode25Arena,
BattleSnakeArena,
BridgeArena,
ChessArena,
CoreWarArena,
DummyArena,
FiggieArena,
Expand Down
28 changes: 28 additions & 0 deletions codeclash/arenas/chess/Chess.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive

# Install Python 3.10 (and alias python→python3.10), pip, and prerequisites
# Also install C++ compiler and make for building Kojiro
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl ca-certificates python3.10 python3.10-venv \
python3-pip python-is-python3 wget git build-essential \
g++ make jq curl locales \
&& rm -rf /var/lib/apt/lists/*

# Clone Kojiro repository
RUN git clone https://github.com/Babak-SSH/Kojiro.git /workspace \
&& cd /workspace \
&& git remote set-url origin https://github.com/Babak-SSH/Kojiro.git

# Clone and build Fastchess
RUN git clone https://github.com/Disservin/fastchess.git /tmp/fastchess \
&& cd /tmp/fastchess \
&& make -j \
&& install -d /usr/local/bin \
&& install fastchess /usr/local/bin/fastchess \
&& rm -rf /tmp/fastchess

WORKDIR /workspace

Empty file.
Loading