nkg114mc / c-gomoku-cli

Command Line Interface tool for Gomocup gomoku/renju engines
GNU General Public License v3.0
7 stars 3 forks source link

Bug fixes and tweakable engine tolerance #4

Closed dhbloo closed 3 years ago

dhbloo commented 3 years ago

Hi Chao Ma,

This PR contains 4 changes:

  1. Fixed incorrect pgn result. I mistakenly swaped black and white on writing PGN files, causing an opposite result to be saved. This is a severe bug, however I only noticed it when I saw reversed ranking in bayeselo :(
  2. Fixed argv[0] passed to the engine (which now is an absolute path). Some engines can not start if argv[0] is incorrect.
  3. Added a tweakable engine tolerance. (Code from this commit)
  4. Fixed slower getc() to _getc_nolock().
nkg114mc commented 3 years ago

Thanks again for the contribution about the Window process support code, Haobin! The PGN color is a little tricky and I once made the same mistake of reversed the colors of two sides before😂