added blackjack (not tested)

This commit is contained in:
2025-11-08 18:24:09 -05:00
parent 06b6ddcdef
commit d8c8a2d27c
2 changed files with 66 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
*
* Routines for handling card games
*
* Written by vx-clutch
* Written by vx-clutch and TiredWithJoy
*/
package casino
@@ -20,6 +20,15 @@ Suit :: enum {
SPADES,
}
/*
Type representing hand comparison
*/
Hand :: enum {
WIN,
LOSE,
TIE,
}
/*
Type represeting a card
*/
@@ -147,3 +156,4 @@ Deal one card from the top of the deck
deal_card :: proc(deck: ^Deck) -> Card {
return deck^.cards[deck^.top_index]
}