To view this screencast, add it to
your cart
and
checkout.
You can buy this screencast for any price, including FREE!
Using the playing cards that we created in Part 1 of this series, we create a game of Go Fish in Ruby!
In this screencast, we:
- Clean up / organize some of the code from Part 1
- Create a
GoFish::Gamethat deals cards out to many players - Create the code for asking ”Do you have any 3s?”
- Collect players’ “books” (4 cards of the same rank)
- Add logic for determining if the game is over and who the winner is
- Add logic for tracking turns
- Briefly play the game in IRB
At this stage, we have a working GoFish::Game that can be used, but it doesn’t have a GUI yet!
In the upcoming Part 3 of this series, we’ll create a multiplayer web-based version of Go Fish :)
Note: I had a bit of a stuffy nose when I recorded this one … hope I don’t sound too funny!
You can view the code created during this screencast at: http://github.com/remi/remicasts/tree/playing-cards-2