Anonymous user
Straddling checkerboard: Difference between revisions
m
→{{header|C#}}: use IReadOnlyDictionary
(→{{header|C#}}: added C#) |
m (→{{header|C#}}: use IReadOnlyDictionary) |
||
Line 503:
class Program
{
public readonly static
public readonly static
static Program()
{
{'A',"30"}, {'B',"31"}, {'C',"32"}, {'D',"33"}, {'E',"5"}, {'F',"34"}, {'G',"35"},
{'H',"0"}, {'I',"36"}, {'J',"37"}, {'K',"38"}, {'L',"2"}, {'M',"4"}, {'.',"78"},
Line 516:
{'9',"799"}, {'Y',"76"}, {'Z',"77"}};
}
Line 522:
{
return string.Concat(s.ToUpper().ToCharArray()
.Where(c =>
}
Line 528:
{
return string.Concat(Regex.Matches(s, "79.|7.|3.|.").Cast<Match>()
.Where(m =>
}
|