thanks for reporting that bug.byWhat I was going to say: In the expiriment, please change e3=k to e3=i. "k", according to the intro screen in the driver, means a king that hasn't moved, while "i" is a king that has. The expiriment is telling LegalMove that the king has not moved, in which case a castle would be legal, except for the fact that the king is in check. Oh, wait... I see your point. There is no rook to castle with. I should make it so that it checks for a rook before checking for a check... That's an awfully good catch on your part. Okay. The post refered to in the Status post has been updated. You can copy LegalMove% out of it, or make the change manually. To make the change manually: In the LegalMove function, this is on line 39: IF isthreatened%(0, sx, sy, dir) THEN why2 = 0: GOTO outnow It needs to be moved 15 lines down, to between the "END SELECT" and "END IF". It will end up on line 53 (after it has been deleted from line 39). Thanks a bunch for finding and reporting that bug. :-) Regards, Michael from IP address 12.183.134.78 |
| Response Title | Author and Date |
| Got it. Couple of more problems, though | on Jan 19 |
| *ok. I found a 2 more myself (related to your find yesterday). Will fix. | on Jan 19 |
| Re: Got it. Couple of more problems, though | on Jan 19 |
| Okay. | on Jan 19 |
| Errk! I should have know that. | on Jan 19 |