Learning Python + Gamble game

Learning Python + Gamble game

12 devlogs
38h 18m
•  Ship certified
Created by DuckyBoi_XD

In this project, I learnt how to code in Python and create a Python package to play the game I made using what I learnt.

Timeline

Ship 1

0 payouts of shell 0 shells

DuckyBoi_XD

17 days ago

DuckyBoi_XD Covers 12 devlogs and 38h 18m

I fixed an error when using CTRL+C to exit the game. I adjusted some code and tested it on Windows. I wrote some PyPI installation instructions, but I doubt it will be much help. (I somehow removed my older hackatime file of the original one in the code tunnel, so I'm using another one)

Update attachment

I wrote a bit about what I was thinking of doing in my readme. To sum it up, I don't think I should continue making the game in Python due to its complexity with being compatible with the website functions. I decided to move away from Python and start learning JavaScript, HTML and CSS. I also spent a lot of time trying to configure the pip for my mini game to use as a demo.

Update attachment

I didn't do much today because I rested for a large portion of the day. I tried to use the pygame and pygbag, but I found it really difficult to do. I wrote a bit explaining my mini game and left it there.

Update attachment

I tried to import pygame and try to make the web app, but I didn't really do much (deleted everything)

Update attachment

I finished the mini game called Lucky Room. Today I completed the last 3 games (it's easier to write them because of previously structure of other game). I also did some polishing with adding a wallet feature, exit functions, and author message. I tried to check for most of the errors by testing it so I hope I got most of them. I might try to make it into a quick and skuffed desktop game but for not the code is finished in its v1 stage.

Today, I continued on my mini game. In the last devlog, I said I would post more devlogs. I also said that I'll post my next devlog after I finish the dice roll and coin flip. I overestimated how hard it would be, and I decided to finish today's session by finishing the dice roll code. I got my dice roll game to work and secured it with a bunch of conditions so it's really difficult to break it (I hope).

Update attachment

I finished my learning stage and briefly explained the very basic parts of Python in my README. I finished the for loop, while loop, function, try-except and PIP. I plan to learn other parts along the way because I doubt if I learnt it at this stage, I would remember. I start on my mini game, where it's pure luck, and I've already learnt some new stuff like input() . Currently, I'm really excited to continue on and create a functional game. I think I should be doing more devlogs instead of doing one at the end of each day. So, I'll do my next one once I finish the first 2 luck games (dice roll and coin flip).

Update attachment

I did SO MUCH WORK today. I finished the list of tutorials and moved on to statements like if, elif and else. I also finished up the match function, which is so useful that I was amazed. I fixed up some small errors with the read me and read through a bit of some tutorials I skipped due to their complexity and uselessness. P.S. I had a heart attack when I found my time reset for SoM, but it might have been a syncing issue, but some kind people from SoM Support tried to help fix. Thank you, Shreyas and Ambe!!!

Update attachment

I added more information for my README to give a better idea of what I'm planning to do/achieve.

Update attachment

I finished casting (pretty simple, just changing data type) and almost finished string tutorials. I currently working on explaining and understanding the methods and different functions in string. I should try to make a small little game to make sure I understand all the mechanics I learnt

Update attachment

I learnt a lot more about Python's code. I understood the different kinds of data types there are, and looked through the thorough explanation of the numerical data types. Through this, I found a module reference to the random function. This would be perfect for my gambling game project. I followed through the reference sheet like it was a tutorial, noting and showing my understanding the my learn.py files in my repo. I have finished the random function reference, and I'm about to start the next part of the tutorial, casting.

Update attachment

I learnt a bunch of things in Python like 'print', variables, syntax (only if statements) and comments. I showed my understanding and explained each part in my learn.py file in my repo.

Update attachment