shougi_data.h

an anonymous user · October 12, 2025
#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 5
#define CELL_H 2

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

Comments

Please sign up or log in to contribute to the discussion.