JamesonRGrieve-Instruction / EXSM-3936-LEC-WI2-Demo

1 stars 2 forks source link

[chess] Pawn Movement Logic #14

Open JamesonRGrieve-Instruction opened 9 months ago

JamesonRGrieve-Instruction commented 9 months ago

Description

The pawn movement logic is completely broken. They are allowed to move backwards, diagonally (even if not capturing), and two spaces forward every move, but not one space forward - the only one they're supposed to be able to do.

Steps to Reproduce the Bug

Click a pawn.

Expected Behavior

The pawn follows normal chess movement rules.

Actual Behavior

See Description.

Additional Context / Screenshots

image

JMantei commented 9 months ago

Attempted to resolve this.