Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

pascal-snake-game

A console snake game written in Pascal

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

Pascal Snake Game

A console snake game written in Pascal

Install at: https://github.com/pr0f3ss0r-b/pascal-snake-game/raw/master/snake.exe

Menu Screen

Gameplay

Usage

  • Run following script to compile game (You must install Free Pascal first)
pascal
fpc snake.pas
  • Open "snake.exe" and enjoy =))

Adjustable Constants

pascal
GAME_COLOR = LightCyan;
DEFAULT_SPEED = 8;
SNAKE_HEAD = '@';
SNAKE_BODY = '0';
FOOD_SHAPE = 'X';