shortdeck1.2

This commit is contained in:
2025-10-09 15:27:17 +08:00
parent 7071eaa12b
commit 4763f9a630
19 changed files with 615 additions and 250 deletions

View File

@@ -19,10 +19,9 @@ def test_join_and_actions():
assert g.current_turn == 0
# 测试错误的玩家尝试行动
try:
g.apply_action(1, "fold")
except ValueError as e:
assert "not your turn" in str(e)
result = g.apply_action(1, "fold")
assert result["success"] == False
assert "不是玩家" in result["message"] or "turn" in result["message"].lower()
# 小盲玩家call (跟注到大盲)
g.apply_action(0, "call")