Fixed functions to initialize the game and now initializing it from main.

This commit is contained in:
Murilo Soares Pereira
2010-04-12 02:56:28 -03:00
parent 73d79dcc92
commit ed52f72ff0
3 changed files with 59 additions and 36 deletions

View File

@@ -4,21 +4,9 @@
#include "../lib/display.h"
int main(int argc, const char *argv[]) {
char message[] = "Welcome to tty-solitaire.";
int row_number, column_number;
init_curses();
getmaxyx(stdscr, row_number, column_number);
mvprintw(row_number / 2 - 1,
(column_number - strlen(message)) / 2,
"%s\n",
message);
getch();
initialize_curses();
initialize_game();
puts("Game finished.");
return 0;
return(0);
}