fixed spacing issue on waypoint: counting cards

readded language stuff
This commit is contained in:
Akira Laine
2016-01-10 19:23:59 +11:00
parent fa049e9bf5
commit 0628ed1ba6

View File

@ -870,10 +870,10 @@
"" ""
], ],
"tail": [ "tail": [
"(function(){", "(function(){",
"if (myStr !== undefined){", "if (myStr !== undefined){",
"return 'myStr = '+ JSON.stringify(myStr);}", "return 'myStr = '+ JSON.stringify(myStr);}",
"else{return null;}})();" "else{return null;}})();"
], ],
"solutions": [ "solutions": [
"var myStr = \"\\\\ \\t \\t \\r \\n\";" "var myStr = \"\\\\ \\t \\t \\r \\n\";"
@ -3011,9 +3011,8 @@
"In the casino game Blackjack, a player can gain an advantage over the house by keeping track of the relative number of high and low cards remaining in the deck. This is called <a href=\"https://en.wikipedia.org/wiki/Card_counting\">Card Counting</a>.", "In the casino game Blackjack, a player can gain an advantage over the house by keeping track of the relative number of high and low cards remaining in the deck. This is called <a href=\"https://en.wikipedia.org/wiki/Card_counting\">Card Counting</a>.",
"Having more high cards remaining in the deck favors the player. Each card is assigned a value according to the table below. When the count is positive, the player should bet high. When the count is zero or negative, the player should bet low.", "Having more high cards remaining in the deck favors the player. Each card is assigned a value according to the table below. When the count is positive, the player should bet high. When the count is zero or negative, the player should bet low.",
"<table class=\"table table-striped\"><thead><tr><th>Value</th><th>Cards</th></tr></thead><tbody><tr><td>+1</td><td>2, 3, 4, 5, 6</td></tr><tr><td>0</td><td>7, 8, 9</td></tr><tr><td>-1</td><td>10, 'J', 'Q', 'K','A'</td></tr></tbody></table>", "<table class=\"table table-striped\"><thead><tr><th>Value</th><th>Cards</th></tr></thead><tbody><tr><td>+1</td><td>2, 3, 4, 5, 6</td></tr><tr><td>0</td><td>7, 8, 9</td></tr><tr><td>-1</td><td>10, 'J', 'Q', 'K','A'</td></tr></tbody></table>",
"You will write a card counting function. It will receive a <code>card</code> parameter and increment or decrement the global <code>count</code> variable according to the card's value (see table). The function will then return the current count and the string <code>\"Bet\"</code> if the count is positive, or <code>\"Hold\"</code> if the count is zero or negative.", "You will write a card counting function. It will receive a <code>card</code> parameter and increment or decrement the global <code>count</code> variable according to the card's value (see table). The function will then return the current count and the string <code>\"Bet\"</code> if the count is positive, or <code>\"Hold\"</code> if the count is zero or negative.<br><br>",
"<strong>Example Output</strong>", "<strong>Example Output</strong><br><code>-3 Hold<br>5 Bet</code>"
"<code>-3 Hold</code><br><code>5 Bet</code>"
], ],
"releasedOn": "January 1, 2016", "releasedOn": "January 1, 2016",
"challengeSeed": [ "challengeSeed": [