中国象棋控件 v2.0.13
载入中...
搜索中...
未找到
Fen.h
1
2#ifndef CFEN_H_KL_2020_06_11_
3#define CFEN_H_KL_2020_06_11_
4
5#pragma once
6
7#include <vector>
8// 作者:康林 <kl222@126.com>
9
10#include <string>
11#include "Piece.h"
12#include "ChessGame.h"
13
19class CFen
20{
21public:
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_
福斯夫-爱德华兹记号法 (Forsyth-Edwards Notation)
Definition Fen.h:20
CFen()
作者:康林 kl222@126.com
Definition Fen.cpp:76