Share your repls and programming experiences

← Back to all posts
Mini Games Beta!!!
Dart (1199)

Ok so me and @Warhawk947 have been working on this for a while and I think its finally ready to push out into a beta version!

This was a big project we started in 2018

There may be bugs! (beta release)

Big thank you to @HazTheWaz for play-testing! (ur cool :3)

Huge thanks to @Warhawk947 who had to deal with my questions and weird ideas as well as programming the log in system and helping with the database as well

Also thanks to @Zavexeon for some help with the database and what not

Leave your comments and discoveries as i read all of them!

Thanks for checking out my post!

-Dart

Comments
hotnewtop
TonyDonahue (3)

If you hold down enter on slots it breaks everything

Dart (1199)

I am sorry about the error guys, @RomeroSchwarz attempted to fix the env ill change it back. please be aware that the json store client is public and can be tampered with, ill have to run a server for the game next time (as advised by MrEconomical)

LOLInteresting (12)

@DJWang also experienced this prob. Forked this already, looking for a fix RN

LOLInteresting (12)

@AdamJanuszewsk1 I am busy in other stuffs man. Will be looking at this thing ASAP

Dart (1199)

@LOLInteresting please do not use inappropriate words in the comments!

Dart (1199)

@DJWang try again (forgot the Client() around the token)

Dart (1199)

@DJWang fixed sorry for the wait!

NodeJSAcc (24)

Um .. it didnt save when i rerun is it meant to lol...

Warhawk947 (524)

oh god i need to re write the login function

PowerCoder (740)

Use my account PowerCoder. (It's rich!) (It has 2407 coins.)

DJWang (1354)

I got this after I created new user and entered name. :P

JacksonSmith2 (14)

Traceback (most recent call last):
File "main.py", line 51, in <module>
slot_client = Client(token) #do the get env thing
File "/home/runner/.local/share/virtualenvs/python3/lib/python3.8/site-packages/json_store_clie
nt/init.py", line 83, in init
raise TypeError("Token must be str, not {}".format(token.class.name))
TypeError: Token must be str, not NoneType

mahcarze1 (19)

umm, somethings broken when i tried it
It said that a token must be str, not {}, mind fixing it?

AgastyaSandhuja (170)

it raises an error:
Traceback (most recent call last):
File "main.py", line 51, in <module>
slot_client = Client(token) #do the get env thing
File "/home/runner/.local/share/virtualenvs/python3/lib/python3.8/site-packages/json_store_client/init.
py", line 83, in init
raise TypeError("Token must be str, not {}".format(token.class.name))
TypeError: Token must be str, not NoneType
probably because it cannot access the .env file without one of the owners opening it

RomeroSchwarz (271)

Hey, it looks like someone cleared the jsonstore. Can't get into my account, idk about other people. Do you need help with an env file?

Dart (1199)

@RomeroSchwarz yea (the full game isn’t out and I was planning on getting a fresh dB anyway)

RomeroSchwarz (271)

@Zexogon I can help if needed. Invite to multiplayer?

Dart (1199)

@RomeroSchwarz you’ll have to talk to @Warhawk947 unless you want to wait for me to get home so we can chat on discord

LiamDonohue (294)

how do u become admin?

CodeSalvageON (604)

Embed it onto a webpage and make it have music

LiamDonohue (294)

I suggest adding passwords so people cant access other people's accounts

[deleted]

cool, but why are there 4 empty lines at the start?

Dart (1199)

@Thecrowbar1234 Warhawk and I had comments there and I deleted them

Pandapip2 (12)

Found a bug: If you log in with an invalid username, then don't update the account, then this happens:

L O G I N
Enter your username: No
An error occured. Please try again later. Are you sure this username/password exists?

update account? y/n

n
Traceback (most recent call last):
File "main.py", line 129, in <module>
startm = info['money']
TypeError: 'NoneType' object is not subscriptable

Dart (1199)

@Pandapip2 i-i mean your supposed to update the account thats the whole point

Dart (1199)

@Pandapip2 then your account dosent have the new data required to run the game?

Pandapip2 (12)

@Zexogon I entered a nonexistent account.

Dart (1199)

@Pandapip2 oh i didnt read the first thing right, yea thats still a little buggy and we're working on it

Pandapip2 (12)

@Zexogon also, how do you buy the fish?

Dart (1199)

@Pandapip2 in the shop when you have enough coins :>

Pandapip2 (12)

@Zexogon might want to nerf the card game. Just got about 150 coins in 10 seconds.

Pandapip2 (12)

@Zexogon lool rip lost 1k coins by typing menu into something expecting an int. please wrap the content inside your loops with try/excepts.

SixBeeps (5234)

Went in with 85, came out with 86

AlexanderTarn (288)

This is just a casino

AdCharity (1321)

:/ you can use .env yet you put the json store out in the open

Dart (1199)

@AdCharity if you dont have access to the env it wont use the file

AdCharity (1321)

@Zexogon but you put your db in the open

AdCharity (1321)

@Zexogon regardless of .env the key is there and people can send it requests

Dart (1199)

@AdCharity python is weird and when you do the getenv if you cant edit the code it wont get the variables from the env file

AdCharity (1321)

@Zexogon wut no I mean store the json key part in the .env and just move it over tho. Also achievements not achivements :P

Dart (1199)

@AdCharity i know ;-; we tried to fix it and we couldnt so im just gonna let it happen (its only the beta and i have backups)

Dart (1199)

@AdCharity thats what i mean if you store the json key in the env it wont grab the json key if you open it in a new tab or from the post

theangryepicbanana (1697)

@Warhawk947 please try not to link to your personal discord server, even for projects like this (seeing how that first one is the same server you have linked in your profile)

Dart (1199)

@Warhawk947 yea you can promote it in the repl discord tho I think there is a channel for promoting things

kurrycat2004 (12)

Nice game. But i dont know if im just bad or if its a bug that i never got it right in the coin toss game. I have -1110 coins right now xD

kurrycat2004 (12)

@kurrycat2004 ok lol. If i keep pressing backspace i get an absurd amount of negative coins

Dart (1199)

@kurrycat2004 if you press anything other than h or t it takes a coin away press m to go back to the menu (ill probobly fix that)

kurrycat2004 (12)

@kurrycat2004 i have exactly -10000 coins

kurrycat2004 (12)

@Zexogon yeah i cant win that game on phone because of autocompletion or idk. I have to press enter to even make it register that i typed something

Dart (1199)

@kurrycat2004 if the letter is capital it wont work (another thing i have to fix)

Dart (1199)

@kurrycat2004 you can always create a new account

Dart (1199)

first one to buy the fish deco thing gets a cookie

Dart (1199)

@WYLDYR with admin perms tho

Pandapip2 (12)

@Zexogon Bought the fish deco. Where's my cookie?

Pandapip2 (12)

@Zexogon document.cookie = "wheresmycookie=itsheretoobaditsexpired; expires=Thu, 01 Jan 1970 00:00:00 UTC";

Pandapip2 (12)

@Zexogon It might be a lot, but maybe you should consider making it a flask application? It would look a lot cooler. Also, you could legitimately give me a cookie.

Dart (1199)

@Pandapip2 i may try it and a digital cookie is just as good

Dart (1199)

@Pandapip2 i mean it was a chocolate bit cookie (im sorry)

Pandapip2 (12)

@Zexogon Tasted quite 11111001101101010.