Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Mahjongai | 110 | 2 years ago | 3 | gpl-3.0 | C# | |||||
A Japanese Mahjong AI, which can play Mahjong on two online Japanese Mahjong services. It can easily defeat other players in 一般 (Normal level) games and also plays well in 上級 (High level) games. | ||||||||||
Peafowl | 90 | 5 years ago | mit | Swift | ||||||
:mahjong: Play Japanese Mahjong in Swift | ||||||||||
Prefab_in_prefab | 39 | 9 years ago | 8 | C# | ||||||
[deprecated] | ||||||||||
Emacs Trr | 17 | 4 years ago | Emacs Lisp | |||||||
a type-writing training program on GNU Emacs | ||||||||||
Mahjong4rl | 11 | 2 years ago | 5 | mit | Python | |||||
Mahjong4RL is a project that recreates the game of Japanese Mahjong and use deep reinforcement learning to play it. | ||||||||||
Now Playing For Google Play Music | 9 | a year ago | 14 | mit | TypeScript | |||||
#NowPlaying for YouTube Music | ||||||||||
Mjaigym | 7 | a year ago | other | Python | ||||||
Aquabutton Android | 5 | 3 years ago | gpl-3.0 | Kotlin | ||||||
⚓ Click to play こんあくあ | ||||||||||
Shiritori | 3 | 5 years ago | Ruby | |||||||
🀄️ Peafowl is a score calculation library to play Japanese Mahjong!
// You can define hand as an array literal.
// Last tile will be picked tile.
let hand: Hand = [二萬, 二萬, 三萬, 四萬, 四萬, 五萬, 五萬, 二索, 三索, 四索, 二筒, 三筒, 四筒, 三萬]
let context = GameContext()
let score = scoreCalculator.calculate(with: hand, context: context)
let describer = ScoreDescriber()
let scoreReport = describer.describe(score!)
You'll get score reports.
三色同順 2
一盃口 1
ツモ 1
断ヤオ 1
30符5飜 満貫 8000点
You can define game states on GameContext
struct. (e.g. prevalent wind, seat wind, dora, riichi state or others...)
let gameContext = GameContext(winningType: .selfPick, // 自摸和了、ロン和了
pickedSource: .wall, // 第1順, 山, 河底, 嶺上牌
riichiStyle: .single, // 立直, ダブル立直
isOneShot: false, // 一発
isDealer: false, // 親
prevalantWind: 東, // 場風
seatWind: 南, // 自風
dora: [五萬]) // ドラ
You can try Peafowl on Xcode Playground.
Peafowl.xcworkspace
Peafowl.xcplayground
github "giginet/Peafowl"
Tile images are provided from here.