the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2#include "Synth.h"
3
4doubleArray Synth::create(int width, int height)
5{
6 doubleArray result = doubleArray(width * height);
7 for (int y = 0; y < height; y++)
8 {
9 for (int x = 0; x < width; x++)
10 {
11 result[x + y * width] = getValue(x, y);
12 }
13 }
14 return result;
15}