Skip to content

A clean coded version of tic tac toe. Written in Kotlin.

License

Notifications You must be signed in to change notification settings

erdeanmich/titato

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

titato - a command line game

This is a small command line tic-tac-toe game written in Kotlin.

The challenge was to code it as clean as possible.

Why is it "clean code"?

  • reduced complexity by breaking down the logic in several functions
  • speaking and describing function and variable names
  • consistence in naming
  • named classes after implementation
  • methods are basically only do one thing
  • encapsulated conditionals
  • as less function arguments as possible
  • less "magic values" - they are extracted as constants
  • ... and much more :)

Running the game

Clone the project, open a command shell of choice. cd to the project root folder and run: mvn clean install exec:java

Have fun :)

Releases

No releases published

Packages

No packages published

Languages