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

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...

Open comments for this post

10h 30m 10s logged

I Guess I Fixed It???? IDeK Tbh…

What has been done?

  • Created a sorting function that iterates throughout a csv-list using a “shell sorting” (nesting) method (inspired by the YouTube short: https://youtu.be/RDFGkBE2O50?si=yXnJloCW18_o94bB ).
  • Created the visual display of the leaderboard for the terminal game (using the body_text() helper function that I made earlier.
  • Started to try to create a function that takes the integer values that are to be displayed on the leaderboard, and inserts in commas where appropriate:
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).

So, what’s next?

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! :bongoblobcat: )
-Ta!

0
0
15
Open comments for this post

5h 1m 25s logged

Brain Implosion Score: 8/10 :neocat_floof_implode:

Honestly, I have not been having much fun lately… Lots of errors for a single function that should be relatively simple! :simple_dino:

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? :dino-drake-nah:

NO. IT. IS. NOT! :blobfoxbongoterrified:

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.

So, how many areas were there?

LIKE 50 MILLION LINES :sob-hole:

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 😭 …

Please send some coding help… I need it…

(You can check out the menu_terminal.py files on my GitHub under the terminal branch, function: open_leaderboard()).

Don’t forget to say hi to BongoCat! :bongoblobcat:

-Ta!

0
0
7
Open comments for this post

47m 46s logged

Bit of an update again!

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 is my plan going forward?

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!

Don’t forget to say hi to BongoCat! :bongoblobcat:

-Ta!

Here is a little snek-pek on the first iteration of the HTML version:

0
0
16
Open comments for this post

16m 12s logged

I am beginning to question my sanity… :crazy-cat:

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.

Soooo… I think I’ve gone mad!

I am going to start (attempt to at least, might need a bit of AI help :sob-ios: ) to port everything across into something like Tkinter…

This might go terribly…

Say hi to BongoCat! :bongoblobcat: !

0
0
14
Open comments for this post

1h 1m 50s logged

The “Stock” Market

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

Creation of the base system:

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 :sweat-hole: , 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!

What I have right now:

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 :explosive-catto:

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 :sob-hole: ).

So please wish me luck D:

I hope my brain doesn’t decide to spontaneously combust!

Say hi to BongoCat! :bongoblobcat:

-Ta!

0
0
23
Open comments for this post

39m 25s logged

Just a quick update on the game:

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.

(Say hi to BongoCat :bongoblobcat: !)

Much more to come! And hopefully some actual game content (maybe a mini simulated stock-market :blobfoxsuprised: !).

-Ta!

0
0
36
Open comments for this post

1h 4m 9s logged

So far,

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(:blobby-flower_playing_cards: ) when checking to minimise accidental account duplication accidents). :windup_1:

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) :wave-gradient:

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, :dance_catgirl: 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! :danceblobnom: :wave-pikachu-2:

0
0
14
Open comments for this post

2h 50m 56s logged

Initialisation of IDeK!

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!

What Do I Have Right Now?

Aside from “main.py”, there are currently a few other notable files:

  1. “functions.py” - which holds the python functions that are used in main,
  2. “gen_pass.py” - Which was an AI generated python script to quickly generate 50 random “passwords” from merging a list of words, creating the file: “pass_list.csv”, and lastly,
  3. “user_pass.csv” - which serves as a temporary CSV file for storing some user data for the game.

Something Really Cool!

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’)”.

The final product?

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…

“I Don’t even Know” :wink-hole:

0
0
12

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…