Merge pull request #6015 from AkiraLaine/fix/text-spacing

fixed spacing issue on waypoint: counting cards
pull/6023/head
Arsen Melikyan 2016-01-10 14:39:56 +04:00
commit ed981d6c3a
1 changed files with 6 additions and 7 deletions

View File

@ -870,10 +870,10 @@
""
],
"tail": [
"(function(){",
"if (myStr !== undefined){",
"return 'myStr = '+ JSON.stringify(myStr);}",
"else{return null;}})();"
"(function(){",
"if (myStr !== undefined){",
"return 'myStr = '+ JSON.stringify(myStr);}",
"else{return null;}})();"
],
"solutions": [
"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>.",
"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>",
"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.",
"<strong>Example Output</strong>",
"<code>-3 Hold</code><br><code>5 Bet</code>"
"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><br><code>-3 Hold<br>5 Bet</code>"
],
"releasedOn": "January 1, 2016",
"challengeSeed": [