Skip to content

Commit

Permalink
Adds Deckset slides.
Browse files Browse the repository at this point in the history
  • Loading branch information
lyricsboy committed Mar 15, 2017
1 parent a06a8e7 commit 709ccfc
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions PokerHands-deck.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
build-lists: true
footer: © Brian Hardy, 2017. [@lyricsboy](https://github.com/lyricsboy)

# Poker Hands
## In Swift
### With TDD

Brian Hardy
Atlanta iOS Developers

---

# The Poker Hands Kata

* 52-card deck
* 4 suits, Aces high
* Sample hand: `2H 3D 5S 9C KD`
* Goal: Compare hands to determine a winner.

Reference: [Coding Dojo](http://codingdojo.org/kata/PokerHands/)

---

# In Swift (3)

* Protocols
* Equatable
* Comparable
* Hashable
* Enumerations
* Associated Values

---

# With TDD

* Test
* Driven
* Design

---

# Red, Green, Refactor

1. Red: Write a failing test
1. Green: Make the test pass
1. Refactor: Improve, DRY, etc.

---
[.autoscale: true]

# Things To Do

1. Model Card, Suit, Rank
1. Model Poker Hand
* (5 cards)
1. Identify Known Hands
* (pair, full house, flush)
1. Compare Hands
* hand ranking
* card ranking

---

# Demo Time

0 comments on commit 709ccfc

Please sign in to comment.