Coding, Contributing, JavaScript, Milestones, Server Side Programming, Simon's Own Code

Question Bot

Simon has built a question bot that will collect questions on The Coding Train Discord so that Daniel Shiffman can answer them during the following live session.

This is something Simon worked on for days and he was thrilled to be able to present a working bot to Daniel. The only issue that remains unresolved is whether the mods should control the bot via a secret password or should a more advanced security system be developed. Daniel has decided to take a long break from live streaming, so the whole project probably won’t be revived until the streams resume. In any case, as Simon has put it, “I know, it’s messy, but it works. And that’s what’s important to me”.

Simon has also created several other bots (and built a separate Discord playground where other people can test their bots as well). He has been doing quite a lot of server side programming lately.

The code is on GitHub: https://github.com/simon-tiger/Question-Bot

The website is on Heroku: http://questionbot-discord.herokuapp.com/

Simon’s “question-answering round” Discord bot is a clone of CJ (Coding Garden)’s VOX system.

Coding, Community Projects, Contributing, Curent Events, Experiments, Geography, JavaScript, Milestones, Murderous Maths, Notes on everyday life, Philosophy, Simon makes gamez, Simon teaching, Simon's Own Code, Simon's sketch book, Social Studies, Thoughts about the world

How Can Math Help Resolve Racial Segregation?

This is Simon’s contribution to #blacklivesmatter

How Can Math Help Resolve Racial Segregation? This video and coding project is based on Segregation Solitaire by Thomas Schelling, an American mathematician and economist who was awarded the 2005 Nobel Memorial Prize in Economic Sciences for “having enhanced our understanding of conflict and cooperation through game-theory analysis.”

I don’t like the name ‘Segregation Solitaire’, so I call it Schelling’s Game. This is also inspired by the famous Parable of the Polygons playable essay on the shape of society by Vi Hart and Nicky Case: https://ncase.me/polygons/

Simon binge reads Nicky Case’s essays and has made several remixes of their projects, all the more timely, considering today’s context.

Simon’s interactive version: https://editor.p5js.org/simontiger/present/mWwl1GsTe

Simon’s code: https://editor.p5js.org/simontiger/sketches/mWwl1GsTe

Crafty, Math Riddles, Milestones, motor skills, Murderous Maths, Notes on everyday life, Simon makes gamez, Simon teaching, Simon's sketch book, Together with sis, Writing and calligraphy

The Grand Quadratic Formula Quiz!

Simon has been pondering a lot about various ways to visualize or prove the quadratic formula.

He eventually came up with a 4-meter-long quiz sheet, slowly revealing the logic behind the quadratic formula as one solves the 9 problems one by one. Simon borrowed the actual problems from Brilliant.org but reworded some of them to match his personal style, writing all of them down in his beautiful handwriting on large sheets of paper taped together to form a road to the quadratic formula. The answers were hidden under crafty paper flaps. We had a lot of fun traveling down this rabbit hole as a family, Neva stuck around solving the tasks until half-way through.

It took Simon two days to make the quiz
He covered the questions with extra sheets of paper and removed them as we solved the problems one by one.
The first two questions solved.
Neva solving an equation
Almost there!
Coding, Good Reads, history, JavaScript, Milestones, Notes on everyday life, Set the beautiful mind free, Simon teaching, Simon's Own Code, Social Studies, Thoughts about the world

Simon’s remix of one of Nicky Case’s playable essays

If you’re interested in why #covid-19 tracing apps are important and the most privacy-friendly way to implement them, please read this interactive essay by Nicky Case and play with the colorful simulations of all our possible futures. For Simon, this has been the entrance into the Nicky Case @ncasenmare universe (first recommended by 3Blue1Brown). Simon has been gulping down the playable essays on human networks and the spread of complex ideas, self-synchronization in nature, the shape of society and several other burning themes (like coming out and anxiety) and watching Nicky Case’s talks, like this one. Nicky is a self-made indie artist, programmer and writer making very edgy, very 21st century multimedia products that are both profound in content and have an engaging/interactive interface. It’s as if reading an informative piece is turned into a game. And that’s exactly what Nicky stands for: learning through play and messing about. Maybe that’s why Simon has embraced his works so eagerly, Nicky has proven to be one of those perfect matches for our self-directed learning style.

