summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-12-11 05:42:27 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-12-11 05:42:27 +0100
commit18dc83a5e528bf3b5f2b3129a25832854b42780c (patch)
tree458e267f0d66a02c986693c8cf2ae19bb76e7c37 /server
parent29581932f76b8d880109cbcfdda451046456560e (diff)
Add furiten.
Diffstat (limited to 'server')
-rw-r--r--server/player.cpp6
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);