Skip to content

Conversation

@FelixMei
Copy link

@FelixMei FelixMei commented May 2, 2016

No description provided.

for (ranking, count) in rankingCounts {
print("The probability of being dealt a \(ranking.description) is \(Double(count) / Double(samples) * 100)%")
struct PokerHand: CustomStringConvertible{
let cards: [Card?] = [nil,nil,nil,nil,nil]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Schreib das Attribut lieber ohne Anfangswert. In init dann ein neues Array erstellen und self.cards zuweisen

@nilsvu
Copy link
Member

nilsvu commented May 16, 2016

Funktioniert eigtl. schon alles, 2/3 Pt. erstmal 👍 du brauchst nur noch die paar Sachen zu verbessern und schauen, dass der Test-Code klappt ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants