/splendor-tournament

Compete against friends to build the best AI in the board game, Splendor! Supports Rust and Python bots.

Primary LanguageRust

splendor-tournament

Compete against friends to build the best AI that can beat the board-game Splendor!! Current supports Rust and Python bots!

MacOS or Linux Installation

Install python3 and Rust

For installing Rust:

You can check to see if Rust is installed by running cargo --version which should have an output that looks like:

cargo 1.76.0 (xxxxxx 2024-xxxx)

Windows Installation

Installing Rust

Navigate to the Rust https://rust-lang.org/tools/install website and download the exe

image

When you run it, it may ask you to install Visual Studio Community and Windows SDK. Allow them and click Continue/Install

image

You may get a screen like this, type y and press Enter to continue

image

After you've installed the SDKs, you'll see a screen like the following, press 1 to install default options and then Enter to continue

image

If all goes well you should see the following screen

image

Python 3 Installation

You may already have Python installed, but the installation scripts require a binary named python3 to work properly.

To install, you can type python3 in a new Powershell instance, which will launch Microsoft Store on Windows 11

image

Running a Tournament

To run a tournament is simple, navigate to the splendor-tournament directory and execute

python3 run_game.py

in your terminal (Note: the first build can take 3-5 minutes! It should be faster on subsequent builds)

If all goes well, you should be able to go to http://localhost:3030/splendor/splendor_4pl.html and see the game that the server just played for you.