Skip to content

v1.0.0-beta.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@Forensor Forensor released this 16 Dec 09:54
· 15 commits to master since this release
c533351

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)