Files
numnum/README.md
T
2026-07-26 00:28:21 +03:00

58 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# numnum
тренер систем счисления
**Demo:** [numnum.atroshin.ru](https://numnum.atroshin.ru)
## Features
- 10 numeral systems: Binary, Ternary, Balanced Ternary, Octal, Hexadecimal, Braille Decimal, Roman, Church Slavonic, Greek, Hebrew
- Two game modes: multiple choice and manual entry (numpad)
- Configurable number range, time limit (1s30s or no limit), question count (5100)
- Installable PWA with full offline support (theory content cached)
- Dark/light theme · Bilingual (English / Русский)
- In-app theory reference for each system
## Usage
Serve the directory with any HTTP server:
```
python3 -m http.server 8080
```
## Project structure
```
index.html — Entry point
app.js — Game logic and UI
numerals.js — Numeral system converters and choice generator
styles.css — Styles, dark/light theme
sw.js — Service worker (PWA caching)
manifest.json — PWA manifest
theory/ — Theory HTML files (10 systems × 2 languages)
```
## Supported systems
| System | Type | Range |
|---|---|---|
| Binary | Positional | 132768 |
| Ternary | Positional | 127 |
| Balanced Ternary | Positional | 2727 |
| Octal | Positional | 14096 |
| Hexadecimal | Positional | 165536 |
| Braille Decimal | Positional | 09999 |
| Roman | Non-positional | 13999 |
| Church Slavonic | Non-positional | 19999 |
| Greek | Non-positional | 19999 |
| Hebrew | Non-positional | 19999 |
## Development
Theory HTML files live in `theory/`. After editing them, bump the version in `sw.js` to refresh the cache on next install.
## License
MIT