Basic combat

This commit is contained in:
Jakub 2026-05-24 00:17:34 +08:00
parent 31a0bd9a34
commit 0b164302c4
7 changed files with 636 additions and 55 deletions

15
modules/random.scm Normal file
View file

@ -0,0 +1,15 @@
(module (bd random) ()
(import scheme
(chicken base)
(chicken module)
(chicken random))
(export random)
(export rand-int)
(define random pseudo-random-real)
(define rand-int pseudo-random-integer)
(export pick-random)
(define (pick-random lst)
(list-ref lst (rand-int (length lst))))
)