Skip to content

zphricz/Snake

Repository files navigation

                                      SNAKE 

Overview
--------

This is the classic game Snake implemented with my software renderer. There's
not a whole lot more to say. It requires SDL2 to run. Run it with:

    ./snake

To specify the number of cells in the game and the resolution to render it by,
run it with:

    ./snake [Board_x Board_y] [Screen_x Screen_y]

Use the arrow keys to move the snake. Press space or enter to pause and start
the game.  To close the program, press the escape key.

I've implemented a very simple AI player for the game. To enable or disable the
AI player, press 1.

To make a recording of the game, press 0. Every frame rendered will be written
out as a .tga picture inside an "images" directory. Press 0 again to stop
recording.

Authors
-------

Zack Hricz

About

The game of Snake

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published