Share your repls and programming experiences

← Back to all posts
Rock Paper Scissors online? (TESTING)
dylanfyyg

Im trying to test this and its probably complete fail

Voters
sobakarooted
dylanfyyg
Comments
hotnewtop
MrVoo

Looks spicy

sobakarooted

im upvoting just because of all the time tht prbly went in this

Spacecraft

I hate to tell you this because it looks like you've put a lot of work into your program. The ReplitDB does not work with multiple users in a console interface. Each user who runs the program is given their own unique, empty database. Assuming you don't want to publicly share the DB address for anyone to mess with, you can't share data through the DB across users directly in the console. You would need some sort of web application to do that.

dylanfyyg

@Spacecraft yeah even if it doesn't I can share with my friend and he can go to this page and i think it works

dylanfyyg

@dylanfyyg OMG I GOT IT TO WORK

Spacecraft

@dylanfyyg Two big problems with that approach:

REPLIT_DB_URL provides full access to your database. Therefore, you should take care not to expose it to the world or share it with people you don't trust.

The value of REPLIT_DB_URL changes from time to time, so we recommend that you don't copy it elsewhere. Subsequent reads by the same process will see the same value. We will restart your repl if we need to change it after it has been read.

https://docs.replit.com/hosting/database-faq

dylanfyyg

@Spacecraft ok, i addeed a secret varible thing and i will change the value when I find out the url changed

dylanfyyg

@dylanfyyg wait, oh it does not work

dylanfyyg

@dylanfyyg lemme try something else

dylanfyyg

@dylanfyyg ok so I added a db key with the url as the value so whould that work and I could changed it when I notice the URL changes?

dylanfyyg

@dylanfyyg I could no get anything to work so imma figure out how to delete this repl and then I will share the thing with my friends and we can play it like that

dylanfyyg

@Spacecraft im actully just going to create a new repl and this could be the source code and I can play it on a diff repl with freinds. For anyone else reading this, just feel free to fork this.

tigerclawyt69

This is my testing acc, NOOOOO IT DOES NOT WORK

tigerclawyt69

@tigerclawyt69 unless if it does not say that u don’t have access to the database

CosmicBear

@tigerclawyt69 try using

dylanfyyg

@CosmicBear how do I get the database URL?

dylanfyyg

@dylanfyyg nvm i got it!

dylanfyyg

@CosmicBear IT WORKS TYSM