Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enum Ranking ergänzt (contains Problem!) #8

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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