A full-stack tic-tac-toe game where the game logic is implemented in Prolog (SWI-Prolog specifically), the backend in Python3 and the frontend using Vue.js 3.
The game logic uses minimax + alpha-beta pruning to find the best move the computer can make.
This was developed for educational purposes.
There are 2 options for running the game server:
Definitely the prefered way. Make sure you have Docker installed and running, cd
directory and run:
docker build -t prolog-tic-tac-toe .
docker run --rm -it -p 5000:5000 prolog-tic-tac-toe
- Go to http://localhost:5000/
- Make sure you have Python3 (3.6+) + SWIProlog installed locally (see guide)
- Install Python dependencies -
python3 -m pip install requirements.txt
- Run server -
python3 server/server.py
- Go to http://localhost:5000/