Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Nov 1, 2011
  1. Enabled "cabal test" support and other Cabal fixes.

    authored
    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.

    authored
    - 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.

    authored
  3. Used different types for board and lookup table indexes.

    authored
    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>".

    authored
    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.

    authored
    At the moment, all it can do is convert squares to and from algebraic
    notation.
  6. Shuffle directory structure a bit.

    authored
    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).
    
    Thus,
    	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.

    authored
    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 -> README.md

    authored
    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.

    authored
    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.

    authored
    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.

    authored
    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.

    authored
    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.
Something went wrong with that request. Please try again.