Skip to content

🎲🎲 Guessing number game Kata - Refactoring to Functional Programming

Notifications You must be signed in to change notification settings

araknoid/guessing-number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Guessing Number Kata - Refactoring

The main objective of this kata is to take a procedural program and incrementally refactor to a functional one.
This is the Kotlin version of the FP to the Max in Scala made by John De Goes.

Libraries

Arrow
JUnit
AssertJ

Structure

It contains 3 branches:

  • master - starting point of the Kata
  • coverage - code covered by tests
  • refactoring - functional refactoring with an incremental approach

Game

This is an example of the guessing number game:

What is your name?
Carlo
Hello, Carlo, welcome to the game!
Dear Carlo, please guess a number from 1 to 5:
1
You guessed right, Carlo!
Do you want to continue, Carlo?
y
Dear Carlo, please guess a number from 1 to 5:
2
You guessed wrong, Carlo! The number was: 4
Do you want to continue, Carlo?
n

About

🎲🎲 Guessing number game Kata - Refactoring to Functional Programming

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages