6 kyu
RPS Knockout Tournament Winner
104 of 257FrankK
Loading description...
Games
Algorithms
Game Solvers
Design Patterns
Object-oriented Programming
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.
The image in the description is dead.
Description has been fixed.
Very nice and simple Kata, with a bit of trial and error and a gamey sense to it. As well a, in my oppinion, very suitable description, which even points out the (relatively simple) way to complete the given task.
This comment has been hidden.
Well, it made the strategies easy to remember and to counter-implement properly :P
I'm a bit struggling to figure out this kata.
How can you get the opponent shape? from the playground? Is it the one from current game or previos game? So far, we are able to get only the outcome-til-20 and exposing the playground API didn't help much.
The name
setOpponentShape
and the void return type are quite misleading.A typical workflow in pseudo-code would be much more helpful.
How can I win a completely random game with some non-random strategy? Do you have different types of bot opponents? Do I need to risk losing the first matches of the 20 to figure out if the opponent is following a pattern?
Many things are not clear.
I've skipped the solution out of curiosity.
My personal opinion about this kata without spoilering too much:
setOpponentShape
: not only is misleading, you don't even use it! Another irrelevant thing of the kata.IMHO, this kata is too much a "guess what was in the author's mind".
Just my 2 cents.
This comment has been hidden.
This comment has been hidden.
ahah! nothing personal :)
My suggestion is to mention this in the description: there are some named bots with their relative strategies and you need to lose a bit of times to figure them out. I initially thought it was all random, the playing style and the names too.
:)
Thanks for your suggestion... I will use it to make the description more clear.
Funny thing is that my initial idea was more like your thoughts but I dropped a lot to make the kata not too hard. I think it made it also less intuitive...
I changed the kata description. I hope it is better now... :D
It's much better;-)... but really little bit "strange kata", first (old description) i was thinking about where/how to get the shape of the computer-player to choose "my" correct shape to win, but nothing fits to your interface (function return values and parameters);-)... So i throwed my tablet against the wall:-)...
...deleted (cw error, submitted twice - i often have this error?!)
This comment has been hidden.
Hi dinglemouse, 9 out of 10 is not enough because the final test wants you to win the tournament 25 times in a row. I will make some changes to make this clear... Gr. Frank
Thanks dinglemouse. I've changed the kata tests and its much better now :)
This comment has been hidden.
This comment has been hidden.
.
This comment has been hidden.
Why is the test code forcing me to expose these variables from
Player
class?Hi dinglemouse,
Thanks for your comment! I moved the tournament result information to the Playground class. They are removed from the
Player
class.gr. Frank
.
Is this guaranteed winnable? It seems opponent is checking my moves same as I am checking theirs. But I am always forced to move first which puts me at a disadvantage.
As far as I am concerned, it is winnable :-) I could be wrong but I don't think the system allows the opponent to know the move in advance. I think that both players are on the same level of information.
@oaz which language?
C#
.