derwiki / game-assistant

OpenAI Assistant to create HTML/JS iPad games for toddlers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Memory Card Flip Game - Created by OpenAI Assistant

Overview

This memory card flip game was created entirely by OpenAI's Assistant, showcasing the power of [the current state of the art in] AI-driven development. With just nine lines of prompting provided in main.py, the Assistant generated a complete, playable game tailored for toddlers.

Screenshot of a sample generated game

Try out a Live Demo »

How It Was Made

The main.py script uses OpenAI's API to send a prompt to the Assistant, which then returns a fully functional HTML/JavaScript game. This process demonstrates the Assistant's ability to understand complex tasks and produce ready-to-use code. It's mostly boilerplate; the prompt serves as the technical/product requirements everything else is a simple wrapper around OpenAI's Assistants API.

Running the Game

The game is generated and written to index.html by running main.py. Ensure you have the necessary API keys and permissions set up for OpenAI's services.

NB: Game generation is not deterministic. This version of index.html was created in one shot, but if your generated index.html isn't to your liking, just run main.py again until you get a version you like.

License

This project is released under the MIT License because sure, why not?

About

OpenAI Assistant to create HTML/JS iPad games for toddlers


Languages

Language:HTML 65.5%Language:Python 34.5%