Only the table host splits the pot; host buttons beside the table name

- Showdown winners can now be chosen only by the table host (others see
  "ホストが勝者を選んでいます"); if the host leaves, the next host does it
- START / pause moved into the header to the right of the table name
  (pause is an icon button), freeing the row they used to occupy

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
agomizi1cmandClaude Opus 5.5 committed 2026-10-16 12:15:19 +09:00
1 parent e89d867f85
commit 6d33440048
6 files changed
+50 -34

No files matched your search

+3 -6
View File
@@ -152,17 +152,14 @@ class Table {
return this.hand.act(i, type, amount);
}
// ショーダウンの勝者を選べるのは、ショーダウンに残った人とホスト
// ショーダウンの勝者(ポットの分配)を決められるのはテーブルのホストだけ
canAward(token) {
if (!this.handActive || !this.hand.awaitingWinners) return false;
const i = this.seatOf(token);
const p = i >= 0 ? this.hand.players.get(i) : null;
return this.isHost(token) || Boolean(p && !p.folded && !this.seats[i].left);
return this.handActive && this.hand.awaitingWinners && this.isHost(token);
}
award(token, winners) {
if (!this.handActive || !this.hand.awaitingWinners) return 'ショーダウンではありません';
if (!this.canAward(token)) return 'ショーダウンに残った人かホストが選んでください';
if (!this.canAward(token)) return 'ポットの分配はホストのみ行えます';
if (this.paused) return '一時停止中です';
return this.hand.award(winners);
}