#Brainfuck Multiplayer (POC)

1 messages · Page 1 of 1 (latest)

tawdry axle
#

Imagine a brainfuck, with the ram stripe visible, but said ram stripe is used by multiple users' brainfucks at the same time.

https://github.com/TotoShampoin/brainfuck-mp

EDIT:
The thing is pretty much ready!
https://cdn.discordapp.com/attachments/1118130186899173446/1119006213561143426/2023-06-15_22-44-45.mp4

To use is, go to https://totoshampoin.github.io/brainfuck-mp/

GitHub

Contribute to TotoShampoin/brainfuck-mp development by creating an account on GitHub.

tawdry axle
#

Just pushed, for I did some refactoring

tawdry axle
coral smelt
#

thats one of the coolest things ive seen when it moves

tawdry axle
#

Now imagine this, but you also see other brainfuckers passing by

coral smelt
#

:O

#

have like multiple cursors

#

add usernames

#

so it appears under the cursor

tawdry axle
#

exactly

#

choo choo !

#

But the best part, by far, will be to write in it, and watch everything burn as 2 brainfuckers collide

#

but that's Step 4 or 5.
Step 3 will be to see other pointers and to directly affect the memory

tawdry axle
#

The idea is that each player will host their own RAM, and each time they do something, they broadcast it to the others, who change their own RAM accordingly, essentially synchronizing each others

#

It might get unstable real quick if I'm not careful, I know

#

Also, it's at this point that I'll have to remove that reset button, since it clears the RAM... Which I don't want in this app

willow elm
# tawdry axle The idea is that each player will host their own RAM, and each time they do some...

Someone has to ask this but what happens if there are conflicts?
A simple scenario would already be with two people A and B.

Let's assume there are three persons A, B and C.
A increments the first cell and broadcasts this to B and C.
B receives it immediately and updates accordingly.
C however has a slow connection and interprets his input before incrementing.

Now what if C used a conditional like [ or ] and their data pointer is on the first cell?
In that case we got a race condition.

On the other hand your program seems to be just as esoteric as Brainf*** itself and there is no practical use probably so you could just ignore this.
Interesting idea though. Keep up the great work!

tawdry axle
#

rn, I'm getting the communications to work

#

next step is linking the communication to the array of little pointers

tawdry axle
#

now, I gotta add usernames, colors, and camera control

tawdry axle
tawdry axle
tawdry axle
#

updated the post

tawdry axle
#

Brainfuck Multiplayer (POC)

old fractal
#

everybody gangsta till someone makes an OS in brainfuck

tawdry axle
#

I mean, if you allocated some adresses to graphics and sounds, you could have a working, usable computer

#

Heck, one of the 8 instructions is dedicated to reading memory and displaying it as text

old fractal
#

you think I could make a tool that helps humans read brainfuck easier?

#

or transpile C into brainfuck

#

wait. im gunna create a new thread in projects for this

tawdry axle
#

you go ahead and do that, then

viral crypt
#

How do you even think of ideas like these

tawdry axle
#

I don't think, they come by themselves