Skip to content

Releases: Forensor/purescript-amazons

v1.0.1

14 Jan 20:16
Compare
Choose a tag to compare

ADJUSTMENTS

  • bower.json added.
  • spago.dhall now contains license and repository.

v1.0.0

12 Jan 21:49
82386a5
Compare
Choose a tag to compare

MINOR CHANGES

  • initFen has been added to the public API.

v1.0.0-beta.2

16 Dec 09:54
c533351
Compare
Choose a tag to compare
v1.0.0-beta.2 Pre-release
Pre-release

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 a newtype, it has been renamed to Game and converted into a type alias. All public API functions unless validFen and parse are affected by this change.
  • gMoveN renamed to moveNumber.

MINOR CHANGES

  • Data.Traversable has been added to the imports.
  • ascii' renamed to rankBuilder. Type signature changed from ascii' :: Rank -> Int -> String to rankBuilder :: Tuple Rank Int -> String.
  • Added ranks :: Array String.
  • Added columns :: Array String.
  • crd2ind type changed to crd2ind :: San -> Maybe (Array Int).
  • crd2ind' type changed to crd2ind' :: Array String -> Maybe (Array Int).
  • put' type changed to put' :: Game -> Square -> Maybe (Array Int) -> Game.
  • get' type changed to get' :: Game -> Maybe (Array Int) -> Maybe Square.
  • field type changed to field :: 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 to fen.
  • Removed gFen' :: Maybe Fen -> Fen.
  • gTurn renamed to turn.
  • Removed gTurn' :: Maybe String -> Team.
  • Removed gHist :: Amazons -> Array San.
  • Removed gPos :: Amazons -> Array Fen.
  • Removed gMoveN' :: Maybe String -> Int.

BUGFIXES & ADJUSTMENTS

  • put and remove 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 of case ... of.
  • move no longer surpasses the 90 character limit. (See #4)

v1.0.0-beta.1

19 Nov 16:57
Compare
Choose a tag to compare
v1.0.0-beta.1 Pre-release
Pre-release

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

05 Nov 20:05
21aad42
Compare
Choose a tag to compare
v0.1.5-alpha Pre-release
Pre-release

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