GithubHelp home page GithubHelp logo

keeeal / alpha-ut3 Goto Github PK

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

AlphaZero for ultimate tic-tac-toe.

License: MIT License

Python 100.00%
alphazero alpha-zero reinforcement-learning self-play monte-carlo-tree-search mcts deep-learning artificial-intelligence neural-network ultimate-tic-tac-toe

alpha-ut3's Introduction

AlphaUT3

AlphaZero for ultimate tic-tac-toe.

What is ultimate tic-tac-toe?

It's like tic-tac-toe, but each square of the game contains another game of tic-tac-toe in it! Win small games to claim the squares in the big game. Simple, right? But there is a catch: Whichever small square you pick is the next big square your opponent must play in. Read more...

ultimate tic-tac-toe gif

What is AlphaZero?

AlphaZero is a reinforcement learning algorithm trained only using self-play. It combines a neural network and Monte Carlo Tree Search in an elegant policy iteration framework to achieve stable learning. Read more...

Experiments

For testing purposes, consider a simple opponent: MinMax(n). Before each move, MinMax(n) expands the search tree from the current state of the board, simulating every possible move and returning the value v of the resulting state, up to a depth of n moves. v is either 1, -1, or , depending on whether the game is won, lost or drawn respectively. v is zero for non-terminal states. MinMax(n) applies the MinMax algorithm so that guaranteed wins are played and guaranteed losses avoided by up to n moves ahead. When no winning move is detected, a move is chosen randomly from the non-losing moves. MinMax(0) is therefore a completely random player.

Experiments coming soon.

To-do

Requirements

Thanks

alpha-ut3's People

Stargazers

 avatar

Watchers

 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.