Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '16,': 0.03; 'subject:Python': 0.05; 'that?': 0.05; 'column': 0.07; 'dojo': 0.09; 'mess': 0.09; 'cc:addr:python-list': 0.10; 'sat,': 0.15; 'algorithm.': 0.16; 'display,': 0.16; 'from:addr:timgolden.me.uk': 0.16; 'from:name:tim golden': 0.16; 'merely': 0.16; 'message- id:@timgolden.me.uk': 0.16; 'pairs': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; 'row': 0.16; 'storing': 0.16; 'tjg': 0.16; 'wrote:': 0.17; 'saying': 0.18; 'solution.': 0.18; 'tim': 0.18; 'feb': 0.19; '(not': 0.20; 'putting': 0.20; 'written': 0.20; 'sorry,': 0.22; 'cc:2**0': 0.23; 'split': 0.23; 'cc:no real name:2**0': 0.24; 'pass': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'coding': 0.27; 'order.': 0.27; 'first.': 0.27; 'forgot': 0.27; 'went': 0.28; 'chris': 0.28; 'ball': 0.29; 'origin': 0.29; 'case,': 0.29; 'probably': 0.29; "i'm": 0.29; 'becomes': 0.30; 'stuff': 0.30; 'getting': 0.33; 'surely': 0.33; 'true.': 0.33; 'handle': 0.33; 'whatever': 0.35; 'received:192.168.0': 0.35; 'really': 0.36; 'but': 0.36; "didn't": 0.36; 'subject: (': 0.36; 'does': 0.37; 'why': 0.37; 'subject:: ': 0.38; 'received:192': 0.39; 'called': 0.39; 'received:192.168': 0.40; 'your': 0.60; 'lost': 0.60; 'easy': 0.60; 'back': 0.62; 'time,': 0.62; 'our': 0.65; 'subject:First': 0.65; 'soon': 0.70; 'from:addr:mail': 0.71; 'forth': 0.75; 'honest': 0.75; '2013': 0.84; 'to:none': 0.93 Date: Fri, 15 Feb 2013 17:37:10 +0000 From: Tim Golden User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 CC: python-list@python.org Subject: Re: First attempt at a Python prog (Chess) References: <2013021323250974803-chrishinsley@gmailcom> <511E1DCB.40406@timgolden.me.uk> <511E55E1.6050603@timgolden.me.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1360949854 news.xs4all.nl 6864 [2001:888:2000:d::a6]:52348 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:38937 > On Sat, Feb 16, 2013 at 2:36 AM, Tim Golden wrote: >> How true. This last time, my team split into two: one half >> to handle the display, the other working on the algorithm. We >> ended up having to draw a really simple diagram on the back of >> an envelope with the x,y pairs written out and pass it back >> and forth as *everyone* kept forgetting which went first. > On 15/02/2013 15:49, Chris Angelico wrote: > I'm sorry, I don't follow. People forgot that x comes before y, like > it does in everything algebraic? Or is it that people lost track of > which axis you called 'x' and which you called 'y'? > On 15/02/2013 16:48, Jussi Piitulainen wrote: > Surely you knew to have f1(board, x, y) for getting whatever is at > (x,y) and f2(store, x, y, wev) for putting wev at (x,y). Why didn't > you do that? To be honest I don't remember exactly what we did get confused over; it was probably whether our origin was top left and/or whether we were storing in row or in column order. But in any case, my experience is that stuff which is perfectly easy to reason about and write as Jussi has above when you're just coding quietly on your own becomes a confused ball of mess as soon as you're part of a Dojo team with 60 minutes to come up with a solution. (Not saying that we couldn't have managed better; merely that we didn't). TJG