Created
November 30, 2023 08:55
-
-
Save elderica/fc98927545d11327bc6fc31c26ef8c3a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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