IN101 project on Conway's Game of Life
Functions
naive_loader.h File Reference

Header file for the naive implementation of Conway's game of life loader. More...

#include <stdio.h>
#include <stdlib.h>
#include "naive_universe.h"
Include dependency graph for naive_loader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

universe naive_conway_load (char *data_filename)
 Parse a text file into a universe structure. More...
 

Detailed Description

Header file for the naive implementation of Conway's game of life loader.

Author
Victor Colomb (vic.c.nosp@m.ol@h.nosp@m.otmai.nosp@m.l.fr)
Date
2021-02-22

Naive implementation of the Conway's game of life:
The universe's size if given and constant.
The universe state is recorded using a character list (string) following the convention . for dead and o for alive.

The loader takes a text file following the format:

API

Function Documentation

◆ naive_conway_load()

universe naive_conway_load ( char *  data_filename)

Parse a text file into a universe structure.

Parameters
data_filenamesource text file filename
Returns
the corresponding universe structure