Skip to content

Commit 7420ca0

Browse files
committed
Add Chess arena
1 parent c3dda4f commit 7420ca0

3 files changed

Lines changed: 550 additions & 0 deletions

File tree

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)