meltdown-terminal 2.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Chirag Bhandarkar (codest0411)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,248 @@
1
+ Metadata-Version: 2.4
2
+ Name: meltdown-terminal
3
+ Version: 2.0.0
4
+ Summary: A stressful, fast-typing survival game that runs entirely in your terminal.
5
+ Author: Chirag Bhandarkar
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/codest0411/meltdown
8
+ Project-URL: Repository, https://github.com/codest0411/meltdown
9
+ Project-URL: Issues, https://github.com/codest0411/meltdown/issues
10
+ Project-URL: Changelog, https://github.com/codest0411/meltdown/blob/main/CHANGELOG.md
11
+ Keywords: terminal,game,curses,typing,cli,survival
12
+ Classifier: Development Status :: 5 - Production/Stable
13
+ Classifier: Environment :: Console :: Curses
14
+ Classifier: Intended Audience :: End Users/Desktop
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Operating System :: MacOS
17
+ Classifier: Operating System :: Microsoft :: Windows
18
+ Classifier: Operating System :: POSIX :: Linux
19
+ Classifier: Programming Language :: Python :: 3
20
+ Classifier: Programming Language :: Python :: 3.8
21
+ Classifier: Programming Language :: Python :: 3.9
22
+ Classifier: Programming Language :: Python :: 3.10
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3.12
25
+ Classifier: Programming Language :: Python :: 3.13
26
+ Classifier: Programming Language :: Python :: 3.14
27
+ Classifier: Topic :: Games/Entertainment
28
+ Classifier: Topic :: Terminals
29
+ Requires-Python: >=3.8
30
+ Description-Content-Type: text/markdown
31
+ License-File: LICENSE
32
+ Requires-Dist: windows-curses>=2.3.0; sys_platform == "win32"
33
+ Provides-Extra: dev
34
+ Requires-Dist: pytest>=7.0; extra == "dev"
35
+ Requires-Dist: build>=1.0; extra == "dev"
36
+ Requires-Dist: twine>=4.0; extra == "dev"
37
+ Dynamic: license-file
38
+
39
+ <div align="center">
40
+
41
+ # ☢️ MELTDOWN v2.0
42
+
43
+ ### A stressful, fast-typing survival game that runs entirely in your terminal.
44
+
45
+ ![Python](https://img.shields.io/badge/python-3.8%2B-blue?logo=python&logoColor=white)
46
+ ![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgrey)
47
+ ![Dependencies](https://img.shields.io/badge/dependencies-none-brightgreen)
48
+ ![License](https://img.shields.io/badge/license-MIT-green)
49
+
50
+ <br>
51
+
52
+ <img src="screenshot.svg" alt="MELTDOWN gameplay in a terminal" width="720">
53
+
54
+ <sub>Illustration of the game screen (Level 4: Solar Flare).</sub>
55
+
56
+ </div>
57
+
58
+ ---
59
+
60
+ ## 🚨 The Story
61
+
62
+ The space station is failing. Every other operator is gone. You are the last one at the console.
63
+
64
+ Alarms keep firing, the timers keep shrinking, and your stress keeps rising. Answer every alarm before it expires, or the hull will not hold. **How many levels can you survive?**
65
+
66
+ ## ✨ Features
67
+
68
+ - 🎮 **7 handcrafted levels** that get faster and meaner, then **endless mode** after that
69
+ - ⏱️ **Multiple alarms at once**, each with its own countdown
70
+ - 🧠 **10 alarm types**: `type`, `reverse`, `solve`, `unscramble`, `memorize`, `sequence`, `binary`, `morse`, `decode`, `seq lock`
71
+ - 😰 **Stress and hull meters** — lose either one and the station is lost
72
+ - 🔥 **Combo multiplier** for streaks, wiped out by one mistake
73
+ - 📺 **Random events**: corrupted displays and alarm surges
74
+ - 🔋 **Power-ups**: freeze time (`freeze`), repair hull (`repair`), calm stress (`calm`), clear alarms (`clear`)
75
+ - 👾 **3 boss fights**: *The Sentinel*, *The Guardian*, and *The Core*
76
+ - ⚙️ **3 difficulty modes**: Casual, Operator, Nightmare
77
+ - 📖 **Story events**: narrative transmissions and strategic choices between levels
78
+ - 👥 **Two-player modes**: Co-op (shared screen) and Versus (seeded head-to-head)
79
+ - 🏆 **Top-10 leaderboard** with daily challenge rankings
80
+ - 🎖️ **19 achievements** to unlock
81
+ - 📊 **Detailed statistics**: accuracy, response times, longest combo, and more
82
+ - 💾 **Save & resume**: quit mid-run and continue later (`~/.meltdown/data.json`)
83
+ - ♿ **Accessibility options**: reduced flash, colorblind mode, large UI, timer numbers
84
+ - 🔊 **Sound effects** (toggle-able terminal beeps)
85
+ - 📦 **Minimal dependencies**: standard library only on macOS/Linux (`windows-curses` on Windows)
86
+
87
+ ---
88
+
89
+ ## 🚀 Installation
90
+
91
+ > **Note:** Once `meltdown-terminal` is published to PyPI, you can install it globally with `pipx` or `pip`:
92
+
93
+ ### Recommended (`pipx`)
94
+
95
+ ```bash
96
+ pipx install meltdown-terminal
97
+ meltdown
98
+ ```
99
+
100
+ `pipx` installs the game in an isolated environment and puts the `meltdown` command on your `PATH` so you can run it from any directory.
101
+
102
+ ### Using `pip`
103
+
104
+ ```bash
105
+ pip install meltdown-terminal
106
+ meltdown
107
+ ```
108
+
109
+ ### Installing from local source (before PyPI release)
110
+
111
+ ```bash
112
+ git clone https://github.com/codest0411/meltdown.git
113
+ cd meltdown
114
+ pip install .
115
+ meltdown
116
+ ```
117
+
118
+ ### Windows Setup Notes
119
+
120
+ 1. Install **Python 3.8+** from [python.org](https://www.python.org/downloads/) or Microsoft Store, and make sure **"Add Python to PATH"** is checked during installation.
121
+ 2. When installing `meltdown-terminal`, `windows-curses` is installed automatically as a Windows dependency.
122
+ 3. If `meltdown` is not recognized after `pip install`, add your Python `Scripts` folder to `PATH` (or use `pipx`, then run `pipx ensurepath` and restart PowerShell/CMD).
123
+ 4. You can also always run `python -m meltdown`.
124
+
125
+ ---
126
+
127
+ ## 🎮 Usage
128
+
129
+ Launch the game from any directory:
130
+
131
+ ```bash
132
+ meltdown
133
+ ```
134
+
135
+ Show help, controls, and troubleshooting:
136
+
137
+ ```bash
138
+ meltdown --help
139
+ ```
140
+
141
+ Show installed version:
142
+
143
+ ```bash
144
+ meltdown --version
145
+ ```
146
+
147
+ Run as a Python module:
148
+
149
+ ```bash
150
+ python -m meltdown
151
+ ```
152
+
153
+ ---
154
+
155
+ ## 🖥️ Supported Operating Systems & Requirements
156
+
157
+ - **Python:** 3.8 or newer (`>=3.8`)
158
+ - **Operating Systems:**
159
+ - **Windows** (Windows Terminal, PowerShell, CMD) — automatically installs `windows-curses`
160
+ - **Linux** (GNOME Terminal, Kitty, Alacritty, xterm, etc.)
161
+ - **macOS** (Terminal.app, iTerm2)
162
+ - **Terminal Size:** At least **80 × 24** recommended so all alarms and HUD bars fit cleanly.
163
+
164
+ ---
165
+
166
+ ## 🕹️ Alarm Types
167
+
168
+ | Alarm | What to do | Example |
169
+ |---|---|---|
170
+ | `TYPE` | Type the word shown | `REACTOR` → `reactor` |
171
+ | `REVERSE` | Type the word backwards | `CORE` → `eroc` |
172
+ | `SOLVE` | Type the answer to the math | `7 + 5` → `12` |
173
+ | `UNSCRAMBLE` | Rearrange the scrambled letters | `TCRAOER` → `reactor` |
174
+ | `MEMORIZE` | Remember the code before `*****` appears | `48213` → `48213` |
175
+ | `SEQUENCE` | Find the next number in the pattern | `2, 5, 8, 11, ?` → `14` |
176
+ | `BINARY` | Convert binary to decimal | `10110` → `22` |
177
+ | `MORSE` | Decode the morse code | `.- .-. -.-.` → `arc` |
178
+ | `DECODE` | Identify the word from two corrupted versions | `R#CT$R \| R$@CT#R` → `reactor` |
179
+ | `SEQ LOCK` | Remember the direction sequence before it hides | `UDLRU` → `udlru` |
180
+
181
+ Capital letters do not matter. Answer in any order: your input is matched against all active alarms.
182
+
183
+ ## 🎛️ Controls
184
+
185
+ | Key | Action |
186
+ |---|---|
187
+ | Letters / numbers | Type your answer |
188
+ | `Enter` | Submit the answer |
189
+ | `Backspace` | Fix a typo |
190
+ | `Esc` | Pause menu |
191
+ | `Tab` | Switch active player (Co-op mode) |
192
+ | `Ctrl + C` | Quit |
193
+
194
+ ---
195
+
196
+ ## 🛠️ Development Setup
197
+
198
+ ```bash
199
+ git clone https://github.com/codest0411/meltdown.git
200
+ cd meltdown
201
+ python -m venv .venv
202
+ # Windows PowerShell: .venv\Scripts\Activate.ps1
203
+ # macOS / Linux: source .venv/bin/activate
204
+ pip install -e ".[dev]"
205
+ ```
206
+
207
+ ### Running Tests
208
+
209
+ ```bash
210
+ pytest
211
+ ```
212
+
213
+ ### Building Distribution Packages
214
+
215
+ ```bash
216
+ python -m build
217
+ twine check dist/*
218
+ ```
219
+
220
+ ---
221
+
222
+ ## 🔧 Troubleshooting
223
+
224
+ - **`Terminal error` or layout looks cut off:** Resize your terminal window to at least **80 × 24**.
225
+ - **`No module named '_curses'` on Windows:** Reinstall with `pip install meltdown-terminal` (or `pip install windows-curses`).
226
+ - **Colors look wrong or hard to read:** Enable **Colorblind Mode** or **Reduced Flashing** in `Settings`.
227
+ - **Save data location:** Persistent data (leaderboard, achievements, settings, saved runs) is stored in `~/.meltdown/data.json`. Override the directory by setting the `MELTDOWN_DATA_DIR` environment variable.
228
+
229
+ ---
230
+
231
+ ## 🤝 Contributing
232
+
233
+ Contributions are welcome! Please read [CONTRIBUTING.md](CONTRIBUTING.md) before opening a pull request.
234
+ See [ROADMAP.md](ROADMAP.md) for planned features and [CHANGELOG.md](CHANGELOG.md) for release history.
235
+
236
+ ## 🔒 Security
237
+
238
+ See [SECURITY.md](SECURITY.md) for our security model and vulnerability reporting instructions.
239
+
240
+ ## 📄 License
241
+
242
+ Released under the [MIT License](LICENSE).
243
+
244
+ ## 🔗 Links
245
+
246
+ - **GitHub Repository:** https://github.com/codest0411/meltdown
247
+ - **Issue Tracker:** https://github.com/codest0411/meltdown/issues
248
+ - **PyPI Package:** *Pending initial PyPI release (`meltdown-terminal`)*
@@ -0,0 +1,210 @@
1
+ <div align="center">
2
+
3
+ # ☢️ MELTDOWN v2.0
4
+
5
+ ### A stressful, fast-typing survival game that runs entirely in your terminal.
6
+
7
+ ![Python](https://img.shields.io/badge/python-3.8%2B-blue?logo=python&logoColor=white)
8
+ ![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgrey)
9
+ ![Dependencies](https://img.shields.io/badge/dependencies-none-brightgreen)
10
+ ![License](https://img.shields.io/badge/license-MIT-green)
11
+
12
+ <br>
13
+
14
+ <img src="screenshot.svg" alt="MELTDOWN gameplay in a terminal" width="720">
15
+
16
+ <sub>Illustration of the game screen (Level 4: Solar Flare).</sub>
17
+
18
+ </div>
19
+
20
+ ---
21
+
22
+ ## 🚨 The Story
23
+
24
+ The space station is failing. Every other operator is gone. You are the last one at the console.
25
+
26
+ Alarms keep firing, the timers keep shrinking, and your stress keeps rising. Answer every alarm before it expires, or the hull will not hold. **How many levels can you survive?**
27
+
28
+ ## ✨ Features
29
+
30
+ - 🎮 **7 handcrafted levels** that get faster and meaner, then **endless mode** after that
31
+ - ⏱️ **Multiple alarms at once**, each with its own countdown
32
+ - 🧠 **10 alarm types**: `type`, `reverse`, `solve`, `unscramble`, `memorize`, `sequence`, `binary`, `morse`, `decode`, `seq lock`
33
+ - 😰 **Stress and hull meters** — lose either one and the station is lost
34
+ - 🔥 **Combo multiplier** for streaks, wiped out by one mistake
35
+ - 📺 **Random events**: corrupted displays and alarm surges
36
+ - 🔋 **Power-ups**: freeze time (`freeze`), repair hull (`repair`), calm stress (`calm`), clear alarms (`clear`)
37
+ - 👾 **3 boss fights**: *The Sentinel*, *The Guardian*, and *The Core*
38
+ - ⚙️ **3 difficulty modes**: Casual, Operator, Nightmare
39
+ - 📖 **Story events**: narrative transmissions and strategic choices between levels
40
+ - 👥 **Two-player modes**: Co-op (shared screen) and Versus (seeded head-to-head)
41
+ - 🏆 **Top-10 leaderboard** with daily challenge rankings
42
+ - 🎖️ **19 achievements** to unlock
43
+ - 📊 **Detailed statistics**: accuracy, response times, longest combo, and more
44
+ - 💾 **Save & resume**: quit mid-run and continue later (`~/.meltdown/data.json`)
45
+ - ♿ **Accessibility options**: reduced flash, colorblind mode, large UI, timer numbers
46
+ - 🔊 **Sound effects** (toggle-able terminal beeps)
47
+ - 📦 **Minimal dependencies**: standard library only on macOS/Linux (`windows-curses` on Windows)
48
+
49
+ ---
50
+
51
+ ## 🚀 Installation
52
+
53
+ > **Note:** Once `meltdown-terminal` is published to PyPI, you can install it globally with `pipx` or `pip`:
54
+
55
+ ### Recommended (`pipx`)
56
+
57
+ ```bash
58
+ pipx install meltdown-terminal
59
+ meltdown
60
+ ```
61
+
62
+ `pipx` installs the game in an isolated environment and puts the `meltdown` command on your `PATH` so you can run it from any directory.
63
+
64
+ ### Using `pip`
65
+
66
+ ```bash
67
+ pip install meltdown-terminal
68
+ meltdown
69
+ ```
70
+
71
+ ### Installing from local source (before PyPI release)
72
+
73
+ ```bash
74
+ git clone https://github.com/codest0411/meltdown.git
75
+ cd meltdown
76
+ pip install .
77
+ meltdown
78
+ ```
79
+
80
+ ### Windows Setup Notes
81
+
82
+ 1. Install **Python 3.8+** from [python.org](https://www.python.org/downloads/) or Microsoft Store, and make sure **"Add Python to PATH"** is checked during installation.
83
+ 2. When installing `meltdown-terminal`, `windows-curses` is installed automatically as a Windows dependency.
84
+ 3. If `meltdown` is not recognized after `pip install`, add your Python `Scripts` folder to `PATH` (or use `pipx`, then run `pipx ensurepath` and restart PowerShell/CMD).
85
+ 4. You can also always run `python -m meltdown`.
86
+
87
+ ---
88
+
89
+ ## 🎮 Usage
90
+
91
+ Launch the game from any directory:
92
+
93
+ ```bash
94
+ meltdown
95
+ ```
96
+
97
+ Show help, controls, and troubleshooting:
98
+
99
+ ```bash
100
+ meltdown --help
101
+ ```
102
+
103
+ Show installed version:
104
+
105
+ ```bash
106
+ meltdown --version
107
+ ```
108
+
109
+ Run as a Python module:
110
+
111
+ ```bash
112
+ python -m meltdown
113
+ ```
114
+
115
+ ---
116
+
117
+ ## 🖥️ Supported Operating Systems & Requirements
118
+
119
+ - **Python:** 3.8 or newer (`>=3.8`)
120
+ - **Operating Systems:**
121
+ - **Windows** (Windows Terminal, PowerShell, CMD) — automatically installs `windows-curses`
122
+ - **Linux** (GNOME Terminal, Kitty, Alacritty, xterm, etc.)
123
+ - **macOS** (Terminal.app, iTerm2)
124
+ - **Terminal Size:** At least **80 × 24** recommended so all alarms and HUD bars fit cleanly.
125
+
126
+ ---
127
+
128
+ ## 🕹️ Alarm Types
129
+
130
+ | Alarm | What to do | Example |
131
+ |---|---|---|
132
+ | `TYPE` | Type the word shown | `REACTOR` → `reactor` |
133
+ | `REVERSE` | Type the word backwards | `CORE` → `eroc` |
134
+ | `SOLVE` | Type the answer to the math | `7 + 5` → `12` |
135
+ | `UNSCRAMBLE` | Rearrange the scrambled letters | `TCRAOER` → `reactor` |
136
+ | `MEMORIZE` | Remember the code before `*****` appears | `48213` → `48213` |
137
+ | `SEQUENCE` | Find the next number in the pattern | `2, 5, 8, 11, ?` → `14` |
138
+ | `BINARY` | Convert binary to decimal | `10110` → `22` |
139
+ | `MORSE` | Decode the morse code | `.- .-. -.-.` → `arc` |
140
+ | `DECODE` | Identify the word from two corrupted versions | `R#CT$R \| R$@CT#R` → `reactor` |
141
+ | `SEQ LOCK` | Remember the direction sequence before it hides | `UDLRU` → `udlru` |
142
+
143
+ Capital letters do not matter. Answer in any order: your input is matched against all active alarms.
144
+
145
+ ## 🎛️ Controls
146
+
147
+ | Key | Action |
148
+ |---|---|
149
+ | Letters / numbers | Type your answer |
150
+ | `Enter` | Submit the answer |
151
+ | `Backspace` | Fix a typo |
152
+ | `Esc` | Pause menu |
153
+ | `Tab` | Switch active player (Co-op mode) |
154
+ | `Ctrl + C` | Quit |
155
+
156
+ ---
157
+
158
+ ## 🛠️ Development Setup
159
+
160
+ ```bash
161
+ git clone https://github.com/codest0411/meltdown.git
162
+ cd meltdown
163
+ python -m venv .venv
164
+ # Windows PowerShell: .venv\Scripts\Activate.ps1
165
+ # macOS / Linux: source .venv/bin/activate
166
+ pip install -e ".[dev]"
167
+ ```
168
+
169
+ ### Running Tests
170
+
171
+ ```bash
172
+ pytest
173
+ ```
174
+
175
+ ### Building Distribution Packages
176
+
177
+ ```bash
178
+ python -m build
179
+ twine check dist/*
180
+ ```
181
+
182
+ ---
183
+
184
+ ## 🔧 Troubleshooting
185
+
186
+ - **`Terminal error` or layout looks cut off:** Resize your terminal window to at least **80 × 24**.
187
+ - **`No module named '_curses'` on Windows:** Reinstall with `pip install meltdown-terminal` (or `pip install windows-curses`).
188
+ - **Colors look wrong or hard to read:** Enable **Colorblind Mode** or **Reduced Flashing** in `Settings`.
189
+ - **Save data location:** Persistent data (leaderboard, achievements, settings, saved runs) is stored in `~/.meltdown/data.json`. Override the directory by setting the `MELTDOWN_DATA_DIR` environment variable.
190
+
191
+ ---
192
+
193
+ ## 🤝 Contributing
194
+
195
+ Contributions are welcome! Please read [CONTRIBUTING.md](CONTRIBUTING.md) before opening a pull request.
196
+ See [ROADMAP.md](ROADMAP.md) for planned features and [CHANGELOG.md](CHANGELOG.md) for release history.
197
+
198
+ ## 🔒 Security
199
+
200
+ See [SECURITY.md](SECURITY.md) for our security model and vulnerability reporting instructions.
201
+
202
+ ## 📄 License
203
+
204
+ Released under the [MIT License](LICENSE).
205
+
206
+ ## 🔗 Links
207
+
208
+ - **GitHub Repository:** https://github.com/codest0411/meltdown
209
+ - **Issue Tracker:** https://github.com/codest0411/meltdown/issues
210
+ - **PyPI Package:** *Pending initial PyPI release (`meltdown-terminal`)*
@@ -0,0 +1,64 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "meltdown-terminal"
7
+ dynamic = ["version"]
8
+ description = "A stressful, fast-typing survival game that runs entirely in your terminal."
9
+ readme = "README.md"
10
+ license = { text = "MIT" }
11
+ requires-python = ">=3.8"
12
+ authors = [
13
+ { name = "Chirag Bhandarkar" },
14
+ ]
15
+ keywords = ["terminal", "game", "curses", "typing", "cli", "survival"]
16
+ classifiers = [
17
+ "Development Status :: 5 - Production/Stable",
18
+ "Environment :: Console :: Curses",
19
+ "Intended Audience :: End Users/Desktop",
20
+ "License :: OSI Approved :: MIT License",
21
+ "Operating System :: MacOS",
22
+ "Operating System :: Microsoft :: Windows",
23
+ "Operating System :: POSIX :: Linux",
24
+ "Programming Language :: Python :: 3",
25
+ "Programming Language :: Python :: 3.8",
26
+ "Programming Language :: Python :: 3.9",
27
+ "Programming Language :: Python :: 3.10",
28
+ "Programming Language :: Python :: 3.11",
29
+ "Programming Language :: Python :: 3.12",
30
+ "Programming Language :: Python :: 3.13",
31
+ "Programming Language :: Python :: 3.14",
32
+ "Topic :: Games/Entertainment",
33
+ "Topic :: Terminals",
34
+ ]
35
+ dependencies = [
36
+ "windows-curses>=2.3.0; sys_platform == 'win32'",
37
+ ]
38
+
39
+ [project.optional-dependencies]
40
+ dev = [
41
+ "pytest>=7.0",
42
+ "build>=1.0",
43
+ "twine>=4.0",
44
+ ]
45
+
46
+ [project.scripts]
47
+ meltdown = "meltdown.cli:main"
48
+
49
+ [project.urls]
50
+ Homepage = "https://github.com/codest0411/meltdown"
51
+ Repository = "https://github.com/codest0411/meltdown"
52
+ Issues = "https://github.com/codest0411/meltdown/issues"
53
+ Changelog = "https://github.com/codest0411/meltdown/blob/main/CHANGELOG.md"
54
+
55
+ [tool.setuptools.dynamic]
56
+ version = { attr = "meltdown.__version__" }
57
+
58
+ [tool.setuptools.packages.find]
59
+ where = ["src"]
60
+
61
+ [tool.pytest.ini_options]
62
+ testpaths = ["tests"]
63
+ pythonpath = ["src"]
64
+ addopts = "-ra"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,4 @@
1
+ """MELTDOWN - A stressful, fast-typing terminal survival game."""
2
+
3
+ __version__ = "2.0.0"
4
+ __all__ = ["__version__"]
@@ -0,0 +1,8 @@
1
+ """Allow running the game with `python -m meltdown`."""
2
+
3
+ import sys
4
+
5
+ from meltdown.cli import main
6
+
7
+ if __name__ == "__main__":
8
+ sys.exit(main())
@@ -0,0 +1,66 @@
1
+ """Command-line interface for MELTDOWN."""
2
+
3
+ import argparse
4
+ import sys
5
+ from typing import List, Optional
6
+
7
+ from meltdown import __version__
8
+
9
+ EPILOG = """\
10
+ controls:
11
+ Letters / numbers Type your answer
12
+ Enter Submit answer
13
+ Backspace Delete character
14
+ Esc Pause menu
15
+ Tab Switch active player (Co-op mode)
16
+ Ctrl+C Quit
17
+
18
+ save data:
19
+ Stored in ~/.meltdown/data.json (override with MELTDOWN_DATA_DIR).
20
+
21
+ troubleshooting:
22
+ - Terminal too small: resize your terminal to at least 80x24.
23
+ - Windows: if curses fails to import, install `windows-curses`.
24
+ - Colors look wrong: ensure TERM supports 256 colors or toggle
25
+ Colorblind Mode in Settings.
26
+ """
27
+
28
+
29
+ def build_parser() -> argparse.ArgumentParser:
30
+ """Create and return the CLI argument parser."""
31
+ parser = argparse.ArgumentParser(
32
+ prog="meltdown",
33
+ description=(
34
+ "MELTDOWN — A fast-typing terminal survival game. "
35
+ "Clear incoming alarms, manage stress and hull integrity, "
36
+ "and survive bosses and endless dread."
37
+ ),
38
+ epilog=EPILOG,
39
+ formatter_class=argparse.RawDescriptionHelpFormatter,
40
+ )
41
+ parser.add_argument(
42
+ "-V",
43
+ "--version",
44
+ action="version",
45
+ version=f"%(prog)s {__version__}",
46
+ )
47
+ return parser
48
+
49
+
50
+ def main(argv: Optional[List[str]] = None) -> int:
51
+ """CLI entry point for the `meltdown` command."""
52
+ parser = build_parser()
53
+ parser.parse_args(argv)
54
+
55
+ try:
56
+ from meltdown.game import run
57
+ except ImportError as exc:
58
+ print(
59
+ f"Error: Failed to load terminal UI ({exc}).\n"
60
+ "If you are on Windows, ensure `windows-curses` is installed:\n"
61
+ " pip install windows-curses",
62
+ file=sys.stderr,
63
+ )
64
+ return 1
65
+
66
+ return run()