public void GetMolecule(Molecule m) { if (MoleculesStorage.AvailableCount(m) > 0) { Console.WriteLine($"CONNECT {m.ToChar()}"); } else { Wait(); } }
public static char ToChar(this Molecule m) => (char)((int)m + 64);
public void GetMolecule(Molecule m) { if (MoleculesStorage.AvailableCount(m) > 0) { Console.WriteLine($"CONNECT {m.ToChar()}"); } else { Wait(); } }
public static char ToChar(this Molecule m) => (char)((int)m + 64);