Skip to content
Commits on Nov 1, 2011
  1. Enabled "cabal test" support and other Cabal fixes.

    Running "cabal check" no longer complains of anything. Running "cabal
    haddock" reports 100% coverage.
    committed Nov 1, 2011
Commits on Oct 31, 2011
  1. Bullet-proofing and testing coverage.

    - Converted the various index to square and algebraic squares to use
      Maybe types and handle errors sensibly.
    - Added tests for a few missing items and cleaned up some of the
      existing tests a bit.
    - Ran HPC reports on the whole thing and, aside from a few unused
      Show instances and one thunk in some (intentionally) bad data,
      everything is executed by the test suite.
    committed Oct 31, 2011
  2. TODO update.

    committed Oct 31, 2011
  3. Used different types for board and lookup table indexes.

    Unsurprisingly, this almost immediately caught a couple of
    semi-problems. Forcing code to be clear about what table an index is
    intended for will help development and debugging.
    committed Oct 31, 2011
  4. Renamed QuickCheck tests to "prop_<camel case thing>".

    All the underscore usage was clashing with camel case elsewhere. So I've
    switched to using "prop_<camel case>". I'm aware of the apparent illogic
    in switching to a mixture of underscore and camel case, but I also want
    property checks to stand out easily and "prop_" does that.
    committed Oct 31, 2011
  5. Preliminary support for western chess boards.

    At the moment, all it can do is convert squares to and from algebraic
    committed Oct 31, 2011
  6. Shuffle directory structure a bit.

    Moved the tests to the ChessTools/Test/ directory after thinking about
    how the test suite is likely to develop. This should help avoid the need
    for clunky naming to avoid module name clashes when importing (it won't
    make the full import name any shorter, but it will be more descriptive
    and obviously hierarchicaly).
    	TestBoard -> ChessTools.Test.Board, and
    	Suite -> ChessTools.Test.Suite.
    Necessary modifications made to the source so that the tests are still
    all passing.
    committed Oct 31, 2011
Commits on Oct 30, 2011
  1. Removed the constOffset function for lookup tables.

    This was a hangover from C-like data structures and requirements for
    positive index values. Might as well use Haskell's support for arbitrary
    array bounds directly; it simplifies the API in quite a few places.
    committed Oct 31, 2011
  2. Rename README.markdown ->

    I'd forgotten GitHub triggered markdown on the ".md". That's a more
    subtle filename extension, so let's use it.
    committed Oct 30, 2011
  3. Minor tweaks to some class instances.

    BoardSize now derives Show and Eq, since there's little point in hiding
    its internals.
    Square has a better "fake" total ordering (ranks before files). In
    passing, this allowed me to move the same logic out of one of the tests.
    committed Oct 30, 2011
  4. Added GitHub info to cabal file.

    A little early for issue reporting and the like, but if I don't do it
    now, I'll likely neglect it forever.
    committed Oct 30, 2011
  5. Added basic build and informational files.

    Preparing to push an early version up to GitHub. Now what little code
    there is at least builds and there's some information in the README
    file for curious people.
    committed Oct 30, 2011
  6. Starting chess-tools project.

    This initial code creates some simple board structures and has the early
    foundations for creating lookup tables for rapid move enumeration.
    Nothing specific to any particular variant of chess yet.
    committed Oct 30, 2011
Something went wrong with that request. Please try again.