#1042481 phalanx: moves that checkmate/stalement/draw are not written to log file

Package:
phalanx
Source:
phalanx
Description:
Chess playing program
Submitter:
Michael G Soyka
Date:
2023-07-29 01:51:04 UTC
Severity:
normal
Tags:
#1042481#5
Date:
2023-07-29 01:46:01 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

I setup a position and had the program play both sides.  The game ended with a
checkmate.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

See the example that follows for an illustrative case.


   * What was the outcome of this action?

The game's last move and outcome were printed to stdout but not to the logfile
which I had specified using the "-g" command line option.

   * What outcome did you expect instead?

A complete listing of the moves and outcome.

   * This is an example that demonstrates the problem.

 $ phalanx -g logfile.out
  setboard 7Q/8/3K4/2q5/6P1/4q3/5k2/8 w - - 0 0
  both
  machine plays both
  my move is Kd6-d7
  move d6d7
  my move is Qe3-e7
  move e3e7
  0-1 {Black mates}
  quit
  $ cat logfile.out
    << other stuff snipped>>
    opponent plays Kd6-d7
    <<other stuff snipped>>
    <quit
  $

Note that the last move and game outcome message are not included in
logfile.out.

   * My proposal to fix the problem.

I have created a patch.


*** End of the template - remove these template lines ***