Skip to content

Commit 3b1e656

Browse files
committed
show the list of choices as clickable links
1 parent 1f2c7e4 commit 3b1e656

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/game/web.lisp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
(my add-announcement
8181
(<p :class "game-message"
8282
(player-controller-name-to-ml player)
83-
" demanded " demand ".")))
83+
" demanded " amount ".")))
8484

8585
(my-defun web-state 'inform (game-state (message (eql :profit)) &key player amount &allow-other-keys)
8686
(my add-announcement
@@ -180,6 +180,12 @@
180180
(t
181181
(with-ml-output (format nil " ~{~A ~}" (my args)) " from " (format nil "~A" (my choices) ))))
182182

183+
(loop for c in (choices-list (my choices)) do
184+
(let-current-values (c)
185+
(with-ml-output " "
186+
(html-action-link c
187+
(my queue-choice c)))))
188+
183189
(html-action-form
184190
""
185191
((choice (first (choices-list (my choices)))))

0 commit comments

Comments
 (0)