•The program shall create a 'splash screen’
.•The splash screen shall prompt to user to enter 'p' to play the game and 'q' to exit the game.
–When the user enters 'p', start the game
–When the user enters 'q', exit the program
•When the game is started
–The snake shall be displayed using at least five '*' characters showing the last 5 locations of the snake.
–The user shall be able to control the snake using the 'wasd' keys
–The snake shall move in the direction last entered at least every 50ms
–The snake shall invert direction when it runs into the border of the screen
–When the user enters 'q', return to the splash screen
•The screen shall have a border.
•The software will use the pdcurses or ncurses library
.•The main function of the program shall ONLY declare variables and call functions.–ALL functionality must be contained in functions!
–You may, of course, return data from and pass data to functions in the main.
–You may have a single primary while(), assuming it just calls functions
.•All function prototypes shall be contained in a separate header file for the program.