Logical game
You have to develop a web service able to play Rock-Paper-Scissors game with the central player provided by the organizers.
Game rules: A Rock-Paper-Scissors game consist of more iterations. In each iteration the players choose a “throw”. There are three permissible "throws" in RPS: Rock, Paper and Scissors. Rock crushes scissors, scissors cuts paper, and paper covers rock. There are NO exceptions. In each iteration the player whoose throw crushes the others gets 1 point. The application must be published as a web service. The web service file must be named as Game.asmx. The application must provide one single public web method: int GetChoice(int opponentLast). The method returns the choice thrown by the web service player. As input argument it gets the choice of the last iteration of the player of the organizers. In the first iteration the input parameter has the value -1. The web service player earning the most points wins this task.
Rock = 1
Paper =2
Scissors = 3
DEADLINE FOR THE HUNGARIAN TEAMS IS 2:30!!!!