Simon is talking about various shapes having various number of dimensions, which, oddly enough, doesn’t have to be a whole number. Based on maths tutorials on 3Blue1Brown channel, that Simon has been watching a lot over the past several days.
He also created an account on the library website, but couldn’t figure out how to create a new project. We should look at it together this week when I finally have more time.
These are two small videos of Simon trying the D3 library out:
This weekend Simon told me he came up with this rule that if you take two denominators that make rational fractions when you divide one by those denominators and you multiply them together, you always also get a denominator that makes a rational fraction:
Simon built a program in Codea visualizing the absolute value of a vector:
We continue reading the Russian adventurous math books by Vladimir Levshin (1904-1984) – see an older post about it – and Simon is often excited about the challenges discussed. This time however, he first thought that something was impossible (and the Russian book said that, too), but our amazing favourite Murderous Math thought otherwise! It was one of the three oldest “unresolved” problems in the world, about how to double a cube (and let it remain a cube), which basically boils down to “how to draw the cube root of 2”:
Some more unrelated notes that Simon made recently, while listening to the Russian adventurous math book:
Note: See the update at the bottom of this post!
Simon’s game is online at: https://simon-tiger.github.io/Game_SteeringBehaviorsEvolution/SteeringBehaviours_EvolutionGame_p5/
In the videos below Simon shows how he made the game. It’s an ecosystem type of genetic algorithm (with no generations), where the organisms (autonomous steering agents) clone themselves. The autonomous steering agents evolve the behavior of eating food (green dots) and avoiding poison (red dots). Simon added two invaders into the game, one giving food and the other randomly spreading poison. The player can control the “good” invader by moving him and making new food. The goal of the game is to make the agents survive for as long as possible.
The Processing (Java) version:
The thinking behind the game (Simon explains everything at the whiteboard):
In the last video, Simon talks about his problem with the p5 element.
Evolutionary Steering Behaviors game seek algorithm part 1. DESIRED equals TARGET minus POSITION:
Evolutionary Steering Behaviors game seek algorithm part 2. STEERING equals DESIRED minus VELOCITY:
UPDATE: When Simon saw Daniel Shiffman’s comment on Slack this morning (Daniel saying Simon did a fantastic job and that he might even include Simon’s game in the next Live Stream), he sat down and applied the bind function as suggested by his older peers above – without any incentive on my behalf! And it worked! I think we’ve hit a true milestone again. Simon has this growing feeling that he’s got friends out there, his tribe, who understand and who are ready to help.
One day later: Simon had another chat with his friends on Slack and got a lot of help with the last remaining small bug in his game (the New Game button didn’t start a new game if the player had chosen to play with no timer but jumped to Game Over instead). In the video below, Simon shows how that problem got solved:
A set of awesome Codea tutorials that Simon recorded for those who are just starting to program in Codea. Simon ported examples from Processing (java) into Codea (Lua):
In the second tutorial (in two parts), Simon explains how to write a physics simulation program in Codea using forces like gravity, friction and spring force. Anyone watching will get to use some trigonometry and see what arc-tangent is for! The original code in Java comes from Keith Peters (Processing).
Here are some notes from when Simon was explaining the arc-tangent to me the other day:
This is a sound synthesis project that Simon created using p5 references. It’s quite intense sound, so maybe you should turn the volume down a notch. It’s funny how Simon is now writing sound programs similar to those used in the LittleBits synthetic sound circuits – something he got for his 7th birthday almost a year ago. Amazing to see how much he has learned in one year.