Skip to content

The example code showing a guess my number game done with and without 'hexagonal architecture'

License

Notifications You must be signed in to change notification settings

vituchon/HexagonalGuessMyNumber

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HexagonalGuessMyNumber

  • It is a fork of this project
  • I provide a new way of displaying the results to an end-user without touching the domain layer thus following the Open Closed principle.
    • I added new class that follow the display interface for displaying results in an OS native GUI (a.k.a "window")

Accompanying tutorial at https://www.viewfromthecodeface.com/portfolio/clean-code-hexagonal-architecture/

Build and run

Assuming that you are an user using a computer with your working directory on HexagonalGuessMyNumber folder (where you just download the code)

user@computer:./HexagonalGuessMyNumber$

Build

  • $ mkdir bin
  • $ javac $(find . -iname "*.java" -printf '%p ') -d bin

Run

after compiling the source classes into a directory, like "bin" you could do:

  • $ java -cp bin com.viewfromthecodeface.hexagonal.Game

or

  • $ cd bin
  • $ java com.viewfromthecodeface.hexagonal.Game

About

The example code showing a guess my number game done with and without 'hexagonal architecture'

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%