public string doJudge(string param1, string param2) { rock = new RockWin(); paper = new PaperWin(); scissors = new ScissorsWin(); draw = new DrawGame(); rock.next = paper; paper.next = scissors; scissors.next = draw; result = rock.doWin(param1, param2); return result; // Let's try to leave this kind of practice away... // Vamos tentar deixar esse tipo de prática de lado... //if (param1 == param2) //{ // return "Draw"; //} //if (param1 == "Rock" && param2 == "Paper") //{ // return "Rock wins."; //} //if (param1 == "Rock" && param2 == "Scissors") //{ // return "Scissors wins."; //} }