uni

University stuff
git clone git://git.margiolis.net/uni.git
Log | Files | Refs | README | LICENSE

outputs.h (625B)


      1 #ifndef OUTPUTS_H
      2 #define OUTPUTS_H
      3 
      4 #include "main.h"
      5 #include <string.h>
      6 
      7 #define SESSION_PATH "log/session.txt"
      8 #define SCORE_LOG_PATH "log/scorelog.csv"
      9 
     10 typedef enum {
     11 	GAME_WON,
     12 	GAME_LOST
     13 } State;
     14 
     15 void print_board  (const Board *b);
     16 void print_grid	  (const Board *b);
     17 void session_info (const Board *b);
     18 void session_write(const Board *b, State state);
     19 void score_write  (const Board *b);
     20 char *get_pname	  (void);
     21 void sort_scorelog(FILE *scorelog);
     22 void show_scorelog(FILE *scorelog);
     23 void parse_data   (FILE *scorelog);
     24 void game_won	  (const Board *b);
     25 void game_over	  (const Board *b);
     26 
     27 #endif /* OUTPUTS_H */