added blackjack (not tested)
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user