Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [turtle-graphics]

Turtle graphics is a term in computer graphics for a method of programming vector graphics using a relative cursor (the "turtle") upon a Cartesian plane.

Filter by
Sorted by
Tagged with
6 votes
3 answers
673 views

Python analog clock with turtle - runs slow

I made a python analog clock program with turtle. The problem is, it takes about 1.4 seconds to loop, so it only moves the second hand every 1.4 seconds. Its probably cuz my computer is slow... ...
user avatar
3 votes
0 answers
148 views

Simple Snake Game in Python

I have created Snake game in Python. it is a single-player game, where the snake has to eat the red dots in order to grow longer. I just wanted to review if there is any improvements for the code. <...
user avatar
4 votes
2 answers
45 views

Python: screen colors adjuster using Turtles

I am a total beginner in Python and I am trying with the modules Turtle. I am currently trying to code for 3 sliders (R, G, B) for adjusting the colors of the turtle screen. However, I found parts of ...
user avatar
  • 143
3 votes
1 answer
767 views

Python Beginner - Basic Hangman Game Using Turtle

I built upon a previous beginners' class' hangman game to do graphics with Turtle. It should work with any .txt list of words in whatever location you specify at the top of the code (in my case on ...
user avatar
2 votes
1 answer
373 views

Drawing dragon curves using Turtle graphics

This is exercise 3.2.23. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne: Write a recursive Turtle client that draws dragon fractal. The following is the data-...
user avatar
3 votes
0 answers
90 views

Allowing a user to draw their own avatar in turtle

I am working on a turtle project where the user can draw their own avatar. The thing is, I want the user to be able to decide whether the turtle they drew will be filled, or not. The filled part is ...
user avatar
  • 964
2 votes
1 answer
492 views

Pong and Breakout games

So I have made 2 games without any internet when on vacation. I have used turtle because I did not install pygame. I was wondering how I could improve my games. Here is the code: Pong: ...
user avatar
  • 133
0 votes
1 answer
61 views

Python Alien Blitz Game

Please review my Python Alien Blitz Game code. There are several points I'm keen to hear about. I used globals. Was that an evil choice given the context? In the past when I've tried to refactor ...
user avatar
3 votes
1 answer
102 views

A representation of the Mandelbrot Set

I've written up some code that represents the Mandelbrot set in an, admittedly, quite inefficient way. It probably looks awful due to the fact that I did this completely solo, without any external ...
user avatar
1 vote
1 answer
72 views

Lindenmayer System Python Fractral Tree

I have created a fractal tree based on a Lindenmayer System in Python. If you could tell me about any algorithmic or efficiency-based problems in the code, I would be grateful. ...
user avatar
  • 113
5 votes
1 answer
88 views

Turtle controller with simple instruction set

I've made a controller for Python's Turtle. The controller essentially defines an 'instruction set' so that commands can be recorded in a text file and then executed sequentially by the turtle. It ...
user avatar
  • 163
7 votes
3 answers
634 views

Sierpinski turtle triangle

I am working through Programming Fundamentals with Python on Udacity. The assignment was to create a recursive triangle. I am happy with the output, but I am hoping for feedback on the actual ...
user avatar
2 votes
2 answers
219 views

Symmetries of Triangle Python Turtle

I made a program to explore the symmetries of an equilateral triangle using Python and Turtle Graphics. It's formatted using Black Playground. As usual, my goal is to be writing "code that doesn't ...
user avatar
2 votes
1 answer
257 views

Python Turtle implementation of the 15 Puzzle

Please can I have some feedback on my Python Turtle implementation of the 15 Puzzle? I have deliberately avoided using OOP as my aim is to develop a clear and clean coding style suitable for teaching ...
user avatar
4 votes
2 answers
2k views

Python - Random Mandala

I did a project in Python where I combined user-input, random, and the turtle module to make a sort of "Mandala Generator", or a program that can generate a simple design either randomly or by the ...
user avatar
  • 554
1 vote
1 answer
911 views

Draw checker board

For an assignment, I had to draw a checkers board, with blue and red checkers, in python. What I have works, but I'm wondering if there's a more elegant and/or efficient way to accomplish this feat? ...
user avatar
  • 9,476
9 votes
4 answers
2k views

Simple (Very Easy to Make) RPG Game Simulation in Python and Turtle

The code creates a very simple/easy RPG game, with 2 classes Jedi and Orc. The data is visualized using ...
user avatar
  • 1,142
1 vote
1 answer
101 views

Building a 64 × 64 particle accelerator frame in Minecraft with a computercraft turtle

I dont think this will work anywhere besides in minecraft with computercraft but it's all correct syntax. I just feel like it has some lines of code I could eliminated somehow and made it a cleaner ...
user avatar
  • 13
4 votes
2 answers
10k views

Python Turtle based Pong game

I'm new to Python but I've coded in other languages mainly for hardware. I made Pong in Python using turtle but it's a little glitchy. I was wondering if any of you guys could check it out and give ...
user avatar
10 votes
1 answer
2k views

Blackjack in Python (using Turtle)

I've been programming for 2ish months and I was programming Blackjack on a school computer because I was bored. If you guys could check to see if there are any problems with it that would be great! <...
user avatar
3 votes
1 answer
10k views

Python Pong using turtle

I am a new Python programmer, and I am learning how to use the turtle import. I am making some projects, and now I am trying to do a Pong game using turtle. It is working but not really well; the ...
user avatar
7 votes
1 answer
946 views

Python OOP Whac-A-Mole program using turtle

I am trying to create an object oriented program in Python for a whac-a-mole program. I want to keep this simple where there are just a hammer and a mole and when the hammer turtle makes contact with ...
user avatar
2 votes
0 answers
427 views

3D wrapper for turtle

I am a Python enthusiast, but I'm never sure if what I'm doing is Pythonic. I have made my own graphics wrapper for Python's turtle. I don't entirely know if I did this right, so I have come here for ...
user avatar
4 votes
2 answers
1k views

Python the Dragon's Curve with turtle

I'm kind of new to Python, and I'm trying to improve (especially) my object oriented programming, and getting to know Python syntax better. I'd love to know if there is something to improve, (...
user avatar
  • 407
4 votes
1 answer
6k views

Python Turtle - Olympic flag re-creation

I made a program to draw the Olympic flag in Python using the turtle module. I am able to make a basic version of it but i think that there is still room for improvement! Quick note: I am new to ...
user avatar
  • 259
7 votes
2 answers
2k views

Drawing fractals with Turtle

So, I have my code here: ...
user avatar
2 votes
0 answers
779 views

Conways game of life with turtle python 3

A version of CGOL made in Python using the turtle module. Any suggestions for optimisations or improvement: ...
user avatar
  • 151
5 votes
1 answer
5k views

Catch the turtle - Python

I made a game in python, where the objective is to catch a 'turtle'. The controls are the arrow keys. ...
user avatar
9 votes
1 answer
2k views

N dimensional cubes

A python program made with a friend to draw n dimensional hyper-cubes in python using turtle. Any suggestions for improvement. ...
user avatar
  • 151
10 votes
1 answer
2k views

Python Checkers

This is a program I made to practice using turtle graphics. I am looking for pointers specifically on how I handle the game board. Currently it holds all of the grid objects in a nested list. Sorry if ...
user avatar
4 votes
2 answers
667 views

Tic Tac Toe "Cats Game"/End Game

I have made my first game in Python. My program can determine when there is a winner, however I am unsure what to do if the board is full and there is NO winner (a cats game). ...
user avatar
8 votes
1 answer
2k views

Simple labyrinth

I'm making a a simple labyrinth. I want to make it so that I could hit a wall, and if I did hit the wall, I wouldn't cross it. ...
user avatar
6 votes
2 answers
3k views

Koch snowflake in Python with Turtle

After finding a piece of code on StackOverflow that drew the Koch snowflake fractal, I made a ton of modifications to it and used it to produce an animation divided in two parts: Constant size, ...
user avatar
  • 27k
7 votes
2 answers
467 views

Small turtle program using instruction strings to draw patterns

A while ago, I wrote a program that combined L-systems and turtles. This was before I understood OOP (I still don't fully understand classes, or if they are even needed here). I tried to add some ...
user avatar
  • 808
8 votes
2 answers
157 views

Drawing a gnome in Logo

I recently found my first program I wrote using Logo and was wondering if it could have been improved: ...
user avatar
8 votes
3 answers
3k views

Python Turtle screen saver

Leon asked a question which got closed both here and at Stack Overflow, but I kind of liked the idea, so I implemented a working version of his code, which I now want reviewed. With regards to Leon's ...
user avatar
  • 11.5k
6 votes
2 answers
5k views

Python Trig Calculator

It's big, it's ugly, but it should work. My question is: how could I have implemented the "typeselection" function so it is less repetitive? Any tips on other improvements in coding style are welcomed ...
user avatar
12 votes
3 answers
2k views

ASCII Turtle Graphics

In my college Java course, I wrote an ASCII Turtle Graphics. My professor said the only thing he could suggest was to turn the turtle into a class and create an instance of it (I hadn't because we ...
user avatar
8 votes
3 answers
14k views

Random walk in Python + turtle

I decided to implement a random walk. The rules The rules are easy, an object is moved in the direction dictated by random or pseudo-random numbers. If you want to read more about it, see the ...
user avatar
  • 27k
2 votes
1 answer
4k views

Memory game with Turtle

A while back I had to do a project for school in Python, creating a game or something interesting. I decided to make a memory game. The code isn't really nice and neither are the variable names. It's ...
user avatar
6 votes
2 answers
865 views

Math, Geometry, & Physics Library

I am making a Python program that does math and physics calculations for you. This is my first programming project and is a work in progress. The SymPy library was used for some portion of it. ...
user avatar
4 votes
3 answers
3k views

Menu system and Turtle

I had to do a small application using a menu system and Turtle. I have finished it and worked perfect. Just to make sure, can you please check it if it has done properly? ...
user avatar
  • 203