GithubHelp home page GithubHelp logo

pbrain-reiner_gomoku_data130008's Introduction

pbrain-reiner (AlphaBeta AI) is the better AI.

pbrain-reiner

A Python Piskvork with Alpha-Beta Pruning

pbrain-reiner is the technical core of a "brain" (AI) for Piskvork gomoku manager used in Gomocup AI tournament, written in Python.

The code is basically the "Python Improvement" of C++ template written by Petr Lastovicka. This README is also partially copy of the C++ template's README.

Prerequisites and compilation

The Piskvork manager is a Win32 application and currently supports only Win32 compatible .exe files (furthermore whose name starts with pbrain- prefix). There are several ways how to create .exe from Python files.

Here I present the approach using PyInstaller and Windows command line:

  1. Install Windows (or Wine for Linux and macOS, originally the project was created and tested on Windows 10 x64)

  2. Install Python (the code and also following instructions were tested with version 3.8.5-64bit(conda)).

  3. Install pywin32 Python package: pip.exe install pypiwin32 (if not present "by default")

  4. Install PyInstaller: pip.exe install pyinstaller (Version 4.2)

To compile the example, use the following command line command:

cd C:\path\where\the\files\were\saved
pyinstaller.exe example.py pisqpipe.py --name pbrain-reiner.exe --onefile

Note: the executables pip.exe and pyinstaller.exe might need full path.

pbrain-mcts

A Python Piskvork with MCTS with UCT RAVE

To compile the example, use the following command line command:

cd C:\path\where\the\files\were\saved
pyinstaller.exe example.py pisqpipe.py --name pbrain-mcts.exe --onefile

Note: the executables pip.exe and pyinstaller.exe might need full path.

  • Python 3.7.0 with PyInstaller 4.1 MIGHT have better performance.

  • Packaging using Nuitka MIGHT have better performance.

  • However, Python 3.8.5 with PyInstaller 4.2 is currently the stablest suit.

pbrain-reiner_gomoku_data130008's People

Contributors

aloereed avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.