Demos

Demos#

Note

This page is a work in progress, and will be updated with more demos soon.

Snake with curses

Generate a snake game that runs in the terminal using curses, and then modify it to add color.

Steps

  1. Create a snake game with curses to snake.py

  2. Running fails, ask gptme to fix a bug

  3. Game runs

  4. Ask gptme to add color

  5. Minor struggles

  6. Finished game with green snake and red apple pie!

Mandelbrot with curses

Generate a program that renders mandelbrot with curses, and then modify it to add color.

Steps

  1. Render mandelbrot with curses to mandelbrot_curses.py

  2. Program runs

  3. Add color

Fibonacci

An old demo showing off basic code execution and shell interaction.

Steps

  1. Create a new dir ‘gptme-test-fib’ and git init

  2. Write a fib function to fib.py, commit

  3. Create a public repo and push to GitHub

Answer question from URL

Showing off basic URL loading from the prompt, and answering questions based on the content.

Steps

  1. Ask who the CEO of Superuser Labs is, passing website URL

  2. gptme browses the website, and answers correctly

Edit history with /edit

TODO