#ifndef SHOUGI_SHISAKU_DEF_H
#define SHOUGI_SHISAKU_DEF_H
typedef struct koma_info {
    int  tate;          // 位置_縦
    int  yoko;          // 位置_横
    char  koma[10];     // 駒の種類
} person;

typedef struct koma_shurui {
    char  koma[10];     // 駒の種類
} motikoma;

#define BOARD_SIZE 9   // 将棋は9x9

extern int start_x;
extern int start_y;

#define CELL_W 6
#define CELL_H 2

// 画面上の盤左上のオフセット
#define ORIGIN_Y (start_y + 1)
#define ORIGIN_X (start_x + 2)
#endif

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: