Releases: Forensor/purescript-amazons
Releases · Forensor/purescript-amazons
v1.0.1
v1.0.0
v1.0.0-beta.2
BREAKING CHANGES
- Excluded several functions from the public API. Now only this functions would be tested and documented:
ascii
clear
amazons
fen
ended
get
getSqr
legalMoves
movesOfSqr
load
loadPgn
move
pgn
put
remove
turn
takeback
validFen
parse
moveNumber
Amazons
is no longer anewtype
, it has been renamed toGame
and converted into atype
alias. All public API functions unlessvalidFen
andparse
are affected by this change.gMoveN
renamed tomoveNumber
.
MINOR CHANGES
Data.Traversable
has been added to the imports.ascii'
renamed torankBuilder
. Type signature changed fromascii' :: Rank -> Int -> String
torankBuilder :: Tuple Rank Int -> String
.- Added
ranks :: Array String
. - Added
columns :: Array String
. crd2ind
type changed tocrd2ind :: San -> Maybe (Array Int)
.crd2ind'
type changed tocrd2ind' :: Array String -> Maybe (Array Int)
.put'
type changed toput' :: Game -> Square -> Maybe (Array Int) -> Game
.get'
type changed toget' :: Game -> Maybe (Array Int) -> Maybe Square
.field
type changed tofield :: Int -> Fen -> String
.- Removed
getSqr' :: Maybe Rank -> Int -> Maybe Square
. - Removed
fen2board' :: Maybe Fen -> Board
. - Added helper
replace2d :: forall a. Int -> Int -> a -> Array (Array a) -> Array (Array a)
. - Removed
rdIsDig' :: Maybe String -> Boolean
. - Removed
ndIsTeam' :: Maybe String -> Boolean
. - Removed
st10ranks' :: Maybe String -> Boolean
. - Removed
stValChrs' :: Maybe String -> Boolean
. - Removed
st10cols' :: Maybe String -> Boolean
. - Removed
gBoard :: Amazons -> Board
. gFen
renamed tofen
.- Removed
gFen' :: Maybe Fen -> Fen
. gTurn
renamed toturn
.- Removed
gTurn' :: Maybe String -> Team
. - Removed
gHist :: Amazons -> Array San
. - Removed
gPos :: Amazons -> Array Fen
. - Removed
gMoveN' :: Maybe String -> Int
.
BUGFIXES & ADJUSTMENTS
put
andremove
now also update the current fen of the match. (See #3)- Code section delimiters have been changed to look more thick.
- Code has been formatted with Purty.
- Tests have been migrated to purescript-spec.
sqr2symb
now uses pattern matching instead ofcase ... of
.move
no longer surpasses the 90 character limit. (See #4)
v1.0.0-beta.1
This is the first release of The Game of Amazons PureScript Engine!
FEATURES
- FEN & PGN parsing/validation
- Game loading with FEN/PGN
- Game playing
- Move
- Takeback
- Movement history
- PGN generation
- Ascii board visualizing
v0.1.5-alpha
JS/TS implementation for 6x6 games of The Amazons Game. Not properly tested and unmaintained.
Features
- FEN parsing.
- Game movement validation
- PGN generation
- Game over checking