Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Latest commit

History

History
39 lines (32 loc) 路 1.16 KB

File metadata and controls

39 lines (32 loc) 路 1.16 KB

Game tree

Solving Reversi game tree with Minimax algorithm and Alpha-beta pruning algorithm using various heuristics.

Heuristic used in the project are:

  • coin parity - advantage in disks over an enemy
  • corner owned - advantage in claiming corners
  • corner closeness - advantage in claiming positions near corners
  • current mobility - advantage in available moves
  • potential mobility - advantage in free positions near enemy disks
  • weights - weights table made by korman
  • korman - korman heuristic but without stability
  • adapt - trained by genetic algorithm heuristic build with first 5 heuristics

Requirements

  • V 0.3.3
    The program may not work properly with newer versions, as there were breaking changes in 0.4

Building

In root directory run:

v run .

It will build and run project extremely fast, but without any optimizations, so it will run painfully slow (still faster than python solutions 馃槑).

For well optimize build run in root directory:

v -prod .

This command will produce executable file, then just run this file with:

./Project2.exe

Usage

./Project2.exe --help