forked from WHC/Hermit
Vendored sashidown, OpenAI-compatible env (OPENAI_*), and bootstrap scripts. Co-authored-by: Cursor <cursoragent@cursor.com>
666 B
666 B
Write a complete C++ terminal Snake game in this workspace.
Requirements:
- Single file
snake.cpp(C++17 ok). Use POSIX terminal I/O: raw mode or ncurses; WASD or arrow keys; quit withq. - Features: moving snake, food, grow on eat, wall or self collision ends game, score printed, board roughly 20x20 or similar.
Makefilewith targetsnakethat runsg++ -O2 -o snake snake.cpp(link-lncursesonly if you use ncurses).- After writing, run
maketo verify it compiles. Do not need an interactive play session. - Brief README.md with how to build and run.
Use write_file / run_shell tools. Prefer implementing yourself rather than downloading.