Skip to content

Fix: Prevent re-drawing lines on already drawn squares

Fixed a bug where players could draw a line over an existing one, which caused scoring errors and game inconsistencies.

  • Added an IllegalStateException if a vertical or horizontal line is already drawn
  • Updated both drawHorizontal() and drawVertical() methods The bug fix has been tested and the game now properly blocks re-drawing of lines and switches players as expected.

Merge request reports

Loading