Ruby Blackjack (Part 2)

unnamed.png
Today has been a long day, and I am still not done with my blackjack. So I made the goal to at least make progress, so that tomorrow I can finish out the remaining steps.

I took Jesse’s advice, and went ahead and completed the UI questions. Such as, Do you want to hit or stay? So they are ready when I get there.

I also started scripting out psuedo-code for how I plan to set up the conditional statements that will trigger the string interpolated responses.

Whew!

But as far as actual code that works and does something… today, this is what I got:

deal_cards = deck.shift

dealer_hand = deal_cards.value + deal_cards.value

player_hand = deal_cards.value + deal_cards.value

p dealer_hand

p player_hand

I know that it don’t seem like much, but trust me. It took me hours (and research) to get here. And I am still not quite getting what I want.

I am hoping that getting a much needed good night sleep and some decent amount of food will get me a rockstar day tomorrow. I need it!

 
1
Kudos
 
1
Kudos

Now read this

Action Mailers in Rails 4

I wrote and re-wrote the code to get this very simple thing working so, I decided to dedicate a blog post to the walkthrough that I wish I could have found when I googled. Here is how-to on setting up a mailer in Rails 4: But first,... Continue →