You are browsing as a guest. Sign up (or log in) to start making projects!

double-or-nothing

  • 10 Devlogs
  • 19 Total hours

It's a web game were you can double your score or lose EVERYTHING and be the last in the leaderboard. Will you have the highest score?

Ship #1 Pending review

So I made a simple web game were you have a score and a coin. If you decide to flip the coin, you can duplicate your score or lose it, you take the risk. I used flask (even if it wasn’t the more ideal for this project). I learned how to use flask, Javascript, databases and fetch, so it was a project to learn things. I’m really proud of the leaderboard in real time but unfortunately I use the free plan of Supabase and Vercel so it can have some lag, but I tried to lower it all I could. I hope you like the mini game!

  • 10 devlogs
  • 19h
Try project → See source code →
Open comments for this post

3h 29m 58s logged

I deployed it in Vercel and Supabase for the database. It wasn’t really hard to do but it was boring and very long to do. I will make small changes and I ship it. :)

0
0
33
Open comments for this post

2h 17m 58s logged

Well, well, well. I thing the project is near to be over. I need to deploy it. I think I’m going to use nest because it’s hard to find a platform that accept databases. I want to move the leaderboard to the left of the score and little details like that but nothing very big

0
0
7
Open comments for this post

3h 2m 7s logged

I added a coin that flips with a CSS animation. I have to say that I love and hate javascript at the same level. I had a LOT of help of Claude and Deepseek for the coin CSS but like always I took my time to understand it and customize it. There’re a few bugs. Apart from the aesthetics, I could say it’s ready but I will change lots of things like always for no reason. I NEED A CLEAN CODE!

0
0
14
Open comments for this post

2h 5m 58s logged

I made the connection between the database and the login. So now you log with your username and is stored in the cookies with the flask session module so if you enter again you have your username automatically set. I need to refactor the hole code because it’s a mess. I have to admit that I used a lot of Claude for this part but I made sure I knew what I was doing. I know I am not doing it the best way but I’ll try to improve the code slowly

0
0
9
Open comments for this post

1h 3m 3s logged

I made the database connection! I used sqlite3 and it was easier than what I thought it would be. I also removed the stay button because it makes no sense: if you want to stay you only need to not to press the double button :v. Now I need to do the login before doing all the css, animations and stuff.

0
0
17
Open comments for this post

1h 39m 57s logged

The main mechanic is done except for the database. I have to figure out how to do it. I thought the game could be like a Russian roulette because is the same idea (the gun shooting the money or something like that?) but I don’t know how to do all this but I will take my time to learn for this project and do a good CSS.

0
0
14
Open comments for this post

56m 17s logged

This is the firs devlog of a larger project. This project will be a web made with Flask (because I don’t know js). The idea is you have a score and you have 50% of chances of double it and 50% of chances you come back to 0 or you can stay with your points. I also want to implement a leaderboard because the funny part is to be the one with most points. I think people like this sort of projects :)

0
0
24

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…