Learn

Start here

Brainfuck is a programming language with only eight commands. You learn them by running small programs and changing them.

Start learning

Already know brainfuck? Go straight to Build toward a chatbot.

Your progress is saved in this browser only.

Two courses, in this order

Course 2 · 11 lessons

Build toward a chatbot

The techniques a language model needs, from multiplying by a fixed number to choosing the next word piece (a word or part of a word). You build a small version of each and run it. The chatbot on the home page is a far larger program.

Take this after Brainfuck basics.

0 of 11 done

  1. The machine
  2. Moving and copying
  3. Multiplying by a fixed number
  4. Obstacle 1: only one question
  5. The way through: peeling off bits
  6. Obstacle 2: two numbers from the tape
  7. Obstacle 3: no addresses
  8. Obstacle 4: size
  9. One number of the model
  10. Looking back
  11. Choosing the word

Look things up, or try it yourself

  1. ReferenceLook things upThe language stated exactly, where interpreters differ, its history and a glossary.
  2. Code patternsReady-made piecesThe small programs that come back again and again, each with a stepper.
  3. PlaygroundBlank editorWrite a program, run it step by step, and watch the cells change.
  4. Challenges51 exercisesWrite a program for a task. It is run on test cases and checked.