Giter Site home page Giter Site logo

zhongxiayan / alphazero_gomoku Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 47.28 MB

Multiprocess implementation of Alphazero applied to the board game Gomoku (五子棋; 5 in a row; tic-tac-toe but with 5 pieces on a 20x20 board)

Jupyter Notebook 95.84% Python 4.16%

alphazero_gomoku's Introduction

AlphaZero Gomoku

Multiprocess implementation of AlphaZero applied to the board game Gomoku (五子棋; 5 in a row; tic-tac-toe but with 5 pieces on a 20x20 board). This project was done as a final project for the 6.882 Embodied Agents class at MIT.

Alphazero

alphazero directory contains code for training, code for simulating games between trained agents, and code to interface with Piskvork.

Piskvork

piskvork_remote directory contains more code to interface with Piskvork.

Note that this is an optional interface, it may be easier to write your own CLI visualizer (especially if you don't have a Windows computer).

Piskvork is a Windows-based GUI client for interacting with Gomoku agents and is used by Gomocup AI bots; basically it has a game board that you can play on and also watch AI agents play each other.

Since Piskvork is Windows-based, I wrote piskvork_remote/pisqpipe.py, which compiles to piskvork_remote/dist/pbrain-port.exe, to relay commands to / from a Linux machine. On the Linux side, I wrote piskvork_remote/remote_brain.py to listen for the messages from piskpipe.py; piskvork/remote_brain.py is overriden by alphazero/alphazero_brain.py so that trained models can be used to respond to moves.

If you want to work with Piskvork, the documentations may be helpful.

alphazero_gomoku's People

Contributors

zhongxiayan avatar

Stargazers

Urh Primožič avatar

Watchers

James Cloos avatar  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.