Concurrent computing coursework · 2022

Distributed Game of Life

I implemented Conway’s Game of Life in Go and deployed it on AWS. The client sent the board over RPC, and the server calculated updates for assigned row ranges.

Explore the exhibit

One board, three row ranges

Scrub through the generations. The rules use neighbours from the whole board, including cells across the highlighted row boundaries.

Scroll or swipe sideways · Arrow keys to scrub · Space to pause or resume

Generation 00Live cells 18

Halo exchange

To update their boundary cells, two neighbouring workers can swap just their touching rows. A’s bottom row becomes B’s top halo, and B’s top row becomes A’s bottom halo. Each halo is a read-only copy from the previous generation.

Scroll or swipe sideways · Arrow keys to scrub · Space to pause or resume

Read the previous generation

A cell’s eight neighbours determine its next state. The exhibit reads every row from the same generation and wraps the edges, so patterns can cross both strip boundaries and the edge of the board.

Send work over RPC

The Go client sends the board, a worker number and the requested turn count. The server uses the worker number and thread count to determine which rows to calculate.

Make progress visible

The client queries the running server for live-cell counts while it waits for the turn request to finish. The browser exhibit illustrates the row calculations and shows its own generation and population counters.