nSnake
A ncurses implementation of the classic Snake game
 All Data Structures Files Functions Variables Enumerations Macros Pages
Functions
main.c File Reference

The 'main' function only. More...

#include "engine.h"
#include "fruit.h"
#include "nsnake.h"
#include "player.h"
#include "arguments.h"
#include "hscores.h"
Include dependency graph for main.c:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 The main function - contains the main loop of the game. More...
 

Detailed Description

The 'main' function only.

Definition in file main.c.

Function Documentation

int main ( int  argc,
char *  argv[] 
)

The main function - contains the main loop of the game.

Note
I tried to make this function as clear as possible, so anyone could understaing the whole game logic starting by here.
Have fun with the source code!

Definition at line 45 of file main.c.