scratchgen: scratch + Python + AI

po angielsku (English)

po polsku (Polish)


Today I created a Python library that allows you to generate projects in Scratch. The library is called scratchgen. It can be useful if you want AI to generate Scratch programs for you, as it includes many examples and a lot of docs which explain both how to use the library and how to create games in Scratch. My workflow is to take an AI agent, give it the library directory, tell it to look at the documentation, and then ask it to make games for me.

You can download the scratchgen library along with the documentation and examples here.

Here is a sample game that the AI created for me using this library:


Zrobiłem dziś bibliotekę pythonową, która pozwala generować projekty w Scratchu. Biblioteka nazywa się scratchgen. Może się ona przydać, jeśli chcemy, żeby AI generował nam programy w Scratchu, bo biblioteka ma sporo przykładow i obfitą dokumentację, która mówi i jak korzystać z tej biblioteki, i jak robić w Scratchu gry. Ja korzystam z tego tak, że biorę agenta AI, daję mu katalog z biblioteką, każę spojrzeć na dokumentację i następnie robić mi gry.

Stąd możecie pobrać bibliotekę scratchgen razem z dokumentacją i przykładami.

Oto przykładowa gra, którą stworzył mi AI używając tej biblioteki: