chess

Terminal based Chess trainer using Anki
git clone git://git.dimitrijedobrota.com/chess.git
Log | Files | Refs

anki.h (810B)


      1 #ifndef ANKI_H
      2 #define ANKI_H
      3 
      4 #include <cii/except.h>
      5 #include <stddef.h>
      6 
      7 #define Move_T card_T
      8 typedef struct Move_T *Move_T;
      9 
     10 extern const Except_T ANKIE_CONNECT, ANKIE_CURL, ANKIE_DECK, ANKIE_DECK_SELECT,
     11     ANKIE_OK, ANKIE_PROFILE, ANKIE_PROFILE_SELECT;
     12 
     13 void anki_start(void);
     14 void anki_stop(void);
     15 
     16 Move_T anki_current_card(void);
     17 void   anki_grade(int pass);
     18 void   anki_suspend(Move_T self);
     19 
     20 char *card_fen(Move_T self);
     21 char *card_game(Move_T self);
     22 char *card_start(Move_T self);
     23 char *card_name(Move_T self);
     24 char *card_pgn(Move_T self);
     25 char *card_player(Move_T self);
     26 char *card_id(Move_T self);
     27 
     28 const char **anki_get_profiles(size_t *size);
     29 const char **anki_get_decks(size_t *size);
     30 void         anki_load_profile(char *name);
     31 void         anki_load_deck(char *name);
     32 
     33 #undef Move_T
     34 #endif