Splendia is a school project made during the spring semester of 2023 at the University of Technology of Belfort Montbéliard. It is a web interface made to play the board game splendor against an AI.
Splendia is decomposed into 2 parts:
- a web interface (i.e., the front-end of the project) found in the "front" repository
- a server containing the model and the AIs of the game (i.e., the back-end of the project) found in the "back" repository
To run Splendia, you need to run both the back-end and the front-end.
Python : 3.10.10
- Create a python virtual environnement :
python -m venv env
- Enter the virtual environnement:
source env/bin/activate
- Install the necessary dependancies:
pip install -r requirements.txt
- Go into the
back
folder
cd back
- Run the server:
python run_server.py
deactivate
python -m unittest -v
- Install torch:
pip install torch
- Install gymnasium
pip install gymnasium
- Run the training script:
python traina_i.py
This project was generated with Angular CLI. Angular CLI: 14.2.11 Node: 16.14
- Navigate to the
front/splendia
folder
cd front/splendia
- Install angular
npm install
- Navigate to the
front/splendia/src
folder
cd src
- Run the server
ng serve
Once both python and angular servers are running, got to http://localhost:4200
to play the game.