thank you very much ill start on it right away its just going to be a text based game client cause i want it to work on my old computer Pentium 1<br><br><div><span class="gmail_quote">On 6/22/07, <b class="gmail_sendername">
Alan Gauld</b> <<a href="mailto:alan.gauld@btinternet.com">alan.gauld@btinternet.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> From: Amadeo Bellotti <<a href="mailto:amadeo.bellotti@gmail.com">amadeo.bellotti@gmail.com</a>><br>> no this isn't a home work assignment.<br><br>Ok, Just checking :-)<br><br>> Ive never done web programming before i am pretty skilled
<br>> in python i dont want an application like on a web browser.<br><br>OK, That would have been the simplest form of online game but...<br><br>> i want a client that each person can download.<br><br>OK, I assume from this that you want a multi player
<br>game - for rock,paper,scissors I assume multi = 2? - rather<br>than just an interactive game against the computer?<br><br>> honestly i have no clue where to start with a web app<br><br>OK, If we are going for a networked game between
<br>multiple users you have a choice to run a server centrally<br>with all clients connecting to that or to run on a peer to per<br>basis with the two participating machines forming a direct<br>connection. The latter is easy to program for the game
<br>but more complex to set up the initial configuration. A<br>central server makes the game slightly more comlex<br>but setup is easier.<br><br>I'd probably opt for the server approach but keep it really<br>simple initially. Only allow two connections and simply
<br>relay the results. This can all be done using simple<br>sockets (see my network programming topic on my tutor).<br><br>The sequence will be something like:<br><br>server awaiting connections<br>client A connects, server gives back (empty) list of other clients
<br>client B connects,<br>server notifies all clients of user list<br>client B challenges A (or vice versa)<br>server notifies A that he has been challenged<br>A accepts and server henceforth refuses any more connections<br>
server asks players to select a weapon<br>clients send responses<br>server compares responses and sends notification to both cliernts of<br>score<br>repeat for as many turns as desired then report final score<br>open up for more connections
<br>client C connects<br>server notifies all clients of new user list<br>client A challenges C<br>repeat as above...<br><br>Hopefully that's enough to give you somne ideas and get started.<br>Once you get that working you can enhance it to support multiple
<br>games at once etc. Keep high scores, league tables etc etc.<br>Also you can introduce security with logins etc.<br><br>But get the basic game structure working first.<br><br>HTH,<br><br><br>--<br>Alan Gauld<br>Author of the Learn to Program web site
<br><a href="http://www.freenetpages.co.uk/hp/alan.gauld">http://www.freenetpages.co.uk/hp/alan.gauld</a><br><br><br>_______________________________________________<br>Tutor maillist - <a href="mailto:Tutor@python.org">
Tutor@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor</a><br></blockquote></div><br>