Added 3D Variant, still nedds improvment
This commit is contained in:
39
GameOfLife3D/GameModel/GameOfLifeModel.cs
Normal file
39
GameOfLife3D/GameModel/GameOfLifeModel.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace GameOfLife3D.GameModel
|
||||
{
|
||||
internal class GameOfLifeModel
|
||||
{
|
||||
private int X_DIM,Y_DIM,Z_DIM;
|
||||
public GameOfLifeModel(int SizeX,int SizeY,int SizeZ) {
|
||||
Map = new(SizeX,SizeY,SizeZ);
|
||||
X_DIM = SizeX;
|
||||
Y_DIM = SizeY;
|
||||
Z_DIM = SizeZ;
|
||||
}
|
||||
|
||||
public GameOfLifeModel(int Size)
|
||||
{
|
||||
Map = new(Size);
|
||||
X_DIM = Size;
|
||||
Y_DIM = Size;
|
||||
Z_DIM = Size;
|
||||
}
|
||||
private GameOfLifeModel() { }
|
||||
|
||||
public Map Map { get; init; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public void Update()
|
||||
{
|
||||
Map.Update();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user