Class SetUp
Description of SetUp:
This tag takes an integer that denotes the "set-up" status of the game. A
value of "0" indicates that the game has started from the usual initial array.
A value of "1" indicates that the game started from a set-up position; this
position is given in the "FEN" tag pair. This tag must appear for a game
starting with a set-up position. If it appears with a tag value of "1", a FEN
tag pair must also appear.
-
pgn\tags\Tag
-
pgn\tags\SetUp
Methods summary
public
the
|
|
public
boolean
|
#
validate( mixed $data )
Parameters
Returns
boolean returns if a data is valid
Assert("")
=== true
Assert("*")
=== false
Assert("-1")
=== false
Assert("0")
=== true
Assert("1")
=== true
Assert("2")
=== false
Assert("2.1")
=== false
Assert("a")
=== false
Assert(null)
=== false
Overrides
|
public static
string
|
#
validPattern( )
Get the regex pattern of a valid SetUp tag string
Get the regex pattern of a valid SetUp tag string
Returns
string regex pattern of a valid SetUp tag string
Overrides
|