Skip to content

Commit

Permalink
Changed File Versioning, Removed the old Cell.cs and Celloverseer.cs …
Browse files Browse the repository at this point in the history
…as well as all unneccessary lines from the Program.cs
  • Loading branch information
BotMaster3000 committed Mar 25, 2019
1 parent cbd7d59 commit c0c30c0
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 215 deletions.
54 changes: 0 additions & 54 deletions CellSimulator/Cell.cs

This file was deleted.

114 changes: 0 additions & 114 deletions CellSimulator/CellOverseer.cs

This file was deleted.

2 changes: 0 additions & 2 deletions CellSimulator/CellSimulator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Cell.cs" />
<Compile Include="CellOverseer.cs" />
<Compile Include="Enums\CellActionEnum.cs" />
<Compile Include="Enums\UserActionEnum.cs" />
<Compile Include="Input\ConsoleInputManager.cs" />
Expand Down
44 changes: 1 addition & 43 deletions CellSimulator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,52 +9,10 @@ namespace CellSimulator
{
class Program
{
static void Main(string[] args)
static void Main()
{
SimulationManager manager = new SimulationManager();
manager.StartSimulation();
return;

bool showCellInfo = true;
CellOverseer overseer = new CellOverseer(1);
while (true)
{
if (showCellInfo)
{
foreach (Cell cell in overseer.cells)
{
Console.WriteLine("ID:" + cell.id + "|AGE:" + cell.age + "|FOOD:" + cell.food + "|ENERGY:" + cell.energy + "|ACTION:" + cell.lastAction);
}
}
Console.WriteLine("ALIVE:" + overseer.cells.Count());
string commandEntered = Console.ReadLine().ToLower();
if (!string.IsNullOrEmpty(commandEntered))
{
switch (commandEntered)
{
case "save":
overseer.SaveToFile();
continue;
case "load":
string fileName = Console.ReadLine();
if (string.IsNullOrEmpty(fileName))
{
continue;
}
else
{
overseer.LoadFromFile(fileName);
}
break;
case "switchshowinfo":
showCellInfo = !showCellInfo;
break;
}
}

overseer.SimulateNext();
Console.WriteLine();
}
}
}
}
4 changes: 2 additions & 2 deletions CellSimulator/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.*")]
//[assembly: AssemblyFileVersion("1.0.0.0")]

0 comments on commit c0c30c0

Please sign in to comment.