Skip to content

Instantly share code, notes, and snippets.

@elderica
Created November 30, 2023 08:55
Show Gist options
  • Save elderica/fc98927545d11327bc6fc31c26ef8c3a to your computer and use it in GitHub Desktop.
Save elderica/fc98927545d11327bc6fc31c26ef8c3a to your computer and use it in GitHub Desktop.
#lang racket
(require data/queue)
(define ds (vector "ドド" "スコ"))
(define history (make-queue))
(define (limit-history)
(when (< 12 (queue-length history))
(dequeue! history)))
(define (ddsk-rec)
(if (equal? (queue->list history)
(list 0 1 1 1 0 1 1 1 0 1 1 1))
(displayln "ラブ注入♡")
(let ([i (random 2)])
(display (vector-ref ds i))
(enqueue! history i)
(limit-history)
(ddsk-rec))))
(ddsk-rec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment