# brown-cs15-2026/alienmover architecture

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

- Interactive diagram: https://gitdiagram.com/brown-cs15-2026/alienmover
- Repository: https://github.com/brown-cs15-2026/alienmover

## Overview

This small JavaFX application displays an alien and lets the user move it left or right with buttons. App starts the window; PaneOrganizer lays out the alien and button areas; AlienMover creates the alien and wires button actions to its movement methods. Constants supplies dimensions and movement values. The evidence is limited to the sampled source; the README is empty.

Main entry points: [`AlienMover.java`](https://github.com/brown-cs15-2026/alienmover/blob/main/AlienMover.java) (Mover controls), [`Alien.java`](https://github.com/brown-cs15-2026/alienmover/blob/main/Alien.java) (Alien graphic), [`Constants.java`](https://github.com/brown-cs15-2026/alienmover/blob/main/Constants.java) (UI constants), [`App.java`](https://github.com/brown-cs15-2026/alienmover/blob/main/App.java) (App startup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_composition["Application layout"]
  node_app["App startup<br/>[App.java]"]
  node_panes["Pane organizer<br/>[PaneOrganizer.java]"]
end

subgraph group_interaction["Alien interaction"]
  node_mover["Mover controls<br/>[AlienMover.java]"]
  node_buttons["Move buttons<br/>[AlienMover.java]"]
  node_alien["Alien graphic<br/>[Alien.java]"]
end

subgraph group_configuration["UI constants"]
  node_constants["UI constants<br/>[Constants.java]"]
end

node_user(("User"))

node_app -->|"creates"| node_panes
node_panes -->|"creates"| node_mover
node_mover -->|"creates"| node_alien
node_mover -->|"configures"| node_buttons
node_user -->|"activates"| node_buttons
node_buttons -->|"dispatches actions"| node_mover
node_mover -->|"invokes movement"| node_alien
node_app -->|"reads dimensions"| node_constants
node_mover -->|"reads spacing"| node_constants
node_alien -->|"reads geometry"| node_constants

click node_app "https://github.com/brown-cs15-2026/alienmover/blob/main/App.java"
click node_panes "https://github.com/brown-cs15-2026/alienmover/blob/main/PaneOrganizer.java"
click node_mover "https://github.com/brown-cs15-2026/alienmover/blob/main/AlienMover.java"
click node_buttons "https://github.com/brown-cs15-2026/alienmover/blob/main/AlienMover.java"
click node_alien "https://github.com/brown-cs15-2026/alienmover/blob/main/Alien.java"
click node_constants "https://github.com/brown-cs15-2026/alienmover/blob/main/Constants.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_app,node_panes,node_user toneBlue
class node_mover,node_buttons,node_alien toneAmber
class node_constants toneMint
```

## Components

### Application layout

- [App startup](https://github.com/brown-cs15-2026/alienmover/blob/main/App.java): `App.java`
- [Pane organizer](https://github.com/brown-cs15-2026/alienmover/blob/main/PaneOrganizer.java): `PaneOrganizer.java`

### Alien interaction

- [Mover controls](https://github.com/brown-cs15-2026/alienmover/blob/main/AlienMover.java): `AlienMover.java`
- [Move buttons](https://github.com/brown-cs15-2026/alienmover/blob/main/AlienMover.java): `AlienMover.java`
- [Alien graphic](https://github.com/brown-cs15-2026/alienmover/blob/main/Alien.java): `Alien.java`

### UI constants

- [UI constants](https://github.com/brown-cs15-2026/alienmover/blob/main/Constants.java): `Constants.java`

### Other components

- **User**

## Connections

- App startup → Pane organizer: creates (evidence: `App.java`)
- Pane organizer → Mover controls: creates (evidence: `PaneOrganizer.java`)
- Mover controls → Alien graphic: creates (evidence: `AlienMover.java`)
- Mover controls → Move buttons: configures (evidence: `AlienMover.java`)
- User → Move buttons: activates (evidence: `AlienMover.java`)
- Move buttons → Mover controls: dispatches actions (evidence: `AlienMover.java`)
- Mover controls → Alien graphic: invokes movement (evidence: `AlienMover.java`)
- App startup → UI constants: reads dimensions (evidence: `App.java`)
- Mover controls → UI constants: reads spacing (evidence: `AlienMover.java`)
- Alien graphic → UI constants: reads geometry (evidence: `Alien.java`)
