Switch branches/tags
Nothing to show
Commits on Nov 1, 2011
  1. Enabled "cabal test" support and other Cabal fixes.

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

    malcolmt committed Oct 31, 2011
    - 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.
  2. TODO update.

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

    malcolmt committed Oct 31, 2011
    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.
  4. Renamed QuickCheck tests to "prop_<camel case thing>".

    malcolmt committed Oct 31, 2011
    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.
  5. Preliminary support for western chess boards.

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

    malcolmt committed Oct 31, 2011
    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.
Commits on Oct 30, 2011
  1. Removed the constOffset function for lookup tables.

    malcolmt committed Oct 30, 2011
    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.
  2. Rename README.markdown ->

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

    malcolmt committed Oct 30, 2011
    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.
  4. Added GitHub info to cabal file.

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

    malcolmt committed Oct 30, 2011
    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.
  6. Starting chess-tools project.

    malcolmt committed Oct 30, 2011
    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.