Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.071 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.00; 'socket': 0.07; 'http': 0.09; 'run,': 0.09; 'cc:addr:python-list': 0.11; '"real"': 0.16; '24,': 0.16; 'edward': 0.16; 'internally': 0.16; 'multiplayer': 0.16; 'status.': 0.16; 'urllib': 0.16; 'applies': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'wed,': 0.18; 'examples': 0.20; 'work,': 0.20; 'example': 0.22; 'coding': 0.22; 'rules': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'player': 0.26; 'updating': 0.26; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; '(like': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'apparently': 0.31; 'writes:': 0.31; 'probably': 0.32; 'url:python': 0.33; '"the': 0.34; 'something': 0.35; 'more,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'url:listinfo': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'server': 0.38; 'problems': 0.38; 'pm,': 0.38; 'url:mail': 0.40; 'read': 0.60; 'games,': 0.60; 'is.': 0.60; 'truly': 0.60; 'john': 0.61; 'kind': 0.63; 'face': 0.64; 'great': 0.65; 'articles': 0.65; 'series': 0.66; 'connection.': 0.74; 'age': 0.80; 'email addr:panix.com': 0.84; 'to:addr:gordon': 0.84; 'bears': 0.91; 'problems?': 0.91; 'outcome': 0.93; 'connection,': 0.95; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=0AJ87VN8k9bFlLcciQHBwnpdUT5msj3ezn2o2hDEkqU=; b=Cu3gEZovl9h/iD4BTazqD526O04HrhLXcSAn/vE/2garfdKVtoy2sSl0+cK68XDqHm aJQ5PHvGHlAkoefu84GPr1IO4bRhBISINpmObtx0a24/AzHCUhDLmr91IteSlu/B/2ZX AqSZbmHdeJX3/1pSB3dC/6/5jn2HdAuexv3vZwdniYMBDwa6aYoKjNnIvlm/wz/V05hU MMh+LLqkcuNdXO6o5euNsvWuaJXMBVGF0+WZ5Rk/X0kzWROz17ZW+v25v55oGlqnMJph T4t5JAXZSUCU4w7qK3kZ/tX23eB/jU9kUpIswfcHiv4miz0T52yu0xvNS0BiLylZtHeR +Frw== MIME-Version: 1.0 X-Received: by 10.224.221.81 with SMTP id ib17mr32051390qab.62.1366841216207; Wed, 24 Apr 2013 15:06:56 -0700 (PDT) In-Reply-To: References: Date: Wed, 24 Apr 2013 23:06:56 +0100 Subject: Re: how to: multiplayer game connecting to central server effectively? From: =?ISO-8859-1?Q?F=E1bio_Santos?= To: John Gordon Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 44 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1366841219 news.xs4all.nl 15960 [2001:888:2000:d::a6]:60220 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:44294 This series of articles is flash-based, and the examples apparently don't run, but it is a great read on all the problems you face when coding several kinds of multiplayer games, and the variety of things you can do to fix it: http://playerio.com/documentation/tutorials/building-flash-multiplayer-game= s-tutorial/ Did you know that Age of Empires was actually internally turn-based, in order to avoid syncing problems? On Wed, Apr 24, 2013 at 10:48 PM, John Gordon wrote: > In webmaster@terr= adon.nl writes: > >> i have tried and accompished an urllib connection, with get and post >> variabels, but that will be polling, with all the http-overhead for ever= y >> poll. I think this is also to slow and no "real" updating of the game st= atus. > > Http can still work, depending on what kind of game it is. For example > a game where only the current player can make decisions and the other > players just sit and watch (like Risk), or a game where each player submi= ts > a move and the server applies the game rules to resolve the outcome (like > Rock-Scissors-Paper). > > But a truly interactive game would probably require something more, like > an active socket connection. > > -- > John Gordon A is for Amy, who fell down the stairs > gordon@panix.com B is for Basil, assaulted by bears > -- Edward Gorey, "The Gashlycrumb Tinies" > > -- > http://mail.python.org/mailman/listinfo/python-list --=20 F=E1bio Santos