RSSAmplifier

Moritz Glantz — Blog · Jan 18, 2024

Checkbox Tetris – An AI experiment

0
Sign in to vote or save

Moritz Glantz · moritzglantz.de

Last night, I thought I might challenge ChatGPT to create something complex. A game. A game everybody knows. Tetris, but as a website using checkboxes to form the grid and the blocks of the game.

I am not sure if checkbox Tetris is a new idea. I think I might have seen something like it before, but I am not sure.

Stranger in a strange land

To be honest, there were some strange moments while prompting. For example the robot thought it might be a good idea to hide the checkboxes with CSS. When I asked the robot how I am supposed to play a game if the playing blocks are invisible it was like shrugging and saying: “Alright, human, if you really need to see something before you play, I’m gonna give it to you,… you primate.” That’s not what it actually said, but it felt like it.

The result

A tetris game inside a browser using checkboxes forming a grid. Blocks are checked checkboxes, unchecked ones are empty grid blocks. It has a button that says 'start game'

A checkbox-based Tetris game with a score counter, arrow based controls and even a high score board that saves scores to the local storage. Does it still have bugs happy accidents? Yes. No it is not perfect. But could you have built it in three hours?

The only thing I changed manually were some styles to make the grid look better and I added some text on how to play it.

If you want, you can read the full conversation with ChatGPT.

Demo!

✅ Play Checkbox Tetris!

Transformative power

I know. You heard it a million times already. “AI is gonna change the world as we know it, yadda yadda yadda”, but whether you like it or not: A technology which is able to write code that would’ve taken somebody who did not write the same program before, days, if not weeks, will transform the world. If you’re not using this tool, somebody else will. And they will be faster than you. Maybe not better, but faster.

Power to the people

I don’t want to live in a world where monopolists have all the power, all the resources, all the knowledge. And to be honest having only a few players in this game right now, where none of them appears to be on the side of the people and 💵 appear to be the only motivation, we need to have working alternatives, which are open source and open infrastructure. And this is much worse than other industries. We’re talking about only a hand full of players here. Since I don’t believe the AI companies will change their course, AI has to be regulated by the governments of the world. And they have to regulate it real hard! ⚒️

I wrote this post while waiting for the prompts to resolve. The longer the code became, the slower the answers came in, so I had some time to think about the unbelievable craziness that this technology brings with it.

Portrait of Moritz Glantz

👋 Moritz Glantz is my name…

…and I am an Specialist for Web Accessibility and UX-Engineer with over 20 years of experience, by day and a podcaster by night.

I help organizations build accessible websites by offering talks about accessibility, workshops & trainings, accessibility reviews and developing strategies for developers and management.

If that sounds like you could use my help, let’s talk! 💬


Read the original on moritzglantz.de

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.