OCR NEA 3: Clark's game with GUI in Python Turtle
Downloaded: 10
Last edit: 13 December 2022
I have seen solutions to the game using text-based list displays and wanted to share a more engaging way using the Logo-like/Scratch-like Python module called Turtle. Concentrating on just displaying the board and the movements, this tutorial takes you through the skills and is meant for teachers looking for lesson ideas. Each of the slides can be turned into a lesson idea and a mini-project.
Turtle is always a popular topic at the CPDs I run, especially for visual learners.
Python Turtle is very powerful and unlike PyGame comes pre-installed with Python.
Level: (Intermediate/ Advanced)
Duration: (10 lessons)
Teaches: (Changing the default turtle shape of an arrow to a square Using "write" to display strings on the screen and "clear" to erase them Changing outline and fill colours for turtles Goto to move turtles to their locations, sety and setx to change just the horizontal or vertical coordinates (goto changes both) Home to bring the turtle back to 0,0 Multiple turtles Responding to mouse clicks Making turtles appear and disappear Using turtle timer that runs the code every few ms Rotation of the shapes (dice) Multiple turtles saved to a list Iterating through a list of sprites/turtles 2D lists Modular division )