Changes resulting in KRef Version 2006-07-27 Enhancement 0by
The previous version, 20060620.4 is
It had a bug! The code for a pawn is normally 6. But if it is subject to en passent capture, it is 9.
Careful testing was done to ensure that en passent captures were successfully done and that no expired en passent captures were made. This all works.
However, when a pawn first moves, it becomes 9 temporarily. Now if that pawn is given a capture, it needs to be recognized. So the change is
SUB AnnounceMove (c$)
SELECT CASE Board(Col, Row)
CASE 6, 9: IF c$ = "White" THEN GOSUB WTest
CASE -6, -9: IF c$ = "Black" THEN GOSUB BTest
(Before, there was no ", 9" or ", -9")
This would look like a simple enhancement and thus the old version could have simply been given enhancement level 5. But then two people could be playing and one has 5 and the other doesn't and thus the person with 5 has an advantage. Downloads or use of enhancements should be optional and not give any advantage. Hence a new version is created.
How did that bug slip through? Good question.
from IP address 18.104.22.168