samedi 10 décembre 2016

OCaml 2D array for Game of Life

I'm trying to do Conway's game of life for practice, since I've done this before in C++, but I was wondering how I could generate a 2d array given an height and width in Ocaml with randomly assigned spawns based on a given population density. All the tutorials I found online have been using graphics or some other hard coded way (i.e rosetta code), but I would like to try and avoid that. Thank you.




Aucun commentaire:

Enregistrer un commentaire