Skip to main content

A Rock Paper Scissor Game

Project description

Play rock paper scissors against a computer!

RPS workflow

Features

  • Fun to play!
  • Easy to install
  • 100% Test Coverage
  • Beautiful ASCII art
  • Two different difficulty levels
  • A hard difficulty level that utilizes history matching
  • A detailed mode that shows the logic behind the computer move
  • Tested using GitHub Actions

Quickstart

Creates a new virtual environment with the name .venv:

python3 -m venv .venv

Activate the virtual environment named .venv:

On Mac:

source .venv/bin/activate

On Windows:

.venv\Scripts\activate.bat

Install Rock Paper Scissors Game:

pip install RockPaperScissorsFullGame

This package is developed as a game to be played in the shell.
Run the package directly from the command line:

python -m RockPaperScissorsFullGame

How to play

Choose settings

After running the game, you will be asked if you want the ascii art to be visible.

Do you want ascii art to be visible?
select one
(1) Yes
(2) No

Enter "1" or "yes" if you want to turn on the ascii art.
Enter "2" or "no" if you want to turn off the ascii art.

Play the game

Play rock paper scissors by choosing the item.

Enter your item: (rock, paper, scissors)

Enter "rock" or "r" if you want to choose rock.
Enter "paper" or "p" if you want to choose paper.
Enter "scissors" or "s" if you want to choose scissors.

The shell will print the result of this round.

You choose Paper. Computer chooses Rock.
You Win.

Quit the game

Enter "quit" to quit the game.

Contributor

Benji Luo
Brian Lin
Robert Chen

Link to the PyPI page

https://pypi.org/project/RockPaperScissorsFullGame/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

RockPaperScissorsFullGame-1.1.1.tar.gz (41.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

RockPaperScissorsFullGame-1.1.1-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

File details

Details for the file RockPaperScissorsFullGame-1.1.1.tar.gz.

File metadata

File hashes

Hashes for RockPaperScissorsFullGame-1.1.1.tar.gz
Algorithm Hash digest
SHA256 e0271eeb198daeed54af041b92097fcdf2756ecac413712d03ed24083750c174
MD5 f3f165af98ce875223892a5a08449549
BLAKE2b-256 344a44b67cd583df2bc07d30cf575b4bffe71eebf3ae919fde40a93cedefa41e

See more details on using hashes here.

File details

Details for the file RockPaperScissorsFullGame-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for RockPaperScissorsFullGame-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d8da3d41e12b48758a93b9464dfffc89062039132b770a6fa4fb5605659703d9
MD5 4b9943c48301949200e86dd8410fb01c
BLAKE2b-256 52b3197260ac8586165bd57ede9c3e5b78641b58e565a01cf3b7a56c8b3cad11

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page