Skip to content

TheGhostAnalyst/Python-Penalty-kick-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 

Repository files navigation

โšฝ Python Penalty Simulator โ€“ CyberSage V1.0

A fun, interactive penalty shootout game written in Python.
You can play as either:

  • ๐Ÿงค Keeper โ€“ try to save 5 shots
  • โšฝ Striker โ€“ try to score 5 goals

Created by Habib (The Ghost Analyst).


๐ŸŽฎ How to Play

  1. Run the game in your Python environment:
    python penalty_simulator.py

2. **Choose your role**:

   * `1` โ†’ Keeper Mode
   * `2` โ†’ Striker Mode
3. **Make your moves** by typing one of the four directions:

   ```
   up, down, left, right
   ```
4. First to **5 points** wins the game!

---

## ๐Ÿ“‚ Features

* Randomized directions for keeper/striker
* Fun, dynamic commentary for every goal/save
* Input validation for directions
* Win condition system (first to 5 points)
* Designed for beginner-friendly Python practice

---

## ๐Ÿ›  Requirements

* **Python 3.x**
* Works in any terminal or IDE
* No external libraries required (uses `random` and `time` from Python's standard library)

---

## ๐Ÿš€ How It Works

* **Random direction** is generated for either the keeper or the striker.
* Player guesses/shoots by entering a direction.
* If the guess matches (Keeper Mode) or differs (Striker Mode), a point is awarded.
* Commentary is chosen randomly from predefined lists.

---

## ๐Ÿ“ท Example Gameplay

```
Welcome to Python Penalty Simulator - CyberSage V1.0 โšฝ
๐Ÿง  Created by Habib (The Ghost Analyst)

Choose your role:
1. ๐Ÿงค Keeper Mode (Save the shot)
2. โšฝ Striker Mode (Score the goal)
Enter 1 or 2: 2

โšฝ Striker Mode Activated!
Score 5 goals to win!

Which direction do you shoot? ('up', 'down', 'left', 'right'): up
GOAAALLL!! โšฝ๐Ÿ”ฅ 
Keeper had no chance! โšฝ๐Ÿ”ฅ
Score: 1/5
```

---

## ๐Ÿ“œ License

This project is free to use for personal and educational purposes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages