Connect-Four/src/events/IWinCondition.java
2018-04-16 13:40:41 +02:00

19 lines
470 B
Java

package events;
import board.IBoard;
/**
* A condition for winning the game.
*/
public interface IWinCondition {
/**
* Checks if someone has won according to the custom conditions.
*
* @param x The x-coordinate of the last placed element
* @param y The y-coordinate of the last placed element
* @param board The board to check
* @return True if someone has won
*/
boolean hasWon(int x, int y, IBoard board);
}