The "I Don't even Know (IDeK) Game"
- 8 Devlogs
- 22 Total hours
Tbh, even I am unsure what this is... A game? Or a story? Or even a memory... I guess we will see where it takes us...
Tbh, even I am unsure what this is... A game? Or a story? Or even a memory... I guess we will see where it takes us...
body_text() helper function that I made earlier.def format_numbers_2(orig):
string = str(orig)
split_curr = list(string)
split_check = list(string)
while len(split_curr) > 3:
split_curr = split_curr[:-3]
split_check.insert(-3,",")
return "".join(split_check)
Which only works some of the time…
(It still needs a lot of work…)
Honestly, I have been strugling with this function, but I think the issue with why I have been unable to get it to work correctly, is because I have not been planning enough around the logic beforehand (Which is my aim going forward).
Pretty much just getting this comma function working, so that the leaderboard display doesn’t look like this!
----------- Welcome, Test User -----------
Cash Leaderboard:
1. four - $21212314.0
2. hill - $5040.0
3. ardangeorge - $5000.0
4. test - $2323.0
5. Ardan George - $502.06
------------------------------------------
Anyway, thanks for reading!
(And don’t forget to say Hi to BongoCat!
)
-Ta!
Honestly, I have not been having much fun lately… Lots of errors for a single function that should be relatively simple! 
All it needs to do is read each row from a CSV file and order the rows in a list by ascending value for a specific column in the rows.
Easy? Right? 
This has taken me around 5 hours already! Just to get to a stage where I have finally given up, and have given my AI agent the function and asked it to locate each area that is not working.
LIKE 50 MILLION LINES 
I honestly do not have the brain-width to handle this right now, so I am just going to log my progress and go and vegetate while watching some YouTube now 😭 …
(You can check out the menu_terminal.py files on my GitHub under the terminal branch, function: open_leaderboard()).
-Ta!
I have ended up switching from just a python Tkinter window version of the command-line game, and instead have switched to a website HTML based version. This will also make it much easier for me to be able to write a lot of the code myself compared to Tkinter.
What I think will work best with my coding experience is for me to continue to write in the new features for my game as if they were still in terminal-format, and have AI transform it into the HTML version. This way, I still preserve my originality of ideas and code, but significantly widens the opportunities for further interactivity for my game!
-Ta!
Given the nature of a “stock” market mini-game such as the one in my game, I am beginning to think that perhaps the command-line is not the best place to be interacting with this in.
I am going to start (attempt to at least, might need a bit of AI help
) to port everything across into something like Tkinter…
This might go terribly…
!
Please note that any values or labels in this game are in no way representative of any real-life item, market or currency, and are purely theoretical and random numerical values generated for the sole purpose to be used for this game
So far, (And it’s been a bit of a struggle), I have begun to lay out the foundations of the “stock” market system for my game, where players can invest in 3 different “risk levels” with differing characteristics to gain (or lose) currency (not yet implemented).
I have spent a bit of time on GoodNotes on my iPad, writing out a plan and description of the features and characteristics of the “stock” market, as well as I have begun coding the “market.py” file that will handle the market functions that can be referenced from “main.py”.
This has not gone very well
, and my progress has slowed. Just the basic functions of the market system are beginning to seem very complex, with a lot of csv retrieval based off conditional statements and checks, calculations performed off specific rows, and logic statements that are making my head hurt!
Pretty much, I have created the functions to initialise the 3 different “risk levels” with random values (using random.uniform for float values for cents), and begun the function that causes market changes (will be executing every 3 seconds or so) by calculating changes based off conditions surrounding the previous few market values for each “risk level”.
Whilst this may seem simple enough, the need to keep searching the csv file for “risk”-specific rows, is causing my brain to begin imploding 
I think it is coming along well, but I fear that this will take a decent amount of time to complete just this one function (and then I have to do purchasing and selling
).
-Ta!
I have just fixed a small bug with the “get” type of the “csv_actions” function that was not accurately looping through all entries to locate the correct row. But that has now been fixed luckily.
Also just touched up the “body_text” function (which is the main handler for all the text printing) to accept an option parameter “timing” that can be used in the typewriting effect type to change alter the speed for debug and testing purposes.
The function has a default value of 0.5 seconds so that the code will still run as normal if a valid value is not entered into the terminal.
!)
Much more to come! And hopefully some actual game content (maybe a mini simulated stock-market
!).
-Ta!
I have now completed the user account creation process for new users, and also added log-in capabilities for users that enter a pre-existing username into the game (uses .lower(
) when checking to minimise accidental account duplication accidents). 
I have also increased the csv function capabilities, with a new “check” and “get” branch, that supports checking an input to see if it exists in a specific column in any csv, as well as returning a row that has a matching column value that is inputted (is flexible and allows you to modify the input when the function is called to change the scope or target of the location and retrieval) 
A lot of my functions and processes for my game are now soft-coded, and are very versatile and malleable for different uses going forward with the project, which will continue to be a great benefit for both my coding experience and code readability!
Additionally, I have also begun to use ANSI escape sequences in my print statements so that I can utilise font styles.
Also,
really cool thing this! I found online a python function snippet that actually allowed you to replace your inputted text with hashes or any other character instantly as you type it, allowing me to recreate a sort of privacy guard when users are inputting their passwords to log-in! 🔥
Thanks for reading!

Hmm…
It is interesting how the mind works, you begin with one idea… and suddenly find yourself a hour later working on something completely different…
This has been me!
What began as a project to create a mod for the Steam game: “BongoCat” for a friend turned into a terminal python-based game project!
So far, I have started creating the introduction phase/stage of the game, beginning by asking for the user to enter a name, and then has some animations.
Initially I was just going to hardcode everything in, including the print statements, but then I thought: “Hey! Why not turn this mini project into a learning experience and try out writing function files that I can use throughout the project by softcoding them!”
And I did!
Aside from “main.py”, there are currently a few other notable files:
I ended up falling down into a little bit of a “rabbit-hole” sort of situation here. And spent some time working on expanding my main print function to include a really cool print effect that mimics a typewriter-animation.
To do this, I ended up using two nested “for i in range()”’s, and a function that runs “os.system(‘clear’)”.
A softcoded function that can be parsed any string or line of text to display with that printing animation!
Really cool stuff ngl! And I shall continue to expand the content (hopefully I will actually have something for players to do by next dev-log, but tbh…