Skip to content

Tests for castling move generation #2

@divy-07

Description

@divy-07

Add tests in src/test/java/chess/moves/CastlePossibleMoveTest.java

We need to account for:

  • basic castling (only king and rook nothing special)
  • castling both sides by both colors
  • no castling when a piece is between king and rook
  • no castling when king/rook has already moved
  • no castling when king/rook not on home square
  • no castling when king has to move through check

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions