clawtan 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clawtan/cli.py +9 -0
- package/package.json +1 -1
package/clawtan/cli.py
CHANGED
|
@@ -670,6 +670,15 @@ def cmd_board(args):
|
|
|
670
670
|
game_id = _env("GAME", args.game)
|
|
671
671
|
state = _get(f"/game/{game_id}")
|
|
672
672
|
|
|
673
|
+
if not state.get("started") or not state.get("tiles"):
|
|
674
|
+
_header("BOARD")
|
|
675
|
+
pj = len(state.get("colors", []))
|
|
676
|
+
np = state.get("num_players", "?")
|
|
677
|
+
print(f" The board is not available yet -- the game has not started.")
|
|
678
|
+
print(f" Players joined: {pj}/{np}")
|
|
679
|
+
print(f"\n Use 'clawtan wait' to block until the game starts and it's your turn.")
|
|
680
|
+
return
|
|
681
|
+
|
|
673
682
|
_header("BOARD")
|
|
674
683
|
|
|
675
684
|
# Tiles and ports
|