Skip to content

Instantly share code, notes, and snippets.

@tetsuzuki
Created February 12, 2014 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tetsuzuki/8966353 to your computer and use it in GitHub Desktop.
Save tetsuzuki/8966353 to your computer and use it in GitHub Desktop.
#include "define_koma.h"
#ifndef _struct
#define _struct
typedef struct Pos{
int dan,suji;
KomaInf koma;
Pos operator + (Pos& pos);
Pos& operator += (Pos& pos);
Pos operator - (Pos& pos);
Pos& operator -= (Pos& pos);
Pos operator * (int& x);
bool operator == (Pos& pos);
struct Pos *next;
}Pos;
typedef struct Te{
Pos from,to;
KomaInf koma;
KomaInf capture;
bool promotion;
Te();
struct Te *next;
}Te;
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment