aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_move.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_move.go')
-rw-r--r--internal/game/cmd_move.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/game/cmd_move.go b/internal/game/cmd_move.go
index 761db2f..4772a2c 100644
--- a/internal/game/cmd_move.go
+++ b/internal/game/cmd_move.go
@@ -13,6 +13,10 @@ import (
func (g *Game) doMove(sess *net.Session, dir string, isWalk bool) {
p := sess.Player
+ if _, playing := g.Casino.Participation(p.Name); playing {
+ sess.WriteLine("You're playing a game. Type \"stop\" between rounds before moving.")
+ return
+ }
exitDir := g.World.ResolveExit(dir)
if exitDir == "" {
sess.WriteLine("Go where?")