skyclad0x7b7 / Mini-Mahjong

Japanese Mahjong Game, Just For Fun :)
MIT License
1 stars 0 forks source link

There's some case Yaku class can't find any completedTiles #2

Closed skyclad0x7b7 closed 6 years ago

skyclad0x7b7 commented 6 years ago

(mahjong::TileType::Ponzu, 2) (mahjong::TileType::Ponzu, 3) (mahjong::TileType::Ponzu, 4) (mahjong::TileType::Ponzu, 7) (mahjong::TileType::Ponzu, 8) (mahjong::TileType::Ponzu, 9) (mahjong::TileType::Souzu, 2) (mahjong::TileType::Souzu, 2) (mahjong::TileType::Souzu, 5) (mahjong::TileType::Souzu, 5) (mahjong::TileType::Souzu, 5) (mahjong::TileType::Special, 3) (mahjong::TileType::Special, 3)

Waiting for Souzu-2 Or Special-3(a.k.a. West), but can't find it

skyclad0x7b7 commented 6 years ago

This bug occured because of using variables(ex: toitsuCompletedTiles, shuntsuCompletedTiles, koutsuCompletedTiles)-which is defined outside- in a while-loop.