diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-12-11 05:42:27 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-12-11 05:42:27 +0100 |
commit | 18dc83a5e528bf3b5f2b3129a25832854b42780c (patch) | |
tree | 458e267f0d66a02c986693c8cf2ae19bb76e7c37 /server | |
parent | 29581932f76b8d880109cbcfdda451046456560e (diff) |
Add furiten.
Diffstat (limited to 'server')
-rw-r--r-- | server/player.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/player.cpp b/server/player.cpp index 59b128e..7c48a80 100644 --- a/server/player.cpp +++ b/server/player.cpp @@ -249,7 +249,11 @@ bool Player::can_tsumo() { } bool Player::can_ron(Tile tile) { - // TODO: Check furiten. + // Check furiten. + if(pond.contains(tile)) { + return false; + } + // TODO: Furiten due to unclaimed discard in last go-around. Tiles tiles = hand; tiles.push_back(tile); |