Win The Web

24 hours web development contest
Welcome to Win The Web Login | Register | Rules | Contact

Win The Web

Task +1 for the hungarian team (cze and polish and ukrainien teams should skip this)

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!!!! 

Comments

No Comments

Upload Web applications

Don’t forget! Your status as a contest participant will be pending until you programme and upload a mini web application to the Contest website. You can choose from the web applications(1 per team) listed here with the condition that all the solutions will be released as Open Source and shared on the Contest website. Details on Terms of Use are described under Rules, Section 7.

Powered by Community Server (Commercial Edition), by Telligent Systems