you might be interested in https://github.com/racket/games/blob/master/blackjack/blackj...