Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #56830
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.109.133.81.MISMATCH!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <joshua.landau.ws@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.048 |
| X-Spam-Evidence | '*H*': 0.91; '*S*': 0.01; 'turtle': 0.07; 'cc:addr :python-list': 0.11; 'def': 0.12; 'subject:turtle': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'import': 0.22; 'cc:addr:python.org': 0.22; 'subject:problem': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'sense': 0.34; 'skip:d 20': 0.34; 'subject:with': 0.35; 'something': 0.35; 'received:google.com': 0.35; 'structure': 0.39; 'skip:p 20': 0.39; 'to:addr:gmail.com': 0.65; 'scr': 0.84; '2013': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=5fWZcjczgW7SkdqdP/T1SItYcZAchWU2yRI6Jl7dEQs=; b=gWK6aTwqmOJPp12G18JiOmLFt+R/rvERjkBwCvZPW2TjEJQy9yqauUhKeaXgkFXYl7 /4htaZ5NpZPUj8utRt8EoCuTfLaCivjbITkdMjDgCYD6CH2TI1xU9vfLnWt8cddE+lnw C1if0F1rQLQlV7AzQwLI/1jZXlhAsHe7jEagsCkBzs5RnnvRgCn7xMo1s3Ebk17FNQvg QvAVFoMZKuH6ajshtplVlwNsTEQMx2+64sXh/pvyUHKA+K3TxVtEr0Lx6dWWu6BNArIF v2msiUbiJJwolEjA97Ja7qnxV40sqo4nJ4nXNcHjAgcalgCdj3fYqOJK4eOj9G2N0wxI 5jRQ== |
| X-Received | by 10.112.130.138 with SMTP id oe10mr15431002lbb.1.1381791524583; Mon, 14 Oct 2013 15:58:44 -0700 (PDT) |
| MIME-Version | 1.0 |
| Sender | joshua.landau.ws@gmail.com |
| In-Reply-To | <cf3c97fc-2761-41f7-b98a-9083f96bb57c@googlegroups.com> |
| References | <4c8e9740-25ef-4531-89db-467eb18c673f@googlegroups.com> <cf3c97fc-2761-41f7-b98a-9083f96bb57c@googlegroups.com> |
| From | Joshua Landau <joshua@landau.ws> |
| Date | Mon, 14 Oct 2013 23:58:04 +0100 |
| X-Google-Sender-Auth | PVKNBMSnNCJeuKOcCQ0HRHhkwFE |
| Subject | Re: basic maze problem with turtle |
| To | baujacob@gmail.com |
| Content-Type | text/plain; charset=UTF-8 |
| Cc | python-list <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 <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1083.1381791532.18130.python-list@python.org> (permalink) |
| Lines | 26 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1381791532 news.xs4all.nl 15870 [2001:888:2000:d::a6]:52123 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:56830 |
Show key headers only | View raw
On 13 October 2013 23:18, <baujacob@gmail.com> wrote:
> import turtle
> userTurtle = turtle.Turtle()
> draw = turtle.Turtle()
> scr = turtle.Screen()
>
> def drawMaze():
> draw.pencolor("gold")
[lots of lines]
> print(userTurtle.pos())
>
> scr.onkeypress(m1, "Up")
> scr.onkeypress(m2, "Left")
> scr.onkeypress(m3, "Right")
> scr.onkeypress(m4, "Down")
>
> scr.listen()
>
> drawMaze()
> mazeGame()
You might realise that you don't actually have a "maze" in the sense
that you need something a *computer* can understand.
You need some data structure to hold the maze which you have drawn.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
basic maze problem with turtle baujacob@gmail.com - 2013-10-13 14:52 -0700
Re: basic maze problem with turtle baujacob@gmail.com - 2013-10-13 15:18 -0700
Re: basic maze problem with turtle Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-10-13 21:53 -0400
Re: basic maze problem with turtle Joshua Landau <joshua@landau.ws> - 2013-10-14 23:58 +0100
csiph-web