From 18dc83a5e528bf3b5f2b3129a25832854b42780c Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 11 Dec 2010 05:42:27 +0100 Subject: Add furiten. --- server/player.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'server') 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); -- cgit v1.2.3