c # – Converter código Ruby em código .Net Core

You write a converter for Ruby abaixo, em código c #?

Class WrongNumberOfPlayersError <StandardError; The End
Class NoSuchStrategyError <StandardError; The End

def compare_game? (Game)
Return (game[0][1]    + Game[1][1]) = ~ / rs | sp | pr | rr | ss | pp / i
The End

def rps_game_winner (game)
Strategy =["r","p","s"]
  Increase WrongNumberOfPlayersError unless game.length == 2
if strategy include? (game[0][1].downcase) && strategy.include? (game[1][1].downcase)
if compare_game? (Game)
game[0]
otherwise
game[1]
The End
otherwise
Trigger NoSuchStrategyError
The End

The End

def rps_tournament_winner (game)
when play[0][1].class == string
rps_game_winner (game)
otherwise # 迭代
a1 = rps_tournament_winner (play[0])
a2 = rps_tournament_winner (play[1])
rps_tournament_winner ([a1,a2])
The End
The End

p rps_tournament_winner ([[[["Armando", "P"]. ["Dave", "S"]]. [["Richard", "R"]. ["Michael", "S"]]]. [[["Allen", "S"]. ["Omer", "P"]]. [["David E.", "R"]. ["Richard X.", "P"]]]])

p rps_game_winner ([ [ "Armando", "P" ]. [ "Dave", "S" ] ])