razorstorm / SingularityChess

2 stars 1 forks source link

Knight's interactions with d12 are messed up. #26

Closed razorstorm closed 11 years ago

razorstorm commented 11 years ago

To reproduce, put a knight onto d6. Look at Square.getAdjacentSides(), to see how it is being used.

derektli commented 11 years ago

so is pawn

razorstorm commented 11 years ago

The problem is that our squares think that d12 is connected to d5 and d7, so then when you are on d6 and try to find the side moves from d5 it will go "wtf d6 is not connected to d5"

derektli commented 11 years ago

Fixed