public static int RankFromChar(char r) { for (int i = 0; i < rank_chars.Length; i++) if (rank_chars[i] == r) return i; return -1; }