I'm starting a new game called Knight Swap. The rules are to swap the positions of four chess knights, two white and two black. The knights move as in chess. But what I can't do is make sure you can only move knights as in chess. I can't get it to work. The knights can seemingly be moved anywhere by my programming.
How do I make it so the knights can only move as they would in Chess?
Offline
sounds hard
Offline
you can have it calculate the eight posible positions for the knight to move into using some algorithm BEFORE you move, then make it so that you can only move into those positions
Offline
<change{block x}by(3
<change{block y}by(1
and have it moved the right way accordingly
Offline