Check out Symmetric Chess, our featured variant for March, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Comments/Ratings for a Single Item

Earlier Reverse Order Later
Shogi preset bug[Subject Thread] [Add Response]
Kevin Pacey wrote on Sat, Oct 21, 2017 02:10 AM UTC:

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:

/play/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


🕸Fergus Duniho wrote on Sat, Oct 21, 2017 02:38 PM UTC:

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

Earlier Reverse Order Later

Permalink to the exact comments currently displayed.