This is a project for the 6th week of siege, the theme for this project is "magic" and hence this is a magic 8 ball. What does it do? well, just type in your question, and it will give you a morally ambigious answer. Upon noticing what "official" answers the 8 ball gives, I noticed they are phrased in such a way, and they can literally answer any question... Seriously, it's just an advanced form of "yes", "no", and "I dont understand".
But, anyways, you are the magic 8 ball, and you've gotta help timmy in his chemistry exam. I used a bit of ai for timmy's dialogues (only to jazz it up a bit), seriously I can't think up of all the scenarios now can I?
- none really, I didn't use this section much for this project...
-
6 Oct 2025
- Created repository and cloned it
- Made the basic files required, index, styles, main, and answers-data
- Added random answer selector to questions asked, along with a answers-data sheet
- Added a phraseword.
- Added dialogue box, so that it shows up after I've typed in the specific phraseword
-
7 Oct 2025
- Added await lines
- Basically, the user will need to press enter, space, or click the screen for the dialogue to go forwards
- This is only for when they are in the potion making thing
- Added potion scenes
- 1/4th of bottom screen is the table
- 3/4th of the top screen is the wall
- 1/4th of the bottom screen is the dialogue box for the 8ball, maybe jazz it up a bit so that it looks like an actual dialogue box?
- Added dialogue explanations for colour theory
- Used ai for this, seriously you expect me to somehow make colourtheory for babies? come on....
- Added await lines
-
8 Oct 2025
- Added colour palette
- Drag sliders should help in adjusting the amount of colour added, no?
- Improved dialogue for the potion making scenes
- Should also add a skip functionality or something, dunno...
- Added colour palette
-
9 Oct 2025
- Removed all code.
- Added a logic tree
tree.js - Added a center "orb" that's the window to look outside the 8ball
- On the center, there should be a card which is what the people as the 8ball
- The user is the 8 ball, I should mention it prolly
- Added options and all for the 8 ball questions
- Dialogue for timmy and a full tree
- Trying to add endgame dialogues, as to what timmy did and all
- Also, trying to shorten the dialogues cause I dont think I wanna code a variable speech card that changes shape wrt the dialogues.
- Options should change and effect future dialogues?
-
10 Oct 2025
- I dont think I did anything, and if I did, then I forgot to put it here probabaly. But, my wakatime was 20 mins yesterday so probably nothing much.
-
11 Oct 2025
- Added more dialogues for timmy
- Has some more sad endings, like a junkie and asylum, many more.
- Made it so that the options fade out/in as well, makes it seem less clunky
- Added a warning at the very start, jsyk
- Dialogue box pop's up when you open the website, telling you some warnings
- Click yes and you can continue as usual
- Click no and...
- Added more dialogues for timmy
-
12 Oct 2025
- Changed the theme a bit, to be more "blueish"
- Default buttons should use blue gradients
- Yes button in start dialogue is blue toned
- Added a custom scrollbar
- Was trying to fix the text problem, where it sometimes becomes too small to read, but... I'm not gonna dwell too much on it
- Changed the theme a bit, to be more "blueish"
-
18 Oct 2025
- Deleted unused files, no need for junk
- Changed a few comments, got a warning cause they looked ai generated
- Changed the embers so that they are of the accent of the option rather than a single colour
- Updated scrolling so that it doesn't get stuck and properly scrolls even if the text is outside the designated seeker box
- Added a "view Github repository" button at the very end
This project got rejected because of suspicion of usage of AI, and I completely understand the reason as I am sure there are a lot of fraudsters out there wanting to take advantage of such opportuinities. I just want to say that I haven't used AI any more than 10% (max 20%) for this project, but it is still understandable given how I code (considering how most of it I have learnt from books or ai). So, here's a few things I make sure of when codingg
- I make sure to give functions proper names, this helps me in recognising the use of them in debugging and understanding where an issue arrives, if any.
- I also add a lot of comments into my code, this is mainly due to [Uncle Bob Martin] [https://x.com/unclebobmartin] who's courses I have seen on [clean code] [http://cleancoder.com/products], in which he highly recommends one to properly name and comment on the code, to ensure that if someone, or they themselves return to it, then they can understand it's purpouse. Otherwise, I probably wouldn't be able to know what a function does if I revisit this a year later, unless I really remember this.
- When checking the commmits you may see 2 names, "ChefYeshpal" and "valkarie", both are my own devices just that on is linux and the other a mac, my linux workstation is currently giving issues (randomly power offing) hence most of my work is being done my mac. So ofc I'm not doing double teaming with anyone (not like I have any coding friends anyways :p)
So, just as an end note, thanks you guys, and I completely understand the paranoa one can have.