6 kyu
RPS Knockout Tournament Winner
104 of 256FrankK
Description:
A rock-paper-scissors robo player paticipates regularly in the same knockout tournament but almost always without succes. Can you improve this robo player and make it a tournament winner?

Task
- A match is between 2 players. The first that wins 20 games of Rock-Paper-Scissors is the winner of the match and continues to the next round. The other player is eliminated from the tournament.
- If your bot wins 5 rounds, the final included, it has won the tournament.
- The number of opponents is limited. Each opponent has its own strategy that does not change.
- The tournament is played on the preloaded
RockPaperScissorsPlayground
:
playground = RockPaperScissorsPlayground()
result = playground.play_tournament(myPlayer)
This kata starts with a working bot, altough it plays with a poor random strategy. It can compete on the RockPaperScissorsPlayground
because it implements:
class RockPaperScissorsPlayer:
# Your name as displayed in match results.
def get_name(self):
pass
# Used by playground to get your game shape (values: "R", "P" or "S").
def get_shape(self):
pass
# Used by playground to notify you that a new match will start.
def set_new_match(self, opponentName):
pass
# Used by playground to inform you about the shape your opponent played in the game.
def set_opponent_shape(self, shape):
pass
Note
The best way to solve this kata is:
- Extend methods
get shape
andset opponent shape
to make the patterns of your opponents visible to you and analyse their strategies and weaknesses. - If the strategy of an opponent is clear to you, adapt your bot to the opponent.
- Continue until your bot can beat all opponents by skill instead of sheer luck.
Games
Algorithms
Game Solvers
Design Patterns
Object-oriented Programming
Similar Kata:
Stats:
Created | Jan 1, 2017 |
Published | Jan 1, 2017 |
Warriors Trained | 1222 |
Total Skips | 42 |
Total Code Submissions | 4624 |
Total Times Completed | 256 |
C# Completions | 97 |
Java Completions | 65 |
Python Completions | 104 |
Total Stars | 47 |
% of votes with a positive feedback rating | 77% of 49 |
Total "Very Satisfied" Votes | 32 |
Total "Somewhat Satisfied" Votes | 11 |
Total "Not Satisfied" Votes | 6 |
Total Rank Assessments | 6 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 7 kyu |