Version 1.0 #40

Merged
j23f0779 merged 947 commits from development2 into main 2024-12-13 10:26:49 +01:00
Showing only changes of commit 79bf1c16e8 - Show all commits

View File

@@ -152,6 +152,16 @@ public Player getPlayerByColor(Color color) {
return null; return null;
} }
/**
* This method will be used to return the id of the active player depending on the activeColor attribute of Game
* class.
*
* @return the id of the active player as an Integer.
*/
public int getActivePlayerId() {
return this.getPlayerIdByColor(this.activeColor);
}
/** /**
* This method will be used to return the id of the Player defined by the given color parameter. * This method will be used to return the id of the Player defined by the given color parameter.
* *