The rock-paper-scissors game is a classic hand game played between 2 people. Its style was originated in China and was subsequently imported into Japan.
Here you can find a small version of this game in a console application. The idea is to complete 3 tries in order to get the winner between 2 players.
First of all, you need to install Python 3.14.
Later, you can create a virtual environment and active it in order to install the dependencies only for this project:
$ python3.14 -m venv .venv
$ source .venv/bin/activateAfter that, you must install the dependencies:
$ pip install -r requirements.txtNow you have an environment to run this application and the automated tests.
You can run this application with the following command:
$ python main.pySome unit tests were implemented in order to validate the rock-paper-scissors game models. You can run them and see the coverage report with the following commands:
$ coverage run -m pytest --verbose
$ coverage report -m