In this repository I will be building a rock-paper-scissiors game with test (unit and feature) with best OOP practise
PHP
Rock-Paper-Scissors CLI Game
This CLI program is built on the LARAVEL FRAMEWORK. The program is built on a multiplayer, i.e. human vs human or human vs computer. Only three possible input types are accepted (Rock, Paper and Scissors).
To play the game, users must follow the command prompt. The game's output is either a win, draw or lose, depending on the user's game choice.
Repository Overview
The repository contains source code on how to play the Rock-Paper-Scissors game.
Specifications in the clone include
The program reads users' I/O and then displays results in the CLI. The console command file can be found within the console > commands directory with the name RockPaperScissors.
To excute the command, users need to run the artisan command `php artisan rock-paper-scissors` in the CLI
Writing of errors to logfile
I/O validation
Single CLI command to automate the read and write process with easy to read instructions
The project has a total of 4 test cases (3 Unit and 1 Feature) that executes in 0.06seconds.
The project is also dockerized, pushed to dockerhub where it is available to be pulled