Skip to content

haraldbo/ikt-457-hex-game-winner-prediction

Repository files navigation

IKT 457 Tsetlin machine based hex game winner prediction

alt text

Screenshot of hex board from https://www.redblobgames.com/grids/hexagons/#map-storage. The clause literals of one of the learned rules have been manually added on top.

Content

  • prototypes: This folder contains earlier versions and experimentation.

  • hex_tm.py: Code for training the tsetlin machine.

  • sandbox.py: This code has been used to create plots, and to experiment with different things.

  • utils.py: Various functions that have been used throughout the project.

  • game_capture.py: Script for recording games from lutanho.net.

  • hexgamegenerator.py: Algorithm for generating completed games for a arbitary sized board.

  • dataset: This folder contains datasets that have been used in this project. The dataset for completed games can be downloaded from kaggle.

  • diagrams: This folder contains drawio diagrams that have been used in the report.

  • captured: This folder contains games that have been captured by the game_capture.py script.

  • images: This folder contains images that have been used in the report, or in the earlier presentations.

  • report: This folder contains the report for the project.

Dependencies

  • Graph tsetlin machine 0.3.1
  • Networkx 3.3
  • Numpy 1.26.4
  • Matplotlib 3.9.2
  • Pandas 2.2.2
  • scikit-image 0.24.0
  • scikit-learn 1.5.1

About

Hex game project in IKT457

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages