@@ -10,7 +10,7 @@ describe("deckUtilities", () => {
1010 cards : [
1111 {
1212 card : { facing : "Up" , rank : "Ace" , suit : "Club" } ,
13- rankRelativeValueUsed : Math . min (
13+ rankGlobalValueUsed : Math . min (
1414 ...CardRankMetadataMap [ "Ace" ] . relativeValues
1515 ) ,
1616 rankValueUsed : Math . min ( ...CardRankMetadataMap [ "Ace" ] . values ) ,
@@ -22,7 +22,7 @@ describe("deckUtilities", () => {
2222 cards : [
2323 {
2424 card : { facing : "Up" , rank : "Ace" , suit : "Diamond" } ,
25- rankRelativeValueUsed : Math . min (
25+ rankGlobalValueUsed : Math . min (
2626 ...CardRankMetadataMap [ "Ace" ] . relativeValues
2727 ) ,
2828 rankValueUsed : Math . min ( ...CardRankMetadataMap [ "Ace" ] . values ) ,
@@ -51,7 +51,7 @@ describe("deckUtilities", () => {
5151 it ( "Should return Dealer when dealer has more cards than player" , ( ) => {
5252 dealerHand . cards . push ( {
5353 card : { facing : "Up" , rank : "Eight" , suit : "Diamond" } ,
54- rankRelativeValueUsed : 8 ,
54+ rankGlobalValueUsed : 8 ,
5555 rankValueUsed : 8 ,
5656 } ) ;
5757 dealerHand . score = playerHand . score ;
@@ -63,7 +63,7 @@ describe("deckUtilities", () => {
6363 it ( "Should return Player when player has more cards than player" , ( ) => {
6464 playerHand . cards . push ( {
6565 card : { facing : "Up" , rank : "Eight" , suit : "Diamond" } ,
66- rankRelativeValueUsed : 8 ,
66+ rankGlobalValueUsed : 8 ,
6767 rankValueUsed : 8 ,
6868 } ) ;
6969 playerHand . score = dealerHand . score ;
@@ -77,12 +77,12 @@ describe("deckUtilities", () => {
7777 it ( "Should return Dealer when dealers high card is greater than players" , ( ) => {
7878 dealerHand . cards . push ( {
7979 card : { facing : "Up" , rank : "Eight" , suit : "Diamond" } ,
80- rankRelativeValueUsed : 8 ,
80+ rankGlobalValueUsed : 8 ,
8181 rankValueUsed : 8 ,
8282 } ) ;
8383 playerHand . cards . push ( {
8484 card : { facing : "Up" , rank : "Seven" , suit : "Diamond" } ,
85- rankRelativeValueUsed : 7 ,
85+ rankGlobalValueUsed : 7 ,
8686 rankValueUsed : 7 ,
8787 } ) ;
8888 dealerHand . score = playerHand . score ;
@@ -94,12 +94,12 @@ describe("deckUtilities", () => {
9494 it ( "Should return Player when player has more cards than player" , ( ) => {
9595 dealerHand . cards . push ( {
9696 card : { facing : "Up" , rank : "Seven" , suit : "Diamond" } ,
97- rankRelativeValueUsed : 7 ,
97+ rankGlobalValueUsed : 7 ,
9898 rankValueUsed : 7 ,
9999 } ) ;
100100 playerHand . cards . push ( {
101101 card : { facing : "Up" , rank : "Eight" , suit : "Diamond" } ,
102- rankRelativeValueUsed : 8 ,
102+ rankGlobalValueUsed : 8 ,
103103 rankValueUsed : 8 ,
104104 } ) ;
105105 playerHand . score = dealerHand . score ;
0 commit comments