Beta
Worthless Queen
Loading description...
Games
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Reality check/game design issue: This artificially created game does not make sense as a card game. You're not given the ranks of the 4 cards, okay, but then we have to keep track of them ourselves to win the game anyway as we manipulate the game cycle via
swap
to gain this information? Then what's the point of hiding them in the first place? Might as well just change the game cycle to something like this:Player
constructor proivdes the 4 cards dealedswap
gives you the card, and then return a integer that decides which card to swap, or no swapAlthough also a valid game, what you describes is not "Worthless Queen" but a completely different game.
A key part of worthless queen is not knowing the initial cards and remembering your switches (or having a strategy where it doesnt matter).
First fixed test passes in a invalid card:
Stupid misstake. Fixed
Representation of card ranks should be specified. How is
10
represented?10
orT
(which is how it's sometimes represented)?Value of
J
andK
aren't specified either (and onlyK
's value appear in the example in the description)Agree. Added all cards.