Tennis Kata


Inspired by Emily Bache

Tennis Kata

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

  • TennisGame1
  • TennisGame2
  • TennisGame3

Get the Code

On GitHub (This kata can be done using 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 the maintainer 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.