user34303: If there's a chess bot and I changed how the bishop moves so it can move through pieces can it beat me without the need to change the code?

user18809: No, at least if you're intending to use the rule change in your advantage. For instance, you could threat the enemy queen with pawns between them and there's no way for the computer to be aware of the danger, who will just let you take their queen for free. Think for instance 1.d4 d5 2.Bg5 and how is the computer supposed to know that it must move the queen away?
There are also situations where the computer would have to stop playing. After 1.e4 e5 2.Bb5 the computer will suggest an illegal move, as it doesn't know that ...Ke7 is the only legal move.
Since it's not aware of the rule change, it will also never use the rule tweak in its advatnage, so any reasonably skilled chess player would win the game easily.

34303: <p>If there's a chess bot and I changed how the bishop moves so it can move through pieces can it beat me without the need to change the code?</p>
 18809: <p>No, at least if you're intending to use the rule change in your advantage. For instance, you could threat the enemy queen with pawns between them and there's no way for the computer to be aware of the danger, who will just let you take their queen for free. Think for instance 1.d4 d5 2.Bg5 and how is the computer supposed to know that it must move the queen away?</p>
<p>There are also situations where the computer would have to stop playing. After 1.e4 e5 2.Bb5 the computer will suggest an illegal move, as it doesn't know that ...Ke7 is the only legal move.</p>
<p>Since it's not aware of the rule change, it will also never use the rule tweak in its advatnage, so any reasonably skilled chess player would win the game easily.</p>
