Rollover

From Esolang
Jump to navigation Jump to search

Rollover is a programming language created by User:Scratch_Fakemon in 2025. It uses an array of up to 256 cells, starting at 0 and ending at 255. Each cell is given a value within the same range. The language can only increment, loop, or print, requiring the rollover mechanic, which sets the currently active cell or its index to 0 when it exceeds the maximum of 255. The esolang is documented at https://scratchfakemon.github.io/rollover/, where an interpreter for Rollover can also be found.

Commands

Rollover has 6 commands in total:

  • n - changes the cell index by 1
  • i - increments the cell's value by 1
  • c[] - loops the code within the brackets until the value of the cell is equal to the cell's index
  • p - prints the current cell's value as a number
  • a - prints the current cell's value as ASCII
  • u - prints the current cell's value as UTF-8
  • g - gets a numerical input from the user and places it in the current cell (introduced in Rollover 1.1)

Sample Programs

Although the whole program may not be shown on screen, it is there. Double-click it to select the program and copy it with your preferred method of choice (Ctrl + C, Right-click -> Copy, etc)

Hello World!

iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiianiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiianiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiianiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiianiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiianiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiianiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiianiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiianiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiianiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiianiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiianiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiia

This program increments the cell's value to the number of the desired character in ASCII with i repeated a certain amount of times, prints it with a, and moves to the next cell with n.

More samples are available on the official Rollover website.


Interpreters

Other

External resources

https://scratchfakemon.github.io/rollover/