Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#define OUT_OF_BOARD 64
#define EMPTY 0
#define FU 1
#define KY 2
#define KE 3
#define GI 4
#define KI 5
#define KA 6
#define HI 7
#define OU 8
#define PROMOTED 8
#define TO PROMOTED + FU
#define NY PROMOTED + KY
#define NK PROMOTED + KE
#define NG PROMOTED + GI
#define UM PROMOTED + KA
#define RY PROMOTED + HI
#define ENEMY 16
#define EFU ENEMY + FU
#define EKY ENEMY + KY
#define EKE ENEMY + KE
#define EGI ENEMY + GI
#define EKI ENEMY + KI
#define EKA ENEMY + KA
#define EHI ENEMY + HI
#define EOU ENEMY + OU
#define ETO ENEMY + TO
#define ENY ENEMY + NY
#define ENK ENEMY + NK
#define ENG ENEMY + NG
#define EUM ENEMY + UM
#define ERY ENEMY + RY
typedef unsigned char KomaInf;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.