Giter Site home page Giter Site logo

japan_mahjong-ai-project's Introduction

Agent

  • SimpleDefense Agent:
    把前8張被丟出但沒被吃,碰,槓的牌當作安全牌
    計算所有牌被吃,碰,槓的機率
    安全牌會隨回合而變,但是機率不變,因此若存在機率很小的牌應該優先保存,
    先打安全牌中機率較大的牌
    另外,這個agent並不宣告吃,碰,槓

  • Random Agent:
    隨機丟出手中的任何一張牌

Update History :

v.1.5 (2017.01.16)

  1. MCTS Agent(蒙地卡羅)

  2. Value Agent

v.1.4 (2017.01.07)

  1. Eval WinPattern: 計算當局牌面可能的胡牌牌型 implementy在mahjong.py之中 丟進EvalScore做計算並回傳分數 需要準確的向聽數,發現向聽數在有明牌的時候會不準 後來改成把明牌也當成手牌 讓他算出最小向聽數的牌組之後 把這些牌組中沒有明牌的組合的牌組刪掉 唯一可能錯的情況就是 最低的向聽數的牌組都沒有包含明牌

v.1.3 (2016.12.24)

  1. 新增SimpleDefense agent

v.1.2 (2016.12.17)

  1. 新增計算胡牌牌型分數的方法

  2. 新增門風概念

  3. 有簡單的UI可以給AI使用

v.1.1 (2016.12.11)

  1. agent胡牌或自摸時會回傳牌型

  2. 可計算向聽數

  3. 利用向聽數實作OneStepAgent

向聽數計算程式

v.1.0 (2016.12.7 )

  1. 麻將桌初步實作完成

  2. 只有random action的agent

  3. 吃碰槓為程式決定 不能選擇是否要吃碰槓

  4. 不能宣告聽牌

japan_mahjong-ai-project's People

Contributors

willywsm1013 avatar sophia303v avatar wwvasd avatar

Watchers

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