# viragjain503/cricbuzzlld architecture

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

- Interactive diagram: https://gitdiagram.com/viragjain503/cricbuzzlld
- Repository: https://github.com/viragjain503/cricbuzzlld

## Overview

This is a console cricket-scoreboard application. The user enters team sizes, batting orders, and ball-by-ball outcomes; the game runs each team’s innings, tracks scoring and wickets, prints over summaries, and reports a winner. The core flow is explicit in the sampled Java sources. The README describes player scorecards and strike/extras handling; those responsibilities are represented within the over-scoring component rather than expanded into unsupported modules.

Main entry points: [`src/Game.java`](https://github.com/viragjain503/cricbuzzlld/blob/main/src/Game.java) (Match), [`src/Over.java`](https://github.com/viragjain503/cricbuzzlld/blob/main/src/Over.java) (Over scoring), [`src/Main.java`](https://github.com/viragjain503/cricbuzzlld/blob/main/src/Main.java) (Input setup), [`src/Inning.java`](https://github.com/viragjain503/cricbuzzlld/blob/main/src/Inning.java) (Innings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Console entry"]
  node_main["Input setup<br/>[Main.java]"]
end

subgraph group_match["Match orchestration"]
  node_game["Match<br/>[Game.java]"]
  node_inning["Innings<br/>[Inning.java]"]
end

subgraph group_scoring["Innings scoring"]
  node_over["Over scoring<br/>[Over.java]"]
end

node_user(("User"))
node_console["Console"]

node_user -->|"enters teams"| node_main
node_main -->|"starts match"| node_game
node_game -->|"plays innings"| node_inning
node_inning -->|"bats overs"| node_over
node_user -->|"enters balls"| node_over
node_over -->|"prints summaries"| node_console
node_game -->|"prints result"| node_console

click node_main "https://github.com/viragjain503/cricbuzzlld/blob/main/src/Main.java"
click node_game "https://github.com/viragjain503/cricbuzzlld/blob/main/src/Game.java"
click node_inning "https://github.com/viragjain503/cricbuzzlld/blob/main/src/Inning.java"
click node_over "https://github.com/viragjain503/cricbuzzlld/blob/main/src/Over.java"

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_main,node_user toneBlue
class node_game,node_inning toneAmber
class node_over toneMint
class node_console toneIndigo
```

## Components

### Console entry

- [Input setup](https://github.com/viragjain503/cricbuzzlld/blob/main/src/Main.java): `src/Main.java`

### Match orchestration

- [Match](https://github.com/viragjain503/cricbuzzlld/blob/main/src/Game.java): `src/Game.java`
- [Innings](https://github.com/viragjain503/cricbuzzlld/blob/main/src/Inning.java): `src/Inning.java`

### Innings scoring

- [Over scoring](https://github.com/viragjain503/cricbuzzlld/blob/main/src/Over.java): `src/Over.java`

### Other components

- **User**
- **Console**

## Connections

- User → Input setup: enters teams (evidence: `src/Main.java`)
- Input setup → Match: starts match (evidence: `src/Main.java`)
- Match → Innings: plays innings (evidence: `src/Game.java`)
- Innings → Over scoring: bats overs (evidence: `src/Inning.java`)
- User → Over scoring: enters balls (evidence: `src/Over.java`)
- Over scoring → Console: prints summaries (evidence: `src/Over.java`)
- Match → Console: prints result (evidence: `src/Game.java`)
