Giter Club home page Giter Club logo

hdbf's Introduction

Hyper-Dimensional Brainfuck

Hyper-Dimensional Brainfuck is an infite-dimensional version of the Brainfuck programming language. Instead of a tape, we have a "world." Rays parallel to the axis of each dimension in the world are called "vectors," and act very much like the Brainfuck tape. You can switch between vectors using the ^ and V commands.

Commands:

+ - increase current cell
- - decrease current cell
> - shift positively along current vector
< - shift negatively along current vector
^ - switch to a vector parallel to the next dimensional axis, that pass through the current cell
V - switch to a vector parallel to the previous dimension axis, that pass through the current cell
. - print out contents of current cell
, - input from STDIN
[ - skip to matching ] if cell values zero
] - return to matching [

Example:

Let's say we're only considering a 2-dimensional plane of the world

[0,1][1,1]
[0,0][1,0]

You start at 0,0. To shift to 1,0, you would use >. To switch to 1,1 from there, you would use ^>. From there, to switch to 0,1, you would just use V<, and to switch back to 0,0, you use ^<

Now let's consider a three dimensional cube, specifically a 3x3x3 cube.
To go from the bottom, left, front corner of the cube, i.e (0,0,0) to the top, right, back corner, i.e. (2,2,2) You would do the following:

>>^>>^>>

For a 4x4x4x4 tesseract:
>>>^>>>^>>>^>>>

hdbf's People

Contributors

property404 avatar

Stargazers

 avatar

Watchers

 avatar  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.