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)
Metadata
Release files for darkhex 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| darkhex-0.0.1.tar.gz | 23.9 kB | Without provenance | Details for darkhex-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| darkhex-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for darkhex-0.0.1-py3-none-any.whl |
Total release size: 50.5 kB
Release files / darkhex-0.0.1.tar.gz
| Download URL | darkhex-0.0.1.tar.gz |
|---|---|
| Size | 23.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b88fd6f889a7cb599503588ce0150a9cab045a4b4ae9a852de68dc7aa395703
|
|
BLAKE2b-256 checksum How to use checksums |
38c596ea2a7e0c37b673f005e6e69e4a994bb3478d99be1146b45df76e63aeee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Release files / darkhex-0.0.1-py3-none-any.whl
| Download URL | darkhex-0.0.1-py3-none-any.whl |
|---|---|
| Size | 26.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d170184153ef7389a5e80eb99a7b7a4942653a4979f54d0cc111c7be07e8d45
|
|
BLAKE2b-256 checksum How to use checksums |
65b68f50e298efeedff21f2b8ae0d34129aa2e6f48f05dafd2eea71a83ae5687
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Security for darkhex 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.