# rathorchanchal1/games architecture

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

- Interactive diagram: https://gitdiagram.com/rathorchanchal1/games
- Repository: https://github.com/rathorchanchal1/games

## Overview

This repository is a collection of standalone Python mini-games, not a single game runtime. Players interact directly with each game’s own loop and receive gameplay and score or end-state feedback. The README highlights Dragon, Bouncing Ball, and Rainbow Snake; the tree and sampled source also show Road Dodge and Two Cars. Each game is implemented as a self-contained script. The graph reflects those separate entry points; it does not imply shared services or sequencing. Two Cars uses Pygame; the other sampled games use Turtle or Pygame.

Main entry points: [`dragon.py`](https://github.com/rathorchanchal1/games/blob/main/dragon.py) (Dragon Runner), [`snakeGame.py`](https://github.com/rathorchanchal1/games/blob/main/snakeGame.py) (Rainbow Snake), [`two_cars_game/game.py`](https://github.com/rathorchanchal1/games/blob/main/two_cars_game/game.py) (Two Cars), [`bouncingBallGame.py`](https://github.com/rathorchanchal1/games/blob/main/bouncingBallGame.py) (Bouncing Ball)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pygame_games["Pygame Games"]
  node_dragon["Dragon Runner<br/>[dragon.py]"]
  node_snake["Rainbow Snake<br/>[snakeGame.py]"]
  node_two_cars["Two Cars<br/>[game.py]"]
end

subgraph group_turtle_games["Turtle Games"]
  node_bouncing_ball["Bouncing Ball"]
  node_road_dodge["Road Dodge<br/>[car.py]"]
end

node_player(("Player"))

node_player -->|"plays"| node_dragon
node_player -->|"plays"| node_snake
node_player -->|"plays"| node_two_cars
node_player -->|"plays"| node_bouncing_ball
node_player -->|"plays"| node_road_dodge

click node_dragon "https://github.com/rathorchanchal1/games/blob/main/dragon.py"
click node_snake "https://github.com/rathorchanchal1/games/blob/main/snakeGame.py"
click node_two_cars "https://github.com/rathorchanchal1/games/blob/main/two_cars_game/game.py"
click node_bouncing_ball "https://github.com/rathorchanchal1/games/blob/main/bouncingBallGame.py"
click node_road_dodge "https://github.com/rathorchanchal1/games/blob/main/car.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_dragon,node_snake,node_two_cars toneBlue
class node_bouncing_ball,node_road_dodge toneAmber
class node_player toneIndigo
```

## Components

### Pygame Games

- [Dragon Runner](https://github.com/rathorchanchal1/games/blob/main/dragon.py): `dragon.py`
- [Rainbow Snake](https://github.com/rathorchanchal1/games/blob/main/snakeGame.py): `snakeGame.py`
- [Two Cars](https://github.com/rathorchanchal1/games/blob/main/two_cars_game/game.py): `two_cars_game/game.py`

### Turtle Games

- [Bouncing Ball](https://github.com/rathorchanchal1/games/blob/main/bouncingBallGame.py): `bouncingBallGame.py`
- [Road Dodge](https://github.com/rathorchanchal1/games/blob/main/car.py): `car.py`

### Other components

- **Player**

## Connections

- Player → Dragon Runner: plays (evidence: `dragon.py`)
- Player → Rainbow Snake: plays (evidence: `snakeGame.py`)
- Player → Two Cars: plays (evidence: `two_cars_game/game.py`)
- Player → Bouncing Ball: plays (evidence: `bouncingBallGame.py`)
- Player → Road Dodge: plays (evidence: `car.py`)
