Thief, Police and the Building extended

From Esolang
Jump to navigation Jump to search

Thief, Police and the Building extended is an esolang invented by User:None1, it is an extension to Thief, Police and the Building.

Extra commands

He time-travels backwards i scenes

Make the instruction pointer move backwards i instructions.

He time-travels forwards i scenes

Make the instruction pointer move forwards i instructions.

He time-travels backwards i scenes if he steals c

Make the instruction pointer move backwards i instructions if there is a character c in the thief's bag.

He time-travels forwards i scenes if he steals c

Make the instruction pointer move forwards i instructions if there is a character c in the thief's bag.

The police have come, but he escapes

Prints everything in the thief's bag in the order he steals, but doesn't clear the thief's bag or terminate the program.

The thief goes to an unknown place and steals

Read a character from user input and put it into the thief's bag, this command does not change the thief's position.

Examples

Truth Machine

A thief on G/F
Set SoE -> 3F/s
Set SoS -> 1F/s
top: G-th floor
btm: G-th floor
G/F 0
The thief goes to an unknown place and steals
The police have come, but he escapes
He time-travels backwards 1 scenes if he steals 1
The police have come

See also