Comments/Ratings for a Single Item
That's now fixed. It initially looked like I could fix it by getting rid of the not before onfile, but that didn't make sense, and my investigation showed that onfile worked correctly. Looking at the arguments used with onfile, I saw it using R instead of P. Since the Rook was in the only file without a Pawn, and it was actually looking for files without the Rook in them, this gave the appearance of onfile giving the opposite result, but that is not what was happening. The value of #piece was being passed to onfile, and at this stage in the subroutine, it was simply whatever it last was when the previous foreach loop finished. Changing this to #pawn fixed it.
2 comments displayed
Permalink to the exact comments currently displayed.
Note to Fergus:
On the 8th move in my recent Shogi game in the log linked below, I dropped a pawn (and made a comment) after I overruled the preset's saying that the drop was illegal - I knew it was a perfectly legal drop at the time. Hence there appears to be some sort of bug with this preset:
http://play.chessvariants.com/pbm/play.php?game=Shogi&log=panther-cvgameroom-2017-286-940&movenum=15&submit=View&orientation=auto&scale=100&render=css&shape=grid&set=koma_kinki&bgimage=shogi-blue.png