Giter Club home page Giter Club logo

darkhex's Introduction

DarkHex

Dark Hex is the imperfect information version of the game Hex. This game has a really scarce work on it. In this repository I am including an implementation of the game along with some algorithms implemented specifically for DarkHex. Also I included the results of some of the experiments.

For details on DarkHex and any of the algorithms used as well as the experiments please check my thesis -link-.

Implementations

  • pONE
  • Vanilla CFR
  • FSI-CFR
  • Backward Induction Best Response
  • AlphaZero Approximate Best Response
  • CFR+
  • MCCFR
  • NFSP
  • Deep CFR

Installation

The library is uploaded on Pypi and can be installed using pip. Before pip called make sure you have the following packages installed:

They are mostly required for graph drawing and setup reasons. Please make sure you have these packages installed before installing the library.

For Debian / Ubuntu

sudo apt-get install libgirepository1.0-dev gcc libcairo2-dev pkg-config gir1.2-gtk-3.0 graphviz

For MacOS

brew install gobject-introspection graphviz cairo pkg-config gtk+3 gcc

After installing the packages you can install the library using pypi.

pip install darkhex

Setup from source using pip

Installing from source would be helpful if you wanted a custom version of the library / helping with development. Make sure you have the packages above installed.

Virtual Environment

We recommend using a virtual environment for the development.

E.g. for Ubuntu or Debian:

sudo apt-get install virtualenv python3-virtualenv
virtualenv venv
source venv/bin/activate

Rest of the installation is just installing python requirements.

E.g. for Ubuntu or Debian:

# Install the libraries listed above
sudo apt-get install libgirepository1.0-dev gcc libcairo2-dev pkg-config gir1.2-gtk-3.0 graphviz

# Install the python packages
pip install -r requirements.txt

Update PYTHONPATH on your .bashrc or .zshrc file (or .venv/bin/activate)

darkhex's People

Contributors

bedirt avatar

Watchers

 avatar  avatar  avatar

darkhex's Issues

New strategies

Run new strategies, report the bound, include the data:

  • 4x3 1.[b2] - strategy for p1 / Expected bound 6/7
  • 4x3 1.[b2#b3] - strategy for p0 / => 1/7

GUI

Add a GUI for the game

Fix strategy generator

The strategy generator is still dependent on the old implementation. I do not think there is a way to use open spiel implementation as a base (without making the program bigger than it is), therefore we should be using the minimal current implementation for it.

  • Convert it to fit new structure
  • #13
  • Add tests

Clean utils

Clean the utils folder. Remove old files, update the necessary ones to fit with open_spiel

Usage guide

Add instructions and examples on how to use the tools

Add AZBR

Complete the Alpha Zero best response implementation and include it in the library.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.