A Library Of Algorithmic Wonders! banner

A Library Of Algorithmic Wonders!

5 devlogs
12h 5m 13s

A list of fun and interactive mathematical curiosities.

(Originally a different project but I gave up due to some complexities)

This project uses AI

Literally only used AI to generate a template for Readme, every detail other than the headlines is written by me in the Readme. I thought this woudln’t come under declaration but now my ship got rejected.

Demo Repository

Loading README...

Yusuf

Shipped this project!

Hours: 12.09
Cookies: đŸȘ 312
Multiplier: 25.84 cookies/hr

Ok, so I learnt a new language (C++) and coded the first (Very interesting) wonder called The Chaos Game.

In future ships, I will:

  1. Polish Chaos Game, and add the option to change ‘r’
  2. Add more wonders
Yusuf

I converted the whole code to Webview using emscripten, and got a bunch of errors but finally figured it out and hosted the code on a website using Github Pages.
A few final tweak remain but otherwise I am ready to ship the first game in this library. I might actually host this on my personal blog, which is work-in-progress for now.

0
Yusuf

Not much to update, just tried to re-adjust file structure and it was literally brutal, errors after errors and now I have managed to get it working again

I will now try to compile it to web (Which I tried a bit before, was a headache but yeah)

Attachment
0
Yusuf

So I completely broke it, wanted to change some logic to add ‘sliders’, so had to change an array to a vector and even after changing all logic, it just kept breaking, after working an hour or two I got it working and then added a button and GUI.
(Should’ve made git commits, but I haven’t properly set up the repo for git, since it’s C++ and I coded my first line of C++ like 2 days ago)

1

Comments

Yusuf
Yusuf 3 months ago

Um
 I can’t edit it now, please just mute it and watch, I didn’t realize the audio was on, my family was talking in the background.

Yusuf

Ok so I finally got the first simulation working:

The Chaos Game! Here are the rules:

  1. 3 random points are randomly picked anywhere on the screen
  2. A random point is picked completely randomly on the screen
  3. The random point then randomly chooses any of the 3 points and then a new point is added halfway through it.

Using so many randoms, one would’ve guessed that it was a messy pattern but that’s not what happens in the simulation!

Now I will work on adding GUI, ability to change other parameters etc.

(Keep in mind I have NEVER coded in C++ before and this is my first time EVER)

0
Yusuf

Have to do a COMPLETE restart.

This was originally “Interactive Mathematics In Python” but because I was using streamlit with matplotlib, it just wasn’t efficient, I kept running into errors and gave up midway.

I am now using C++ to code, and would not be making a web app. All the best to me.

Screenshot is just the ‘home’ page in streamlit, when it was written in Python, I have scraped it now.

Attachment
0