Changes resulting in KRef Version 2006-07-27 Enhancement 0

by

The previous version, 20060620.4 is
http://www.network54.com/Forum/188265/message/1150917968

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
      END SELECT

(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.

Mac


Posted on Jul 27, 2006, 7:19 AM
from IP address 68.98.164.60

Respond to this message   

Return to Index