public static IdentifiedPlayer GetIdentifiedPlayer(LogicalPlayerIndex logicalPlayerIndex) { if (LogicalPlayers.ContainsKey(logicalPlayerIndex)) return LogicalPlayers[logicalPlayerIndex]; throw new CoreException("No players identified as " + logicalPlayerIndex.ToString()); }