Steps to Reproduce: 1. Execute App.java 2. Kill a piece with the same color Expected Results: Move should be invalid and ignored. Actual Results: Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError at chess.chess.Move.setKilledPiece(Move.java:21)
Add an if statement to check if the piece being eaten has the same colour as the eater in `public boolean makeMove(Point start, Point end)` in Game.java. https://github.com/glennsalter/cs3343-chess/commit/4999a0f52f039271012b978d598aef788a938bc9.
(In reply to Assan Kozhin from comment #1) > Add an if statement to check if the piece being eaten has the same colour as > the eater in > `public boolean makeMove(Point start, Point end)` in Game.java. > https://github.com/glennsalter/cs3343-chess/commit/ > 4999a0f52f039271012b978d598aef788a938bc9. The new link to the commit: https://github.com/glennsalter/cs3343-chess/commit/4999a0f52f039271012b978d598aef788a938bc9