中国象棋控件
2.0.14
载入中...
搜索中...
未找到
Src
Fen.h
1
// 作者:康林 <kl222@126.com>
2
3
#ifndef CFEN_H_KL_2020_06_11_
4
#define CFEN_H_KL_2020_06_11_
5
6
#pragma once
7
8
#include <vector>
9
10
#include <string>
11
#include "Piece.h"
12
#include "ChessGame.h"
13
19
class
CFen
20
{
21
public
:
22
CFen
();
23
24
int
FenFromBoard(std::string &szFen,
CPiece::ENUM_QiZi
board[][10],
25
char
side =
'r'
,
int
nStep = 1);
26
int
FenToBoard(
const
std::string &szFen,
CPiece::ENUM_QiZi
board[][10],
27
char
&side,
int
&nStep);
28
int
FenFromStartGame(std::string &szFen,
29
std::vector<CChessGame::strStartGame> startGame,
30
char
side =
'r'
,
31
int
nStep = 1);
32
};
33
34
#endif
// CFEN_H_KL_2020_06_11_
CFen
福斯夫-爱德华兹记号法 (Forsyth-Edwards Notation)
Definition
Fen.h:20
CFen::CFen
CFen()
作者:康林 kl222@126.com
Definition
Fen.cpp:76
CPiece::ENUM_QiZi
enum CPiece::_ENUM_QiZi ENUM_QiZi
棋子枚举值 四个位表示棋子,最左1位表示颜色
制作者
1.9.8