public static boolean isFFA(final GameData data,final PlayerID player){
  final RelationshipTracker relationshipTracker=data.getRelationshipTracker();
  final Set<PlayerID> enemies=relationshipTracker.getEnemies(player);
  for (  final PlayerID enemy : enemies) {
    if (relationshipTracker.isAtWarWithAnyOfThesePlayers(enemy,enemies)) {
      return true;
    }
  }
  return false;
}

public static boolean isFFA ( final GameData data , final PlayerID player ) { final RelationshipTracker relationshipTracker = data . getRelationshipTracker ( ) ; final Set < PlayerID > enemies = relationshipTracker . getEnemies ( player ) ; for ( final PlayerID enemy : enemies ) { if ( relationshipTracker . isAtWarWithAnyOfThesePlayers ( enemy , enemies ) ) { return true ; } } return false ; }
returns whether the game is a ffa based on whether any of the player ' s enemies are enemies of each other .
