H.G. Muller [Tue, 2 Feb 2010 18:02:28 +0000]
Remove stray dot from WinBoard makefiles
There was a period suffixed to config.h in the wgamelist.o dependency.
H.G. Muller [Mon, 1 Feb 2010 13:50:01 +0000]
Fix bug in display of logos
The logo continued to be drawn after a boardSize change to a tinyLayout
size, although there was no space reserved for it. Fixed by explicitly
resetting logoHeight when no logo space is reserved in InitDrawingSizes().
H.G. Muller [Tue, 19 Jan 2010 19:15:49 +0000]
Right-click refactoring: step III
Let WinBoard call RightClick in back-end, and delete the duplicate code
it had for this, after rescuing the front-end bits, and let the letter
act depending on the result returned by RightClick.
H.G. Muller [Tue, 19 Jan 2010 18:07:15 +0000]
Right-click refactoring: step II
Migrate the Right-click routine to the back-end. Let it communicate back
square coordinates through pointer arguments, to accomodate their
different naming in XBoard and WinBoard. Template added in frontend.h.
H.G. Muller [Tue, 19 Jan 2010 16:55:05 +0000]
Right-click refactoring, step I
Divorce front-end part from back-end part of PieceMenuPopup in XBoard
front-end, and forge the back-end part into a new routine RightClick.
The right up-click in XBoard, which called unLoadPV() directly, now
calls RightClick through PieceMenuPopUp().
H.G. Muller [Thu, 4 Feb 2010 22:09:47 +0000]
Merge gamelistopt sources into gamelist source files
The files xgamelistopt.c and gamelistopt.c are merged with xgamelist.c
and gamelist.c, respectively. The WB front-end for the dialog already
resided in winboard.c, so there was little need to move it to wgameist.c
file. Makefiles adapted accordingly. Unsuitable key bindings were
removed. The low-level front-end prototypes are now defined in in
frontend.h.
H.G. Muller [Fri, 29 Jan 2010 20:47:47 +0000]
Game-List options dialog for XBoard
A dialog similar to that of WinBoard was cloned from the game-list
window. The XBoard front-end is in a separate file xgamelistopt.c,
which in fact implements most of the low-level front-end as back-end.
H.G. Muller [Fri, 29 Jan 2010 11:48:50 +0000]
Refactoring of game-list-options dialog
The back-end part is separated off, and moved to a file gamelistopt.c.
Front-end for now stays in winboard.c. No prototypes in frontend.h yet.
H.G. Muller [Tue, 26 Jan 2010 18:28:43 +0000]
Fix of ancient WB bug: test integer option values for validity
Only a string of digits preceded by an optional sign is accepted now.
Before, any string was accepted, and leaving out a value could lead to
the next option being ignored (if it did not need a value) because it
was considered the value for the previous one!
H.G. Muller [Tue, 26 Jan 2010 18:00:54 +0000]
Fix bug in edit-position of holdings
The holdings were effectivelly taken one too large, so that a promoted
shogi Pawn moved to, or created in the holdings was not demoted to Pawn,
but put in the dark (which you could see by the holding count if you did
it twice). The overflow tests in these two cases now have been corrected.
H.G. Muller [Mon, 25 Jan 2010 12:54:40 +0000]
Save fonts in XBoard settings file per boardSize
Each -boardSize now can have its own font specified in the settings file
(and thus by a command-line option, although it would in general not be
very useful to specify a font for a size other than the selected). E.g.
a prefix "size33:" to the font name will apply it only to -size 33.
An unspecified-size font option (not normally in the settings file) will
always prevail over a font option specific for the current size.
A font of some size must have been used or specified in order to be
saved.
H.G. Muller [Mon, 25 Jan 2010 07:56:35 +0000]
Fix width of filter field in XBoard GameList
An empirical dependence of the width of this text edit on the square
size now makes for an acceptable layout at any board size.
H.G. Muller [Sun, 24 Jan 2010 18:09:45 +0000]
Use FICS atomic draw claim for sending move in zippy mode
For this the relaying of the move had to be moved until after the
adjudication, which again has to be done after MakeMove(), which is a
bit dubious, as MakeMove might take significant time when animating.
H.G. Muller [Sun, 24 Jan 2010 17:51:38 +0000]
Send FICS atomic claim to ICS if move creates draw after offer
The FICS format "draw MOVE" is used to send the move to the ICS when
the user enters a move that adjudicates as a claimable draw, and he
offered a draw before the move. For the benefit of ICS that do not
understand this format, the plain move is sent afterwards.
H.G. Muller [Sun, 24 Jan 2010 17:16:14 +0000]
Also allow user to claim by offering draw before his move
Use the existing userOfferedDraw variable to test for such offers in
Adjudicate().
H.G. Muller [Sun, 24 Jan 2010 16:29:42 +0000]
Also adjudicate after user move
Call Adjudicate() in FinishMove().
H.G. Muller [Sun, 24 Jan 2010 14:56:56 +0000]
Refactoring of adjudication code
Put all the rule-based (as opposed to score-based) adjudications in a
separate routine, so they can also be called on user moves. This
requires sending the drawing move to the opponent engine to be made
conditional on existence of the latter. Execution of the code is no
longer dependent on the condition TwoMachinesPlay, but actual game
terminations are now all restricted by an alternative condition (no ICS
mode).
H.G. Muller [Sun, 24 Jan 2010 10:46:30 +0000]
Use -keepAlive option to determine connection health
When there has been no ICS response since the previous 'ping', assume we
are disconnected and do a fatal-error exit. Also auto-start the ping
process in InitBackend3().
H.G. Muller [Sat, 23 Jan 2010 22:00:10 +0000]
Use arrow keys in XBoard GameList for entry selection
Add translations for arrows and home/end, to call LoadSelectedProc with
argument to indicate the step, and let the latter perform the action.
H.G. Muller [Sat, 23 Jan 2010 21:24:20 +0000]
Allow <Enter> to apply filter in XB GameList filter edit
Apply a translation to intercept the <Enter> key. Set focus back to the
list display afterwards.
H.G. Muller [Sat, 23 Jan 2010 20:44:36 +0000]
Accept <Enter> for changing chat partner
A kludge stolen from Alessandro's GameList filter allowed to let the
typing of <Enter> while updating the chat-partner field of the WinBoard
chat windows to act as pressing the Change button. Gives focus to the
input field of the window afterwards.
H.G. Muller [Sat, 23 Jan 2010 20:42:38 +0000]
Move duplicat gamelist code to backend
The filtering routines are moved from xgamelist.c and wgamelist.c to
gamelist.c, and a prototype for them is placed in backend.h.
H.G. Muller [Sat, 23 Jan 2010 18:29:18 +0000]
Port game-list filtering to XBoard
Added a text edit and apply button to the XBoard game-list dialog, and
only have it print those lines that match the filter. Translate index in
list to index of game in file when a game is selected, and index in file
to index in list when a line is highlighted. Duplicates some code
between xgamelist.c and wgamelist.c, which should be moved to back-end.
H.G. Muller [Thu, 21 Jan 2010 18:24:49 +0000]
Convert to DOS line endings
For easier understanding of upcoming diffs of winboard.c
H.G. Muller [Thu, 21 Jan 2010 13:32:46 +0000]
Refactoring of move-history code
The WinBoard code in whistory.c was split in a front-end part (remaining
in whistory.c) and a back-end part (now in history.c in the xboard
directory). This to allow easy porting to other platforms.
H.G. Muller [Wed, 20 Jan 2010 11:48:30 +0000]
Add fixed-time/move button in XBoard time-control dialog
Put the TC-type buttons in a radio-group, and highlight the selected mode.
H.G. Muller [Tue, 19 Jan 2010 17:27:14 +0000]
Fix bug in XBoard PV display
The PV was unloaded on anything but a button release, in stead of the
other way around.
Arun Persaud [Sat, 23 Jan 2010 19:04:11 +0000]
fixed hardcoded location of config file for xboard
the location should now follow sysconfdir during the configuration process.
Also added some more output to the configure script.
Arun Persaud [Mon, 18 Jan 2010 20:18:32 +0000]
new developer release
Arun Persaud [Mon, 18 Jan 2010 20:15:06 +0000]
fixed Makefile.am to handle config file correctly
H.G. Muller [Fri, 15 Jan 2010 20:55:29 +0000]
Change opening array -variant fairy
We now use the position of "Chess with Different Armies", FIDE army vs.
a fantasy army (inspired on the Color-bound Clobberers) as opening
position.
H.G. Muller [Wed, 13 Jan 2010 18:08:45 +0000]
Add variant Makruk
Thai Chess, played by 2 million world-wide. Required pawn promotion to
happen in a zone, and the Alfil to move as Shogi Silver, a new opening
array, and unusual Pawn placement. Because of the latter, I consider it
a setup position, so a FEN will always be sent to the engine.
H.G. Muller [Sun, 17 Jan 2010 13:17:10 +0000]
Fix parsing of O-O and O-O-O after FEN pasting in FRC
Because the initial rights were not set in the FEN reader, the
initial rights of the previous game remained in force, so that the
parser did not understand OO-castling (although it would allow KxR
castling).
H.G. Muller [Fri, 15 Jan 2010 13:40:43 +0000]
Fix reading FEN castling rights for knightmate and twokings
Scanning the back-rank for a King did not work in these variants,
because either the Unicorn castles, or there might be two Kings.
H.G. Muller [Wed, 13 Jan 2010 10:42:52 +0000]
Fix omission in castling refactoring for ICS received boards
A default of -1 was still used, in stead of NoRights, when no Rook was
found. In theory this could have had effect in a setup board 0 in FRC,
when there were no Rooks on the back rank.
H.G. Muller [Wed, 13 Jan 2010 10:35:34 +0000]
Fix TwoKings ICS castling-rights bug
Scanning the rank (as is done because of FRC) assigned castling rights
to the rightmost King. Even scanning the opposite direction would not
work, as it is not always the eftmost King that can castle. So we now
explicitly test for a King on e1/e8 in TwoKings and assign it rights,
relying on the Rook rights received from the ICS to control castling.
H.G. Muller [Thu, 19 Nov 2009 03:12:25 +0000]
fix double start of zippy engine after switch to gothic
In ICS mode we now switch to the proper variant as soon as we receive
the generic game-start message, to prevent a mismatch when the first
board is received (which would trigger fetching of a move list).
H.G. Muller [Mon, 11 Jan 2010 15:44:40 +0000]
Extensive bugfix of -autoKibitz
Suppression of printing of diverted kibitz messages failed when they
extended over more than one read. This could even lead to such
messages being erroneously saved as comments, which then lead to
crashes. The suppression mechanism now waits for a prompt, in stead of
the end of buffer. This required the printing of any leftover in the
buffer to be deferred until the next read completes it.
The number of people kibitzed to is now printed.
H.G. Muller [Mon, 11 Jan 2010 15:30:59 +0000]
Fix piece-to-char table -variant fairy
The letters for Lance and Snake where swapped.
H.G. Muller [Sat, 9 Jan 2010 10:54:20 +0000]
Make WinBoard makefiles use parser.c in XBoard directory
H.G. Muller [Fri, 8 Jan 2010 17:23:39 +0000]
Docs update for new features
H.G. Muller [Fri, 8 Jan 2010 14:18:37 +0000]
Fix new args parsing of -lowTimeWarningColor
This did not occur in the XBoard color translation table yet.
H.G. Muller [Fri, 8 Jan 2010 13:16:59 +0000]
Allow editing of holdings in EditPosition mode
Dragging pieces to and from the holdings now consistently keep track of
the home square of pieces and the piece counts, as does creation of
pieces in the holdings through the piece menu.
H.G. Muller [Fri, 8 Jan 2010 12:59:57 +0000]
Indicate squares a lifted piece can legally move to
Under control of the new option -showTargetSquares when
-highlightDragging and -testLegality are on, the squares a piece can
move to are marked by fat dots in the highlightColor (non-captures) and
premoveHighlightColor (captures), as soon as you grab it for dragging.
In variants with mandatory capture, the capture target of other pieces
is marked with the highlightColor (as non-captures are then not allowed).
H.G. Muller [Fri, 8 Jan 2010 11:35:10 +0000]
Fix bug for incommensurate time odds
After normalization (-timeOddsMode 1) the time odds factors can be
non-integer, and thus must be stored as float.
H.G. Muller [Fri, 8 Jan 2010 10:41:26 +0000]
Display PV right-clicked from EngineOutput window
The clicked PV is selected and the memo gets focus, so that it is
highlighted. This selection is restored in the proper place after
insetrtion of a new line in the memo.
H.G. Muller [Fri, 8 Jan 2010 09:19:32 +0000]
Display PV on right-clicking board
H.G. Muller [Fri, 8 Jan 2010 08:21:04 +0000]
Bugfix legality null move in parsing with -testLegality off
The pointers were compared, in stead of the values.
Furthermore, instead of null moves, it rejected moves on the main diagonal when legality checking was off.
Also exclude moves with empty squares and enemy pieces.
H.G. Muller [Thu, 7 Jan 2010 18:10:39 +0000]
Newly lexed winboard/parser.c
H.G. Muller [Thu, 7 Jan 2010 18:05:17 +0000]
Harmonize declarations of XBoard and WinBoard
The engine-exit and settings patches make some stuff common to WinBoard
and XBoard, which needed to be harmonized, and is moved to frontend.h.
H.G. Muller [Thu, 7 Jan 2010 12:07:57 +0000]
Allow Ctrl-C copying from EngineOutput window text to clipboard
H.G. Muller [Thu, 7 Jan 2010 11:52:17 +0000]
Allow popup-less (fatal) exit of engine after tellusererror
H.G. Muller [Thu, 7 Jan 2010 11:40:12 +0000]
Improve layout of Engine #N Settings dialog
An attempt is made to align the input fields of spins and text-edits
H.G. Muller [Wed, 6 Jan 2010 23:31:11 +0000]
Let XBoard print version with argument --version or -v
H.G. Muller [Wed, 6 Jan 2010 23:25:57 +0000]
Fix castling rule assignment in shuffle games
The conversion to in-board storage for rights copied directly to boards[0] in steadof
initialPosition, and was then overwritten when the latter was copied with uninitialized
rights to boards[0]. This affected FRC and CRC, where rights are non-standard.
H.G. Muller [Wed, 6 Jan 2010 23:17:25 +0000]
Implement castling in -variant caparandom
CRC should be treated as FRC, but until now it never was. We now test for FRC_TYPE_CASTLING.
H.G. Muller [Wed, 6 Jan 2010 23:09:18 +0000]
Fix default castling rights on reading incomplete FEN
This was overlooked in the conversion to the in-board storage of rights.
H.G. Muller [Wed, 6 Jan 2010 23:03:09 +0000]
Fix NoncompliantFEN defaults.
This must be NULL to get compliant FENs, not "", which would suppress castling and e.p. fields.
H.G. Muller [Wed, 6 Jan 2010 22:54:49 +0000]
Change format of -adapterCommand.
first or f at the start of an option name are now automatically changed into second or s,
rather than needing %% to be recognized. The values of -ec and -ed in the default
-adapterCommand are now quoted (now XBoard understands quoting in the engine command line).
H.G. Muller [Wed, 6 Jan 2010 22:51:16 +0000]
Make WinBoard defaults for -fd and -sd equal to "." rather than empty strings.
H.G. Muller [Wed, 6 Jan 2010 22:28:47 +0000]
Delete old indirection settings-file code
H.G. Muller [Wed, 6 Jan 2010 20:45:14 +0000]
Correct XBoard default debug file name
H.G. Muller [Wed, 6 Jan 2010 20:34:48 +0000]
Suppress saving font settings.
The fonts are size dependent, and might thus not be reusable in the next
session. For now we therefore suppress the saving of them in the
settings file, until we diversify the fonts per boardSize.
Arun Persaud [Sun, 13 Dec 2009 07:38:20 +0000]
added missing sounds files to be able to compile on windows
Eric Mullins [Thu, 10 Dec 2009 00:29:37 +0000]
Changes needed to compile master branch.
H.G. Muller [Sun, 6 Dec 2009 20:11:46 +0000]
implements the eval-graph window for XBoard
H.G. Muller [Sun, 6 Dec 2009 19:58:34 +0000]
improves the XBoard handling of the engine command line
it now understands limited forms of quoting, so engine binaries with spaces in their file name can be handled.
H.G. Muller [Sun, 6 Dec 2009 19:56:40 +0000]
A better and more flexible way of invoking Polyglot
rewrote uci.c. No more use of temporary files, all data passed through the engine command line. Adds a new command-line option -adapterCommand for this.
H.G. Muller [Sun, 6 Dec 2009 19:34:50 +0000]
remove trailing \r in xboard output
there is an annoying carriage return (displayed as ^M) at the end of the PV in the engine-output window, not
only with Fairy-Max, but also with UCI engine running under Polyglot. This patch replaces the trailing CR that Linux programs send after the PV line y a space.
H.G. Muller [Sun, 29 Nov 2009 19:56:32 +0000]
double buffer size to prevent overflow
This patch doubles the size of the ICS input buffer to 16KB, to prevent
the suspected overflow with -keepLineBreaksICS false when using
"inchannel 1" on FICS and over 500 people are tuned in.
H.G. Muller [Sat, 28 Nov 2009 21:33:52 +0000]
fix problem with empty string in -firstNeedsNoncompliantFEN
This fixes a bug in the use of the -firstNeedsNoncompliantFEN option with
an empty string as argument. (Which led to truncation of the FEN.)
H.G. Muller [Sat, 28 Nov 2009 21:32:12 +0000]
updates makefiles to include dependency on config.h
adds the dependency of wbres.o on config.c introduced by having the VersionInfo in the resource
H.G. Muller [Sat, 28 Nov 2009 21:28:00 +0000]
correctly apply some check boxes from the option menu
Usng the check-boxes in the Option->Adjudications menu to indicate the
engine reports absolute scores is now copied directly to the ChessProgramState,
from where it is used, in stead of only to appData. This makes the change take
effect immediately, in stead of after restarting.
H.G. Muller [Sat, 28 Nov 2009 21:27:43 +0000]
score sign in analysis mode
this does not alter any of the current behavior with compliant engines,
but does extend the correction for non-compliant score reporting under
control of the -first(second)ScoreIsAbs option to cases where the engine
is analyzing or playing on an ICS.
Arun Persaud [Wed, 25 Nov 2009 05:09:30 +0000]
fix for bug #28077: xboard needs to link against x11
hopefully fixed automake to take care of this
H.G. Muller [Tue, 24 Nov 2009 04:37:20 +0000]
Fix castling rights when copying FEN to clipboard (again)
missed a spot last time
H.G. Muller [Tue, 24 Nov 2009 04:22:58 +0000]
restoring windows (EngineOutput and MoveHistory) on startup
restoring the open / closed status of the
auxiliary windows (EngineOutput and MoveHistory) on startup
in XBoard like they do in WinBoard, which makes sense now that
we aso remember their coordinates between sessions.
H.G. Muller [Tue, 24 Nov 2009 04:21:14 +0000]
fixed some outstanding pixmaps
fixed transparency issues
H.G. Muller [Tue, 24 Nov 2009 04:17:25 +0000]
use linux style options for config file and add a system config file for XBoard
This patch makes XBoard write the options to its conf file in
Linux style, "-option value" rather than Windows style "/option=value".
The WinBoard option parsing code has always understood both formats
(including any hybrids), but the format it preferred for writing might
look quite strange to Linux users. I also attached a file to be installed
as /etc/xboard/xboard.conf on "make install".
H.G. Muller [Tue, 24 Nov 2009 03:58:55 +0000]
fix window positioning
This patch adds stuff in the header files that allow the various front-end files
to share information on which windows exist, are up, and how they are positioned.
The EngineOutput, MoveHistory and GameList windows now all remember their
position and size, even when they are closed when XBoard exits.
H.G. Muller [Tue, 24 Nov 2009 03:51:19 +0000]
same argDescriptor parsing for Xboard and Winbaord
This patch makes XBoard and WinBoard use the same argDescriptor
list of options, and (largely) use the same code for parsing and saving them.
This is acheived by moving this code to a new file args.h, and #including this
in both winboard.c and xboard.c (so that tiny differences, e.g. in default
values in the table, are decided by the context). XBoard has new menu items
"Save Settings Now" and "Save Settings on Exit" in the "Option" menu.
XBoard uses /etc/xboard/xboard.conf as default settings file.
A new option, -saveSettingsFile, can specify where settings should be saved,
without parsing the file. (So that it also works if the file does not yet exist.)
Arun Persaud [Sun, 22 Nov 2009 21:00:31 +0000]
new developer release
changed release name to <branch>-<date>
H.G. Muller [Sun, 22 Nov 2009 20:34:13 +0000]
fix the irritating wandering off of the MoveHistory window in XBoard on opening/closing.
H.G. Muller [Sun, 22 Nov 2009 20:29:47 +0000]
use xtell for talking to handles, but tell for talking into a channel.
by changing the chatboxes to use xtell in stead of tell, we broke
the possibility to use the chat-box for chatting into a channel (which is
apparently not possible with xtell).
H.G. Muller [Sun, 22 Nov 2009 20:15:15 +0000]
fix bug in bughouse drop menu
This patch fixes the bughouse drop menu, which was broken by the
new mouse driver, and could no longer drop white Pawns.
H.G. Muller [Thu, 19 Nov 2009 03:29:57 +0000]
2nd step for moving option parsing from winboard to the backend
This is the next step in option-setting refactoring: All options that are
defined in XBoard are now included in the WinBoard ArgDescriptor list.
The handling of sound option has been harmonized: the sound names
now all initially go to the appData array, (as in XB) in stead of directly to the
WB-specific variables, and LoadAllSounds now takes care of the copying.
A new routine ExportSounds copies them back before saving settings
(which, in XBoard, could be a no-op).
The definition of defaults for the XB-only options has been moved to common.h.
H.G. Muller [Thu, 19 Nov 2009 03:24:35 +0000]
1st step for moving option parsing from winboard to the backend
This is a preparatory step in moving option parsing of WinBoard to the back-end.
The table of command-line options now contains a fifth field, holding the compiled-in default.
This obviates most of the front-end routine InitAppData, which now is replaced by a table-driven
initialization routine SetDefaultsFromList(), which could be back-end.
H.G. Muller [Wed, 18 Nov 2009 20:33:39 +0000]
refactoring evalgraph code
This is the refactored EvalGraph code: the back-end part is separated off,
and put in a file evalgraph.c, which in the future can also be used with XBoard.
Only the WinBoard front-end code is left in the file wevalgraph.c. A new
header file defines the variables and routines they share.
Arun Persaud [Wed, 18 Nov 2009 20:29:06 +0000]
clean-up
some file permissions where set up wrong
(e.g. execute permissions for text files)
H.G. Muller [Wed, 18 Nov 2009 19:34:22 +0000]
refactoring of engineoutput
This refactoring patch separates the back-end part out of
xengineoutput.c, and puts it in a separate file engineoutput.c.
A new header engineoutput.h included by both defines the routines
for cross calling. Similarly wengineo.c will be stripped from its
back-end code, (and renamed to wengineoutput.c), so WinBoard and
XBoard now both use engineoutput.c rather than maintaining duplicate
code in their front-end part.
I also let the back-end now call EngineOutputUpdate directly, rather then
through a relay in the front-end, by renaming it to SetProgramStats
(the former name of the relay in winboard.c / xboard.c).
Moved some templates of functions in engineoutput.c from winboard.h
to frontend.h
Arun Persaud [Sun, 15 Nov 2009 06:13:10 +0000]
fixed build on openbsd
added missing header file
H.G. Muller [Sun, 15 Nov 2009 06:06:58 +0000]
improve thinking-output for mulit-variant
Improve multi-variant support by sorting the Thinking-Output lines of the most recent depth by score in the Engine-Output window.
H.G. Muller [Sun, 15 Nov 2009 06:05:12 +0000]
fix castling rights when copying FEN to clipboard
This patch forces leaving of Edit-Position mode before copying a FEN to the clipboard, to make sure castling rights are faked in a consistent way. Before you could get FENs that had castling rights for non-existent Rooks.
H.G. Muller [Sun, 15 Nov 2009 06:03:47 +0000]
This patch gives a better handling of comments in PGN files, and adds the variation as comment to the main line on using Revert in local mode.
Arun Persaud [Sat, 7 Nov 2009 02:53:19 +0000]
fixed prototype for AppendComment
H.G. Muller [Fri, 6 Nov 2009 17:06:44 +0000]
cleaned up some debug messages and typos
H.G. Muller [Fri, 6 Nov 2009 17:05:09 +0000]
variation-support patch
It allows you to Revert to the main line (or previous variation) when
playing variations on an existing game in EditGame or Analyze mode.
H.G. Muller [Fri, 6 Nov 2009 16:48:09 +0000]
fix for new way of saving castling and e.p. information
I forgot to make some conversions to the new-style encoding of castling there
(using the enum constant NoRights instead of -1 to indicate
the absence of rights, which was the price of storing the
rights in the board, which is an unsigned enum type.)
I also was a bit worried about portability, because I casted the enum type ChessSquare
to (int) before comparing it with (possibly negative) constants EP_NONE etc.
Now on my system enum types are (unsigned int), and this works, but I could
imagine there are systems where this would be an unsigned char. (Not sure
if there are rules for this). So to be safe I cast ChessSquare to (signed char),
which should always work to make small negative ints assigned to it read
back as themselves.
Arun Persaud [Fri, 6 Nov 2009 16:44:59 +0000]
removed files that should only be in the windboard directory
Arun Persaud [Fri, 6 Nov 2009 03:32:35 +0000]
add Winboard source files into tar-ball
forgot to add them when rewriting the Makefile.am