jirgens/Tealeaf_Ruby — pull request #1 by boie0025 (2014-01-10 05:05:54+00:00)
Title: Made changes, see email for explanation.

- I moved the main game logic into a method game_main
- I made it so when the player busts, they don't win (even if they're score is higher than the dealer)
(changed line 164 in my pull request from "elsif player_score > dealer_score" to "elsif player_score > dealer_score && player_score <=21" adding that the player has to be higher than the dealer AND the player's score has to be less than or equal to 21.
- I moved the part where it grabs the name out of the main game method, and put it above the continuation construct, so it only asks once
-- This is the part you mentioned.. the loop. I did all of the above so I could put the main game in a loop that checks the player's desire to play again. Here's the construct:

game_main(name) #start the first time
while play_again
game_main(name)
end