Tetris
Classic Tetris —” guideline-compliant, T-spin detection, replay system, vs AI
Tetris is a faithful, guideline-compliant implementation with modern features: T-spins, 7-bag randomizer, replay analysis, and AI opponent.
Features
- Guideline Compliant —” SRS rotation, 7-bag randomizer, hold, ghost piece, 3+ next
- T-Spin Detection —” Mini, regular, double, triple with bonus scoring
- Replay System —” Full input recording; frame-perfect playback; export .tetris-replay
- AI Opponent —” Configurable difficulty (beginner to TGM master); learns from your play
- Multiplayer —” Local VS, LAN, online (WebRTC); spectator mode
- Web Version —” Play instantly at tetris.neohiro.dev
- Statistics —” APM, PPS, VS%, survival time, T-spin rate, B2B chains
Play Now
Web: tetris.neohiro.dev (WASM)
Desktop:
- Windows:
Tetris-Setup.exefrom Releases - Linux: Flatpak / AppImage /
cargo install tetris-neo - macOS:
brew install --cask tetris-neo
Scoring (Guideline)
| Action | Points |
|---|---|
| Single | 100 × level |
| Double | 300 × level |
| Triple | 500 × level |
| Tetris | 800 × level |
| T-Spin Mini | 100 × level |
| T-Spin | 400 × level |
| T-Spin Double | 1200 × level |
| T-Spin Triple | 1600 × level |
| Back-to-Back | ×1.5 |
| Perfect Clear | 2000 × level (single), 3600 (Tetris) |
Modes
| Mode | Description |
|---|---|
| Marathon | 150 lines; variable goal |
| Sprint | 40 lines; fastest time |
| Ultra | 3 minutes; max score |
| Master | TGM-style; invisible, 20G |
| VS AI | 1v1 against configurable bot |
| VS Human | LAN / WebRTC / local |
Controls
| Action | Keyboard | Gamepad |
|---|---|---|
| Move | â†/→ | D-Pad / Left Stick |
| Soft Drop | ↓ | Down / A |
| Hard Drop | Space / ↑ | Up / Y |
| Rotate CW | Z / X | LB / RB |
| Rotate CCW | Shift / C | LT / RT |
| 180° | A | Back / Select |
| Hold | C / Ctrl | Left Stick Press |
Replay Format
.tetris-replay is JSON with:
{
"version": 1,
"seed": 1234567890,
"mode": "marathon",
"inputs": [
{"frame": 0, "input": "right"},
{"frame": 3, "input": "rotate_cw"}
],
"stats": {"apm": 62.4, "pps": 1.8, "tspin_rate": 0.23}
}
Requirements
- Desktop: OpenGL 3.3+; 512 MB RAM
- Web: WebGL 2; 1 GB RAM
- Binary size: ~3 MB (compressed)
Related
- TristarMania —” Space shooter
- GhostMaze —” 2D RPG
This tool is free and open source. Support the developer:
Sponsor neohiro on GitHub