aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_look.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-05 06:03:49 -0400
committerhistoria <[not public]>2026-10-05 06:03:49 -0400
commitc84a9944356f590d90d819d652bdf1349ebacd40 (patch)
treeaf1ee15992e141fb3eb6f26cac02cf06306d4982 /internal/game/cmd_look.go
parent8b78aa4cd930fde145959704ba7bdc0e57465b9b (diff)
downloadthehouseoficarus-c84a9944356f590d90d819d652bdf1349ebacd40.tar.gz
feat: prediction exchange with live polymarket data
Diffstat (limited to 'internal/game/cmd_look.go')
-rw-r--r--internal/game/cmd_look.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/game/cmd_look.go b/internal/game/cmd_look.go
index 38cc83c..ab01c4c 100644
--- a/internal/game/cmd_look.go
+++ b/internal/game/cmd_look.go
@@ -65,6 +65,16 @@ func (g *Game) doLook(sess *net.Session) {
// Seated at a table: look keeps its room-first order, then appends the
// live game state and the current hint menu.
g.showCasinoGameLook(sess, p, room)
+ if sess.PredictionActive && room.PredictionExchange {
+ sess.WriteLine("")
+ if sess.PredictionBusy {
+ sess.WriteLine("Updating markets...")
+ sess.PredictionShowHints = true
+ g.predictionHints(sess)
+ } else {
+ g.executePredictions(sess, []string{"refresh"}, "look")
+ }
+ }
}
func (g *Game) doExits(sess *net.Session) {