lout-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

chess


From: Jeff Kingston
Subject: chess
Date: Tue, 01 Aug 2000 08:18:42 +1000

The next step is to define a symbol

    def @ChessBoard right x
    {
        { Chess Base @Font { 0p lines } @Break x
    }

so that you can write

    @ChessBoard {
    "!\"\"\"\"\"\"\"\"#"
    "$tMvWlVmT%"
    "$OoOoOoOo%"
    "$ + + + +%"
    "$+ + + + %"
    "$ + + + +%"
    "$+ + + + %"
    "$pPpPpPpP%"
    "$RnBqKbNr%"
    "/(((((((()"

Beyond that you should be able to define

    macro @Chess { @ChessBoard @Verbatim }

and write

    @Chess {
    !""""""""#
    $tMvWlVmT%
    $ + + + +%
    $+ + + + %
    $ + + + +%
    $+ + + + %
    $pPpPpPpP%
    $RnBqKbNr%
    /(((((((()
    }

There is probably even more you can do than that.  I would guess that
you could print a blank board always (hidden within the @ChessBoard
definition) and overstrike it with another board containing just the
pieces, which would get rid of those clumsy characters defining the
boundary and the black squares.  It seems bizarre to require the user
to use two different symbols, p and P, depending on whether the pawn
is on a white square or a black square.

Jeff


reply via email to

[Prev in Thread] Current Thread [Next in Thread]