Game of Life
In this simulation of Conway's Game of Life, I've used php as my model which communicated via ajax with my javascript controller/viewer at the browser. It's a loosely configured MVC system. No backbone or any extraneous frameworks, except jQuery for it's postJSON function. The simulation can be seen here: http://themaccreerys.com/gameoflife/ The code is contained here: http://themaccreerys.com/gameoflife/gameoflife.tar.gz Basically, the browser (controller) sends an initial integer value to the server's ajax.php that detects n, integer. Upon receiving an integer, the model created a random game board sized n and returns the board to the view, which puts the board on the screen. The controller sends this new game board array back to the model. Upon receiving an array, the model progresses the game and sends the view an updated board. Repeat... Thank you, this was a fun exercise!
