Tennis Kata


Tennis Kata

There are three versions of this refactoring kata, each with their own design smells and challenges:

  • TennisGame1
  • TennisGame2
  • TennisGame3

Get the Rules and Code

On GitHub. This kata is available in ABAP, C++, C#, Go, Groovy, Java, JavaScript, Kotlin, Objective-C, OCaml, Perl, PHP, Python, Ruby, Scala, Swift and TypeScript. If your favorite language is missing, feel free to create a pull request. Be sure Emily will be happy ;-)

Image credits

Image by Rachel M. Carmena for Kata-Log. It represents a greeting of respect and gratitude made at the beginning and at the end of a kata. Please, feel free to use this image in case you want to contribute with a kata, but you don’t have another image. It’s not necessary to include this credit again.