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:
asciiclearamazonsfenendedgetgetSqrlegalMovesmovesOfSqrloadloadPgnmovepgnputremoveturntakebackvalidFenparsemoveNumber
Amazonsis no longer anewtype, it has been renamed toGameand converted into atypealias. All public API functions unlessvalidFenandparseare affected by this change.gMoveNrenamed tomoveNumber.
MINOR CHANGES
Data.Traversablehas been added to the imports.ascii'renamed torankBuilder. Type signature changed fromascii' :: Rank -> Int -> StringtorankBuilder :: Tuple Rank Int -> String.- Added
ranks :: Array String. - Added
columns :: Array String. crd2indtype 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.fieldtype 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. gFenrenamed tofen.- Removed
gFen' :: Maybe Fen -> Fen. gTurnrenamed toturn.- Removed
gTurn' :: Maybe String -> Team. - Removed
gHist :: Amazons -> Array San. - Removed
gPos :: Amazons -> Array Fen. - Removed
gMoveN' :: Maybe String -> Int.
BUGFIXES & ADJUSTMENTS
putandremovenow 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.
sqr2symbnow uses pattern matching instead ofcase ... of.moveno 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