This repository is the solution, this is the problem
iceyePoker is a LARVIS module, that lets you play poker with LARVIS, so you will never be bored again
Now every night can be Poker Night!
github.com/fatih/color
- this module provides a means to output colored text to the console for a better user experience.
I did consider using a module for the CLI interactions, but given the scope of this task, I decided against it as I felt that it wasn't really necessary and it would also mean I can write more code to showcase.
There are a total of 5 modules (excluding the main
module), 1 top level module (poker
) and 4 submodules within it.
poker
- this module is responsible for facilitating the poker gamecli
- this module is responsible for the cli interactions and validating all user inputshand
- this module is responsible for analyzing the cards and determining how strong the hand is and comparing it with other handsconsole
- this module provides colored text output to the console for a better user experienceerrors
- custom errors types needed for example to help determine when a actual error occurs or when a user enters an erroneous input
From the root folder, run: sudo ./run.sh
- copy the
iceyePoker
folder to$GOPATH/src
cd $GOPATH/src/iceyePoker
go get -d -v
- to download all the dependenciesgo run .
- to run iceyePoker