jwalsh / jwalsh/2048-cli-debug
Simple TTY-based 2048 player to score over 1000
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
## Goal
Run 2048 on a TTY, read the screen output, send commands (hjkl/wasd), and achieve a score over 1000.
## Requirements
- Run 2048 in a terminal/TTY environment
- Read the actual screen output (not memory/debugger)
- Send keyboard commands to the game
- Try to score over 1000 points
## Approach
1. First attempt: Send random keystrokes and see if we can randomly achieve 1000+ points
2. If needed: Simple strategy like "prefer down and right" moves
3. The challenge is properly reading TTY output and sending input
## Why This Is Hard
- Need to capture terminal output reliably
- Parse ASCII art game board from terminal
- Coordinate input/output timing
- Handle terminal control sequences
## Note
User specifically wants to see if random moves can achieve the goal - no sophisticated AI needed!
Contributor guide
Assessment
This issue has not been assessed yet.