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
3
votes
0answers
48 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. <...
4
votes
2answers
34 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 ...
3
votes
1answer
242 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 ...
1
vote
1answer
177 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-...
3
votes
0answers
76 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 ...
2
votes
1answer
274 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: ...
0
votes
1answer
52 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 ...
3
votes
1answer
80 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 ...
1
vote
1answer
59 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. ...
5
votes
1answer
75 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 ...
7
votes
3answers
558 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 ...
2
votes
2answers
145 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 ...
2
votes
1answer
148 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 ...
4
votes
2answers
1k 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 ...
1
vote
1answer
693 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? ...
9
votes
4answers
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 ...
1
vote
1answer
93 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 ...
4
votes
2answers
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 ...
10
votes
1answer
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! <...
3
votes
1answer
9k 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 ...
7
votes
1answer
831 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 ...
2
votes
0answers
417 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 ...
4
votes
2answers
928 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, (...
4
votes
1answer
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 ...
7
votes
2answers
2k views

Drawing fractals with Turtle

So, I have my code here: ...
2
votes
0answers
711 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: ...
5
votes
1answer
4k 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. ...
9
votes
1answer
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. ...
10
votes
1answer
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 ...
4
votes
2answers
655 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). ...
8
votes
1answer
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. ...
6
votes
2answers
2k 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, ...
7
votes
2answers
456 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 ...
8
votes
2answers
153 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: ...
8
votes
3answers
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 ...
6
votes
2answers
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 ...
12
votes
3answers
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 ...
8
votes
3answers
13k 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 ...
2
votes
1answer
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 ...
6
votes
2answers
847 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. ...
4
votes
3answers
2k 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? ...