Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 1.16 KB

README.md

File metadata and controls

21 lines (18 loc) · 1.16 KB

prolog-tic-tac-toe

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.

screenshot

How to run

There are 2 options for running the game server:

Docker

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/

Localy

  • 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/