mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 20:32:15 +00:00
Added links to some cyber-dojo instances
This commit is contained in:
parent
8e3bd6076f
commit
980953d974
@ -6,7 +6,7 @@ There are three versions of this refactoring kata, each with their own design sm
|
||||
|
||||
Tennis has a rather quirky scoring system, and to newcomers it can be a little difficult to keep track of. The tennis society has contracted you to build a scoreboard to display the current score during tennis games.
|
||||
|
||||
Your task is to write a “TennisGame” class containing the logic which outputs the correct score as a string for display on the scoreboard. When a player scores a point, it triggers a method to be called on your class letting you know who scored the point. Later, you will get a call “currentScore()” from the scoreboard asking what it should display. This method should return a string with the current score.
|
||||
Your task is to write a “TennisGame” class containing the logic which outputs the correct score as a string for display on the scoreboard. When a player scores a point, it triggers a method to be called on your class letting you know who scored the point. Later, you will get a call “score()” from the scoreboard asking what it should display. This method should return a string with the current score.
|
||||
|
||||
You can read more about Tennis scores [here](http://en.wikipedia.org/wiki/Tennis#Scoring) which is summarized below:
|
||||
|
||||
@ -16,3 +16,12 @@ You can read more about Tennis scores [here](http://en.wikipedia.org/wiki/Tennis
|
||||
4. If at least three points have been scored by each side and a player has one more point than his opponent, the score of the game is "advantage" for the player in the lead.
|
||||
|
||||
You need only report the score for the current game. Sets and Matches are out of scope.
|
||||
|
||||
## Get going quickly with Cyber-dojo
|
||||
|
||||
I have set up some cyber-dojos ready to fork with the starting code. Do __not__ go in and start coding in these cyber-dojo instances directly! Rather, in the "review" dashboard, click on the last traffic light icon to see the code. __Do not__ start coding yet! Click on the fork symbol, to start a __new__ cyber dojo to use. You can then have several pairs enter your new dojo and start coding, all with the same starting code.
|
||||
|
||||
- [Python](http://www.cyber-dojo.com/dashboard/show/FFEB8EE18C)
|
||||
- [Ruby](http://www.cyber-dojo.com/dashboard/show/9197D6B12C)
|
||||
- [Java](http://www.cyber-dojo.com/dashboard/show/B22DCD17C3)
|
||||
- I havn't done C++ yet, since cyber-dojo is using a different test framework.
|
||||
Loading…
Reference in New Issue
Block a user