Code Monkey home page Code Monkey logo

mcts's Introduction

mcts

An Python N-in-Row game based on Monte Carlo Tree Search and UCT RAVE.  
一个Python实现的使用蒙特卡洛搜索树(MCTS)和UCT RAVE的"N-in-Row"类游戏。

2017.2.23 更新

1.n_in_row_not_so_correct.py其实并未能完全正确的实现MCTS,因为它单位时间内模拟的次数多,根据MC的原理,所以它的表现也没有那么差,但它依旧是不正确的;    
2.n_in_row_uct_rave_not_so_correct.py在上面的基础上进一步实现了UCT RAVE;  
3.n_in_row_uct_rave.py则是在阅读了论文《Monte-Carlo tree search and rapid action value estimation in computer Go》后实现的正确的版本——也许吧,欢迎与我一起讨论。    

具体的说明已经更新到了博客
注意: 需要使用Python3运行上面的代码。

TODO

因为n_in_row_uct_rave.py中需要遍历的节点激增,单位时间内模拟的次数较少,所以短时间(少于15s)模拟的表现上不如之前的“错误”的算法,考虑通过多线程等手段来进一步提高单位时间内的模拟次数。

mcts's People

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.