Skip to content

It contains a python script for a game called "Guess The Capitals" and a simple python implementation of the classic game "Rock, Paper, Scissors"

License

Notifications You must be signed in to change notification settings

Kabshah/Intro-Projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro Projects

Guess-Capitals

In this game, user is prompted to guess the capital of various states of America. The script evaluates the user's input and provides feedback on whether the guess is correct or incorrect.

How to Play?

  1. Ensure you have Python installed on your system. Clone or download this repository to your local machine.

  2. Open a terminal or command prompt and navigate to the directory where the script is located.

  3. Run the script by executing the following command: python guess_capitals.py

  4. Follow the prompts to guess the capitals of different states. Enter your guess when prompted.

  5. If you want to exit the game at any time, you can type "exit" when prompted for a guess.

RPS

The user plays against the computer, and the game keeps track of wins, losses, and ties in a "score.txt" file.

Gameplay:

The player inputs their move by typing "rock", "paper", or "scissors" on shell/terminal. The computer randomly selects its move.

The game determines the winner based on the classic rules which are: Rock crushes Scissor, Scissors cuts Paper, Paper beats Rock.

To exit the game, type "exit".

Score Tracking:

The game records the results of each game in a file named "score.txt"(file is provided in this rep for demonstration). Each line in the file represents a game counter and includes the outcome (win/loss/tie) as well as the score of winner.

The game counter ends tracking when you type "exit" and resumes when you run the game again.

About

It contains a python script for a game called "Guess The Capitals" and a simple python implementation of the classic game "Rock, Paper, Scissors"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages