A Turing machine puzzle for Pride! Make a puzzle with pygame and pygame-gui!

Published: 31 May 2024
on channel: DesignCodeDebugRepeat
108
7

In honor of pride month, I thought we would create a computer science game/puzzle based on Alan Turing's theoretical "Turing machine" construct, because it has qualities that could be used to design an excellent educational computer science game.

Alan Turing, called "the father of theoretical computer science," a war hero and recipient of the Most Excellent Order of the British Empire for his code-breaking war during WWII, was persecuted under cruel "gross indecency" laws in Great Britain for engaging in an intimate relationship with another man. This most likely led to Turing's death (possibly by suicide).

We should all fight for the rights and dignity of folks on the queer spectrum. Not because they might save tens of millions of lives, as Turing did, but because every human being deserves to live in peace and happiness, free from harassment because of who they are. We'll never know what else Turing would have given the world, had he lived. I hope, moving forward, we can stop having to ask ourselves that question about queer folk whose lives have been damaged and cut short by hate.

This channel is suitable for beginners or experienced programmers who want to learn Python or pygame, and also for instructors teaching programming. There are also Java, R, and some microcontroller videos. Let's have some fun learning to program with Python!

Pygame gui docs are here:
https://pygame-gui.readthedocs.io/en/...

If you're interested in an introductory game programming (and object-oriented programming) book with Python and pygame, this is my Objects and Games with Python book:
ebook:
https://www.amazon.com/dp/B0B3V93YG9

If you're interested in an introductory Python book, my book Problem Solving with Python is here:
ebook:
https://amzn.to/3oiWwOb

The github repository with the code examples from this video is here:
https://github.com/ProfessorBurke/Pyt...

If you want to earn credit for learning to code, take an online course at CCRI!
https://ccri.edu/comp/

Pygame logo retrieved from:
https://commons.wikimedia.org/wiki/Fi...
Attribution:
TheCorruptor/pygame developers, LGPL http://www.gnu.org/licenses/lgpl.html, via Wikimedia Commons

Python logo retrieved from:
https://commons.wikimedia.org/wiki/Fi...
Attribution:
www.python.org, GPL http://www.gnu.org/licenses/gpl.html, via Wikimedia Commons

Pygame_gui logo retrieved from:
https://pygame-gui.readthedocs.io/en/...
Attribution: Copyright 2019, Dan Lawrence

Turing machine image retrieved from:
https://upload.wikimedia.org/wikipedi...
Attribution: Kevd1337, Public domain, via Wikimedia Commons

Alan Turing headshot photo in the public domain, retrieved from:
https://upload.wikimedia.org/wikipedi...

Alan Turing in chair photo retrieved from:
https://upload.wikimedia.org/wikipedi...
Attribution:
Ank Kumar, CC BY-SA 4.0 https://creativecommons.org/licenses/..., via Wikimedia Commons

New York Times obituary and apology images screenshotted from:
https://www.nytimes.com/2019/06/05/ob...

Paint can image used in the game retrieved (and modified) from:
https://www.vecteezy.com/vector-art/2...
Attribution:
emiltimplaru on Vecteezy

Step button retrieved (and modified) from:
https://www.freepik.com/free-vector/b...
Image by starline on Freepik

Pride flag image retrieved from:
https://upload.wikimedia.org/wikipedi...
Attribution:
Nikki, CC0, via Wikimedia Commons

Enigma machine image retrieved from:
https://upload.wikimedia.org/wikipedi...
Attribution:
ArnoldReinhold, CC BY-SA 4.0 https://creativecommons.org/licenses/..., via Wikimedia Commons

British Bombe rebuild retrieved from:
https://commons.wikimedia.org/wiki/Fi...
Attribution:
Transferred from en.wikipedia to Commons by Maksim, https://en.wikipedia.org/wiki/GNU_Fre...

The Imitation Game movie poster retrieved from:
https://en.wikipedia.org/wiki/File:Th..., The poster art copyright is believed to belong to the distributor of the film, The Weinstein Company, the publisher of the film or the graphic artist.

00:00 Welcome and about Alan Turing
00:50 Turing machine definition and example
05:13 Text-based Turing machine program
07:49 GUI/pygame Turing machine puzzle


Watch video A Turing machine puzzle for Pride! Make a puzzle with pygame and pygame-gui! online without registration, duration hours minute second in high quality. This video was added by user DesignCodeDebugRepeat 31 May 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 10 once and liked it people.