File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ class Game is export {
222222
223223 $ h . bet /= 2 ;
224224 $ h . played = True ;
225- $ h . payed = True ;
225+ $ h . paid = True ;
226226 $ h . status = Hand::Status::Lost;
227227 $ ! money -= $ h . bet;
228228
@@ -259,8 +259,8 @@ class Game is export {
259259 my Bool $ dhb = $ ! dealer-hand . is-busted;
260260
261261 for @ ! player-hands -> $ h {
262- next if $ h . payed ;
263- $ h . payed = True ;
262+ next if $ h . paid ;
263+ $ h . paid = True ;
264264
265265 my Int $ phv = $ h . get-value(Hand::CountMethod::Soft);
266266
Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ class PlayerHand is Hand is export {
1010 has $ ! game ;
1111 has Rat $ . bet is rw ;
1212 has Hand::Status $ . status is rw ;
13- has Bool $ . payed is rw ;
13+ has Bool $ . paid is rw ;
1414
1515 submethod BUILD (: $ ! game , : $ ! bet ) {
1616 ++ PlayerHand. total-player-hands;
1717 $ ! status = Hand::Status::Unknown;
18- $ ! payed = False ;
18+ $ ! paid = False ;
1919 }
2020
2121 method get-action {
@@ -108,9 +108,9 @@ class PlayerHand is Hand is export {
108108 if $ . played || $ . stood || self . is-blackjack || self . is-busted || 21 == self . get-value(Hand::CountMethod::Soft) || 21 == self . get-value(Hand::CountMethod::Hard) {
109109 $ . played = True ;
110110
111- if ! $ ! payed {
111+ if ! $ ! paid {
112112 if self . is-busted {
113- $ ! payed = True ;
113+ $ ! paid = True ;
114114 $ ! status = Hand::Status::Lost;
115115 $ ! game . money -= $ ! bet ;
116116 }
You can’t perform that action at this time.
0 commit comments