ChessManual class

All infomations of a chess game

Constructors

ChessManual({String fen = startFen, String red = 'Red', String black = 'Black', String redTeam = 'RedTeam', String blackTeam = 'BlackTeam', String event = '', String site = '', String date = '', String round = '1', String ecco = '', String timeControl = ''})
constructor of a chess game
ChessManual.load(String content)
load from a pgn format string

Properties

black String
黑方棋手
getter/setter pair
blackTeam String
black team
getter/setter pair
chineseResult String
result in chinese
no setter
currentFen ChessFen
当前
getter/setter pair
currentMove ChessStep?
The current move
no setter
currentStep int
Current step index
no setter
date String
比赛日期,格式统一为“yyyy.mm.dd”
getter/setter pair
ecco String
开局编号
getter/setter pair
event String
比赛名
getter/setter pair
fen String
开始局面
getter/setter pair
fenPosition ChessFen
子力位置图
getter/setter pair
format String
记谱方法 Chinese(中文纵线格式)、WXF(WXF纵线格式)和ICCS(ICCS坐标格式)
getter/setter pair
game String
游戏类型
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasNext bool
if not at end
no setter
isLast bool
是否最后一步
no setter
lastMove ChessStep?
The last move
no setter
moveCount int
Move counts
no setter
moves List<ChessStep>
获取所有招法记录
no setter
opening String
开局
getter/setter pair
red String
红方棋手
getter/setter pair
redNA String
别名
getter/setter pair
redTeam String
red team
getter/setter pair
result String
比赛结果 1-0 0-1 1/2-1/2 *
getter/setter pair
round String
比赛轮次
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
site String
比赛地点
getter/setter pair
startHand int
开局方
getter/setter pair
termination String
结论
getter/setter pair
timeControl String
时限
getter/setter pair
variation String
变例
getter/setter pair

Methods

addMove(String move, {String description = '', int addStep = -1}) → void
记录中增加一步棋
addMoves(List<String> moves) → void
记录中增加多步棋
clearMove([int fromStep = 0]) → void
清除所有或部分记录
doMove(String move) → void
move
export() String
export to a pgn format
getChessItems() List<ChessItem>
获取棋谱中所有子力
getMove() ChessStep?
获取当前招法
initDefault() → void
默认开局资料
initFen(String fenStr) → void
初始化棋局
loadHistory(int index) → void
track to history
next() String
go to next step
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
repeatRound() int
获取循环回合数
setFen(String fenStr) → void
set init fenstr
setItem(ChessPos pos, String chr) bool
设置某个位置,设置为空必真,设置为子会根据初始局面查找当前没在局面中的子的位置,未查找到会设置失败
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

isChineseMove(String move) bool
is a move in chinese
isNumberMove(String move) bool
is a move in chess code
isPosMove(String move) bool
Is position move is a move in position

Constants

resultFstDraw → const String
draw result
resultFstLoose → const String
red loose result
resultFstWin → const String
red win result
results → const List<String>
all result list
resultUnknown → const String
have no result
startFen → const String
full game start fenstr