Simon has made a remix of Nicky’s Evolution of Trust, an iterated prisoner’s dilemma: https://editor.p5js.org/simontiger/present/oOurTdGWT

Simon’s code: https://editor.p5js.org/simontiger/sketches/oOurTdGWT

Coding, Geometry Joys, Group, JavaScript, Milestones, Murderous Maths, Simon's sketch book

Dissecting Polygons

Every polygon can be triangulated into exactly n-2 triangles. So you’ve got the triangulation theorem and the totally opposite theorem in the math universe, Girard’s theorem (the formula for the era of a spherical triangle). I’m going to attempt to put these two together to prove Euler’s polyhedral formula (also known as Euler’s characteristic) V – E + F = 2.

A week later Simon and a friend of his from Germany worked together for several hours, writing a program to cut polygons. It’s still unfinished but is already fun to play with: https://editor.p5js.org/simontiger/sketches/YxNUp5rdJ

Coding, Group, JavaScript, Milestones, Notes on everyday life, Server Side Programming, Simon's Own Code, Uncategorized

Simon made a discord bot

Last Tuesday, May 19, was somewhat a historic day as Simon created his first Discord bot (actually, two bots: one that does polls and count-downs and another programmable one that sends messages). In order to make the bots work, Simon first made a new server called a “bot playground”.

A screenshot of our desktop terminal where Simon ran the code using Node. “I ask the bot to put Beep boop. Boop beep? when it’s ready, just so I know when it’s ready.”
Simon wrote the actual bot code in JS, giving each bot an .env file “where I store all my secret stuff” and “a package.json file to keep track of all the dependencies like libraries”.
Simon’s bot doing the countdown and then saying Happy New Year! followed by Just kidding.

Simon and a friend also practiced in hacking each other:

And finally, he found himself in the centre of a great prank: everyone in his group of friends who wasn’t called Simon changed their names to something containing Simon and all the Simons in the group became Gregs:

Coding, Community Projects, Contributing, JavaScript, Math and Computer Science Everywhere, Milestones, Murderous Maths, Notes on everyday life, Simon makes gamez, Simon's Own Code, Together with sis

Spring Challenge 2020 PacMan in p5.js

Simon has recreated the CodingGame.com’s Spring Challenge 2020 PacMan game in p5.js to be able to work on the AI versions after the spring challenge has finished.

Link to Simon’s PacMan Game version featured in the video (playable for two players on the same keyboard): https://editor.p5js.org/simontiger/present/k9PDqMeew

Simon’s code for this version: https://editor.p5js.org/simontiger/sketches/k9PDqMeew

The PacMan is built on top of a Maze Generator, here’s an example of one of Simon’s maze generators and solvers: https://editor.p5js.org/simontiger/sketches/vj75cHYkf

Simon had been taking part in the Spring Challenge 2020 for several days and reached bronze level.

However he quickly realized that the 11 days of the competition felt too cramped for him to try various algorithms and still be able to work on his other projects. So what he did was recreate the whole PacMan game from scratch in p5.js, so that he has an “archived version” of the challenge and can play with new AI versions later.

Geometry Joys, Milestones, Murderous Maths, Notes on everyday life, Simon's sketch book

Formula for e

Simon’s project in online at https://www.geogebra.org/classic/j29phpus
the second part of Simon’s project: https://www.geogebra.org/classic/wym3kvxf

I’ve worked out a formula for e!


This came up when I was looking for an antiderivative, if n isn’t equal to 1:

if n is equal to 1, then it’s suddenly a natural log!

But I’ve realized that if I change it only a tiny bit, it becomes a really famous existing formula for e:

Still impressive that you have worked it out all on your own, Simon!