GithubHelp home page GithubHelp logo

rayhanadev / prizm Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 10 KB

A toy BrainF-eqsue language.

License: MIT License

JavaScript 100.00%
esolang brainf nodejs custom-language esoteric-language esoteric-programming-language arrays 3d

prizm's Introduction

Prizm | 3D Turing Machine

Prizm is just a tiny esolang I made in JS similar to BrainF except you can move in three dimensions for an added challenge.

How to Use

Firstly you create a main.pzm (has to be this!) file. The first line is the length (X) of the prism, the second is height (Y) of the prism, the third is the depth (Z) of the prism, the fourth is the debug settings (true/false) and lastly anything after that is code. The file must be formatted like such or else it will throw an error when reading.

For Example:

5
5
5
true
+++
F++R+B++
RRRF++

You control a cursor (X), selector (Y) and pointer (Z) to locate various cells. You increment cells up and down to change their value and can output to the console according to the ASCII value of the cell.

You initially start in the top, left, back corner of the prism and are able to resize it to a limit of 999 cells in any direction. Each cell starts with an initial value of zero.

Commands

Symbol Keyword Action
+ Increment Up Increments a Cell Up
- Increment Down Increments a Cell Down
L Left Moves the Cursor Left
R Right Moves the Cursor Right
U Up Moves the Selector Up
D Down Moves the Selector Down
F Forward Moves the Pointer Forward
B Backward Moves the Pointer Backward
P Point Marks a Jump Point
J Jump Jumps to the first available Jump Point if the cell the jump point marked isn't 0
O Output Output the ASCII value of the current cell
N Null Skips Position on Code/Does Nothing

prizm's People

Contributors

rayhanadev avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.