Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/games/gomoku
Module Name: src
Committed By: rillig
Date: Fri May 27 19:59:56 UTC 2022
Modified Files:
src/games/gomoku: bdinit.c bdisp.c gomoku.h main.c makemove.c
pickmove.c
Log Message:
gomoku: replace 1-based movenum with 0-based nmoves
No functional change, not even the TIE that is wrongly announced when
the very last spot on the board is yet to be filled by Black. Even
without this off-by-one error, it could be that filling the very last
spot completes a frame, so that code has been wrong all the time.
In practical terms, this situation only arises when the human player is
unconcentrated or the computer player has a bad strategy. The latter
may well be, as the computer moves in the (boring) endgame are not
directed towards winning -- they fill irrelevant spots before relevant
ones.
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/games/gomoku/bdinit.c
cvs rdiff -u -r1.46 -r1.47 src/games/gomoku/bdisp.c
cvs rdiff -u -r1.39 -r1.40 src/games/gomoku/gomoku.h
cvs rdiff -u -r1.58 -r1.59 src/games/gomoku/main.c
cvs rdiff -u -r1.20 -r1.21 src/games/gomoku/makemove.c
cvs rdiff -u -r1.44 -r1.45 src/games/gomoku/pickmove.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index