# harismuneer/awesome-python-games architecture

> Architecture diagram of the GitHub repository harismuneer/awesome-python-games, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/harismuneer/awesome-python-games
- Repository: https://github.com/harismuneer/awesome-python-games

## Overview

This repository is a collection of eight independent Python 2 games, not one multi-stage application. The user copies a chosen game into CodeSkulptor and runs it; its event handlers and game logic produce interactive play. The games range from simple input-and-score experiences to card, paddle, and space games. Each game is implemented in a single script, so the graph treats each script as a runtime component rather than inventing shared services. The README documents the launch workflow; sampled source shows game logic and, for Asteroids, asset loading.

Main entry points: [`Code/8- Asteroids-RiceRocks.py`](https://github.com/harismuneer/awesome-python-games/blob/master/Code/8-%20Asteroids-RiceRocks.py) (Asteroids), [`Code/1- Rock,Paper,Scissors,Spock,Lizard.py`](https://github.com/harismuneer/awesome-python-games/blob/master/Code/1-%20Rock%2CPaper%2CScissors%2CSpock%2CLizard.py) (RPSLS), [`Code/2- Guess the Number.py`](https://github.com/harismuneer/awesome-python-games/blob/master/Code/2-%20Guess%20the%20Number.py) (Guess Number), [`Code/3- Stop Watch.py`](https://github.com/harismuneer/awesome-python-games/blob/master/Code/3-%20Stop%20Watch.py) (Stopwatch)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_chance["Choice Games"]
  node_rpsls["RPSLS"]
  node_guess["Guess Number"]
end

subgraph group_timing["Timing Games"]
  node_stopwatch["Stopwatch<br/>[3- Stop Watch.py]"]
  node_pong["Pong<br/>[4- Pong.py]"]
end

subgraph group_cards["Card Games"]
  node_memory["Memory<br/>[5- Memory.py]"]
  node_blackjack["Blackjack<br/>[6- Blackjack.py]"]
end

subgraph group_space["Space Games"]
  node_spaceship["Spaceship<br/>[7- Spaceship.py]"]
  node_asteroids["Asteroids"]
end

node_player(("Player"))
node_codeskulptor["CodeSkulptor"]
node_asset_host["Asset Host"]

node_player -->|"runs game in"| node_codeskulptor
node_codeskulptor -->|"runs pasted code"| node_rpsls
node_codeskulptor -->|"runs pasted code"| node_guess
node_codeskulptor -->|"runs pasted code"| node_stopwatch
node_codeskulptor -->|"runs pasted code"| node_pong
node_codeskulptor -->|"runs pasted code"| node_memory
node_codeskulptor -->|"runs pasted code"| node_blackjack
node_codeskulptor -->|"runs pasted code"| node_spaceship
node_codeskulptor -->|"runs pasted code"| node_asteroids
node_asteroids -->|"loads media"| node_asset_host

click node_rpsls "https://github.com/harismuneer/awesome-python-games/blob/master/Code/1-%20Rock%2CPaper%2CScissors%2CSpock%2CLizard.py"
click node_guess "https://github.com/harismuneer/awesome-python-games/blob/master/Code/2-%20Guess%20the%20Number.py"
click node_stopwatch "https://github.com/harismuneer/awesome-python-games/blob/master/Code/3-%20Stop%20Watch.py"
click node_pong "https://github.com/harismuneer/awesome-python-games/blob/master/Code/4-%20Pong.py"
click node_memory "https://github.com/harismuneer/awesome-python-games/blob/master/Code/5-%20Memory.py"
click node_blackjack "https://github.com/harismuneer/awesome-python-games/blob/master/Code/6-%20Blackjack.py"
click node_spaceship "https://github.com/harismuneer/awesome-python-games/blob/master/Code/7-%20Spaceship.py"
click node_asteroids "https://github.com/harismuneer/awesome-python-games/blob/master/Code/8-%20Asteroids-RiceRocks.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_rpsls,node_guess toneBlue
class node_stopwatch,node_pong toneAmber
class node_memory,node_blackjack toneMint
class node_spaceship,node_asteroids toneRose
class node_player,node_codeskulptor,node_asset_host toneIndigo
```

## Components

### Choice Games

- [RPSLS](https://github.com/harismuneer/awesome-python-games/blob/master/Code/1-%20Rock%2CPaper%2CScissors%2CSpock%2CLizard.py): `Code/1- Rock,Paper,Scissors,Spock,Lizard.py`
- [Guess Number](https://github.com/harismuneer/awesome-python-games/blob/master/Code/2-%20Guess%20the%20Number.py): `Code/2- Guess the Number.py`

### Timing Games

- [Stopwatch](https://github.com/harismuneer/awesome-python-games/blob/master/Code/3-%20Stop%20Watch.py): `Code/3- Stop Watch.py`
- [Pong](https://github.com/harismuneer/awesome-python-games/blob/master/Code/4-%20Pong.py): `Code/4- Pong.py`

### Card Games

- [Memory](https://github.com/harismuneer/awesome-python-games/blob/master/Code/5-%20Memory.py): `Code/5- Memory.py`
- [Blackjack](https://github.com/harismuneer/awesome-python-games/blob/master/Code/6-%20Blackjack.py): `Code/6- Blackjack.py`

### Space Games

- [Spaceship](https://github.com/harismuneer/awesome-python-games/blob/master/Code/7-%20Spaceship.py): `Code/7- Spaceship.py`
- [Asteroids](https://github.com/harismuneer/awesome-python-games/blob/master/Code/8-%20Asteroids-RiceRocks.py): `Code/8- Asteroids-RiceRocks.py`

### Other components

- **Player**
- **CodeSkulptor**
- **Asset Host**

## Connections

- Player → CodeSkulptor: runs game in (evidence: `README.md`)
- CodeSkulptor → RPSLS: runs pasted code (evidence: `README.md`)
- CodeSkulptor → Guess Number: runs pasted code (evidence: `README.md`)
- CodeSkulptor → Stopwatch: runs pasted code (evidence: `README.md`)
- CodeSkulptor → Pong: runs pasted code (evidence: `README.md`)
- CodeSkulptor → Memory: runs pasted code (evidence: `README.md`)
- CodeSkulptor → Blackjack: runs pasted code (evidence: `README.md`)
- CodeSkulptor → Spaceship: runs pasted code (evidence: `README.md`)
- CodeSkulptor → Asteroids: runs pasted code (evidence: `README.md`)
- Asteroids → Asset Host: loads media (evidence: `Code/8- Asteroids-RiceRocks.py`)
