The Nature of Code Forces example translated into Lua

Another translation involving the Codea app, only this time Simon decided to translate an example from Daniel Shiffman’s book The Nature of Code (Java) into Lua. The example comes from … Continue reading The Nature of Code Forces example translated into Lua

Simon translated Attraction and Repulsion Forces Coding Challenge into Java

Simon translated part of the Attraction and Repulsion Forces Coding Challenge from JavaScript into Processing (Java). In the first video below he explains the formulas for attraction and repulsion forces: … Continue reading Simon translated Attraction and Repulsion Forces Coding Challenge into Java

MotorAttractor with Box2D in Processing (Java)

In this project Simon combined two exercises and one example from Daniel Shiffman’s Nature of Code book, Chapter 5 – Physic Libraries. The specific physics library used here is Box2D. … Continue reading MotorAttractor with Box2D in Processing (Java)

Nearest Neighbour Coding Challenge. Euclidean Distance.

The notes above are from a couple days ago when Simon was trying to explain to me, where the formula for calculating similarity s = 1/1+c comes from. He linked it … Continue reading Nearest Neighbour Coding Challenge. Euclidean Distance.

Polar Roses in JavaScript

Simon created an engine that uses trigonometrical (polar coordinates) formulas to produce beautiful roses. He reproduced the code originally created by Daniel Shiffman from memory and searched for the formulas … Continue reading Polar Roses in JavaScript

Random Walker Puzzler. Diffusion-Limited Aggregation (Simon’s own code)

In today’s project (partly based upon Daniel Shiffman’s Diffusion-Limited Aggregation Coding Challenge), Simon attempted to combine the generative algorithm “Diffusion-Limited Aggregation” (DLA) and an IQ Puzzler game. As DLA visual pattern is … Continue reading Random Walker Puzzler. Diffusion-Limited Aggregation (Simon’s own code)

Simon translated Travelling Salesperson Coding Challenge from JavaScript into Processing (Java)

On Tuesday and Wednesday, Simon ventured upon a serious quest – he translated Daniel Shiffman’s multi-part Traveling Salesperson Coding Challenge from JavaScript into Processing (Java). The travelling salesman problem (TSP) asks … Continue reading Simon translated Travelling Salesperson Coding Challenge from JavaScript into Processing (Java)