/trivia-refactor-kata

A refactor kata, using Trivia as subject.

Primary LanguageHTMLGNU General Public License v3.0GPL-3.0

Trivia Refactor Kata

The code represents a game of Trivial Pursuit, a well known game. If interested you can find the rules here but for the purpose of the refactor kata they aren't really necessary. The goal of the kata is to refactor the code, so the game still works. If you encounter bgs you are allowed to fix them. But make sure the game is correct. It is a refactor not a rewrite.

This code base is a fork from the Legacy Code trivia kata. The repository here has been modified from the original to have the latest versions. So it is less suited for a legacy code retreat and more intended as a pure refactor kata.

Refactor guarded by Approval tests

Additionally, there is a branch Approval test has added ApprovalTests with optional TCR scripts. Using the kata with these Approval test in place is ideal for practicing pure refactors.

Can you refactor the code without the tests ever breaking? Can you use the TCR scripts?

Updated code options

Not all code options have their versions updated to a more recent version. Not all have added approval tests in the approval test branch. The code options ones that are updated are:

  • Java
  • Kotlin
  • Typescript
  • C#
  • NodeJS

Trivial pursuit

Acknowledgement

This code base is a fork from CaraDojo and J. B. Rainsberger Legacy Code retreat trivia. The repository here has been modified from the original to have the latest versions. So it is less suited for a legacy code retreat and more intended as a pure refactor kata.