From 86a433152028122f45c76b32b5291980444ec4a8 Mon Sep 17 00:00:00 2001 From: TiredWithJoy Date: Sat, 8 Nov 2025 18:32:14 -0500 Subject: [PATCH] oops --- libpike/blackjack/blackjack.odin | 4 ++-- libpike/casino/casino.odin | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libpike/blackjack/blackjack.odin b/libpike/blackjack/blackjack.odin index 52fe241..81795e6 100644 --- a/libpike/blackjack/blackjack.odin +++ b/libpike/blackjack/blackjack.odin @@ -21,7 +21,7 @@ Hand :: struct { Determine the rank of the hand */ evaluate_hand :: proc(hand: Hand) -> int { - toal:int + total:int aces: [dynamic]int for x, i in hand { total = total + x.rank @@ -43,7 +43,7 @@ evaluate_hand :: proc(hand: Hand) -> int { Compare two hands and return true if the first one is better than the second one */ -compare_hands :: proc(player: Hand, other: Hand) -> casino.Hand { +compare_hands :: proc(player: Hand, other: Hand) -> casino.Outcome { if evaluate_hand(player) > evaluate_hand(other) { return .WIN }else if evaluate_hand(player) < evaluate_hand(other) { diff --git a/libpike/casino/casino.odin b/libpike/casino/casino.odin index 5c5869c..fe78b52 100644 --- a/libpike/casino/casino.odin +++ b/libpike/casino/casino.odin @@ -23,7 +23,7 @@ Suit :: enum { /* Type representing hand comparison */ -Hand :: enum { +Outcome :: enum { WIN, LOSE, TIE,