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

Slot Machine #57

Open
vanerichard opened this issue May 9, 2021 · 3 comments
Open

Slot Machine #57

vanerichard opened this issue May 9, 2021 · 3 comments

Comments

@vanerichard
Copy link

The slot machine project does not consider the diamonds as wild symbols, so that means that the only way to "duplicate" the prize is if you have 3 diamonds. I don't know if this was intentional.

@jderavin
Copy link

jderavin commented Nov 8, 2021

Yes I agree. To duplicate the actual slot machine game as described in the text, there needs to be a little more logic so that, for example, "7", "7", "DD" is regarded as a "win" with three of the "same" symbol. Also the same applies to the prize for "all bars": "B", "BBB", "DD" should score a prize for all bars, allowing for the wild card status of diamonds, but doesn't with the existing suggested coding.

@jderavin
Copy link

Further to my previous comment, having now read the rest of the book (in particular, Section 11 on loops) I now see that in Section 11.6 there is an exercise that is intended to produce code that will allow for diamonds being "wild". Even so, perhaps it is worth including a sentence in Section 9 noting that "diamonds" in Section 9 are not yet treated as "wild", but that this issue will be addressed in Section 11? That way, readers such as vaneric86 and myself won't be left in doubt as to the accuracy of the code in Section 9.

@jderavin
Copy link

Sorry I referred in my previous comment to "Section 11.6" but actually what I meant was, "Exercise 11.6 in Section 11.3".

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

No branches or pull requests

2 participants