Skip to content

Latest commit

 

History

History
24 lines (10 loc) · 633 Bytes

README.md

File metadata and controls

24 lines (10 loc) · 633 Bytes

image

image

Run: gcc snake.c -o snake

CLI Arguments: snake inputStream outputStream levelFile

To stick to the stdin and stdout streams but change the level file you may use "-" to pass an empty argument.

snake - - level/2.txt <- Runs the second level file in the stdin and stdout streams.

You may construct your own level files as you please.

O: Snake head start position

X: Wall

1-9: Food by growth rate