wormhunter2024
Snake game in terminal (Linux / Mac / Windows)
- Active · last change 1-29-2025
- ★ 1 on GitHub
README
WormHunter 2024
A classic Snake game implemented in Pascal for the terminal. Supports Linux, macOS, and Windows.
Features
- Play the Snake game in your terminal.
- Simple controls and gameplay.
Requirements
- Free Pascal Compiler (FPC)
Installation
Linux
- Install Free Pascal Compiler (FPC)
- For Ubuntu:
sudo apt install fpc - For Fedora:
sudo dnf install fpc - For Arch:
sudo pacman -S fpc
- For Ubuntu:
- Download and Compile
- Go to the directory where
wormhunter.pasis located:cd path/to/your/directory - Compile the game:
fpc wormhunter.pas
- Go to the directory where
- Run the Game
./wormhunter
macOS
- Install Homebrew (if not installed)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - Install Free Pascal Compiler (FPC) using Homebrew
brew install fpc - Download and Compile
- Go to the directory where
wormhunter.pasis located:cd path/to/your/directory - Compile the game:
fpc wormhunter.pas
- Go to the directory where
- Run the Game
./wormhunter
Windows
- Download and Install Free Pascal Compiler (FPC)
- Download the FPC installer from the Free Pascal website.
- Run the installer and follow the on-screen instructions to complete the installation.
- Download and Compile
- Open Command Prompt and navigate to the directory where
wormhunter.pasis located:cd \path\to\your\directory - Compile the game:
fpc wormhunter.pas
- Open Command Prompt and navigate to the directory where
- Run the Game
wormhunter.exe
Controls
- Arrow Keys: Control the direction of the snake.
- ESC: Exit the game.
Gameplay
- Navigate the snake to eat the food represented by
~. - Each time the snake eats food, it grows in length.
- Avoid colliding with the walls and the snake's own body to keep playing.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the GNU General Public License. See the LICENSE file for details.

