Skip to content

Commit c0c30c0

Browse files
committed
Changed File Versioning, Removed the old Cell.cs and Celloverseer.cs as well as all unneccessary lines from the Program.cs
1 parent cbd7d59 commit c0c30c0

File tree

5 files changed

+3
-215
lines changed

5 files changed

+3
-215
lines changed

CellSimulator/Cell.cs

Lines changed: 0 additions & 54 deletions
This file was deleted.

CellSimulator/CellOverseer.cs

Lines changed: 0 additions & 114 deletions
This file was deleted.

CellSimulator/CellSimulator.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
<Reference Include="System.Xml" />
4343
</ItemGroup>
4444
<ItemGroup>
45-
<Compile Include="Cell.cs" />
46-
<Compile Include="CellOverseer.cs" />
4745
<Compile Include="Enums\CellActionEnum.cs" />
4846
<Compile Include="Enums\UserActionEnum.cs" />
4947
<Compile Include="Input\ConsoleInputManager.cs" />

CellSimulator/Program.cs

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -9,52 +9,10 @@ namespace CellSimulator
99
{
1010
class Program
1111
{
12-
static void Main(string[] args)
12+
static void Main()
1313
{
1414
SimulationManager manager = new SimulationManager();
1515
manager.StartSimulation();
16-
return;
17-
18-
bool showCellInfo = true;
19-
CellOverseer overseer = new CellOverseer(1);
20-
while (true)
21-
{
22-
if (showCellInfo)
23-
{
24-
foreach (Cell cell in overseer.cells)
25-
{
26-
Console.WriteLine("ID:" + cell.id + "|AGE:" + cell.age + "|FOOD:" + cell.food + "|ENERGY:" + cell.energy + "|ACTION:" + cell.lastAction);
27-
}
28-
}
29-
Console.WriteLine("ALIVE:" + overseer.cells.Count());
30-
string commandEntered = Console.ReadLine().ToLower();
31-
if (!string.IsNullOrEmpty(commandEntered))
32-
{
33-
switch (commandEntered)
34-
{
35-
case "save":
36-
overseer.SaveToFile();
37-
continue;
38-
case "load":
39-
string fileName = Console.ReadLine();
40-
if (string.IsNullOrEmpty(fileName))
41-
{
42-
continue;
43-
}
44-
else
45-
{
46-
overseer.LoadFromFile(fileName);
47-
}
48-
break;
49-
case "switchshowinfo":
50-
showCellInfo = !showCellInfo;
51-
break;
52-
}
53-
}
54-
55-
overseer.SimulateNext();
56-
Console.WriteLine();
57-
}
5816
}
5917
}
6018
}

CellSimulator/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
3333
// übernehmen, indem Sie "*" eingeben:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]
35+
[assembly: AssemblyVersion("1.0.*")]
36+
//[assembly: AssemblyFileVersion("1.0.0.0")]

0 commit comments

Comments
 (0)