Module Name: src Committed By: rillig Date: Thu May 19 18:58:59 UTC 2022
Modified Files: src/games/gomoku: bdinit.c bdisp.c gomoku.h pickmove.c Log Message: gomoku: de-obfuscate screen coordinate calculation Modern compilers optimize linear integer arithmetic, so there is no reason to use strange or misleading formulas. Replace several magic numbers with proper formulas. No binary change. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/games/gomoku/bdinit.c cvs rdiff -u -r1.30 -r1.31 src/games/gomoku/bdisp.c cvs rdiff -u -r1.28 -r1.29 src/games/gomoku/gomoku.h cvs rdiff -u -r1.34 -r1.35 src/games/gomoku/pickmove.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.