esolang

MiniBitMove

Two commands, flip and move, and no way to choose between them.

2017 · Turing complete: no · ●○○ easy · esolangs.org

Tested with 2 known programs · Test method

Run it

Expected: 00000

The idea

MiniBitMove dates from 2017. A program is a string of 1s and 0s, and so is the data tape it works on. 1 flips the bit under the head and 0 moves the head one cell to the right. The program starts again from the beginning each time it ends, and it stops only when the head moves off the end of the tape. A program with no 0 in it never stops.

Read the story

The specification explains why it is weaker than even a finite state machine. The head never goes back, and no command depends on the bit it is on.

The machine

CharDoes
1Flip the bit under the head
0Move the head one cell to the right

The input is the tape, as the characters 0 and 1, and the output is the tape when the run stops.

Example

The example flips every bit.

The example flips every bit. It flips the first cell, moves, and starts again on the next one.

Expected: 1001

With two moves for each flip, every other bit changes.

Expected: 01010

Further

Cell-based

Write your own in Run Convert a program from MiniBitMove

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: minibitmove.

Command line

shib run minibitmove -e '10' --input '11111'
shib manual minibitmove

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/minibitmove.js

Docs: Kernel instructions · The .shib format · Command line · Adding a language

Source esolangs.org (CC0) · Edit on esolangs.org