shougi_data.h
an anonymous user
·
C
#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
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.