17 lines
335 B
C
17 lines
335 B
C
#include <stdio.h>
|
|
#include <unistd.h>
|
|
#include "game.h"
|
|
|
|
int main() {
|
|
printf("Starting Snake Game...\n");
|
|
printf("Use arrow keys to move the snake.\n");
|
|
printf("Press 'q' to quit.\n");
|
|
printf("Eat all food (*) to win!\n\n");
|
|
sleep(2);
|
|
|
|
run_game();
|
|
|
|
printf("Thanks for playing!\n");
|
|
return 0;
|
|
}
|