Skip to content

Parallel Implementation

In this stage, you are required to write code to evolve Game of Life using multiple worker goroutines on a single machine.

The following pages are some suggested steps to help you get started, you are not required to follow them.

Your implementation will be marked against the success criteria outlined here.

Step 4

Step 4

Implement logic to output the state of the board after all turns have completed as a PGM image.

The output logic is very similar to the input logic from Step 1. Again, look at the file gol/io.go for the implementation details.

Test

To test your implementation, type the following in the terminal.

bash
go test -v -run TestPgm