Skip to content

Instantly share code, notes, and snippets.

@tetsuzuki tetsuzuki/struct.h
Created Feb 12, 2014

Embed
What would you like to do?
#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
You can’t perform that action at this time.