Dynamics Visualizations

canvas, game theory, html5, javascript

As part of my teaching and research, I often dealt with the behaviors of populations playing game-theoretic games under dynamic rules. To help better understand how this worked, I created a tool to visualize two-player game dynamics.

The Technology

The first version of this tool was written in Java and embedded in a web page as a Java Applet. As the support for that declined among browsers, I rewrote it using javascript and html5 canvas elements to display the results.

The working version is entirely run in the browser. The page transitions are handled by the Sammy javascript library. Trajectories are calculated from my dynamics library using techniques like Runge-Kutta to numerically estimate the solutions of differentail equations. The results are drawn onto html5 canvas elements.