Skip to content

Commit cbcb425

Browse files
committed
Initial commit
0 parents  commit cbcb425

File tree

44 files changed

+1184
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1184
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.vs/5AHIF_Weirer_GameOfLiveNET/FileContentIndex/read.lock

Whitespace-only changes.
51 KB
Binary file not shown.

.vs/5AHIF_Weirer_GameOfLiveNET/v15/Server/sqlite3/db.lock

Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
50 KB
Binary file not shown.

.vs/5AHIF_Weirer_GameOfLiveNET/v16/Server/sqlite3/db.lock

Whitespace-only changes.
Binary file not shown.
54 KB
Binary file not shown.

5AHIF_Weirer_GameOfLiveNET.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.28010.2026
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "5AHIF_Weirer_GameOfLiveNET", "5AHIF_Weirer_GameOfLiveNET\5AHIF_Weirer_GameOfLiveNET.csproj", "{36A299D1-F5B5-4CD8-808C-58A6892C157E}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{36A299D1-F5B5-4CD8-808C-58A6892C157E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{36A299D1-F5B5-4CD8-808C-58A6892C157E}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{36A299D1-F5B5-4CD8-808C-58A6892C157E}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{36A299D1-F5B5-4CD8-808C-58A6892C157E}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {A396C468-3072-495E-BBED-9C1A5F03DAB2}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{36A299D1-F5B5-4CD8-808C-58A6892C157E}</ProjectGuid>
8+
<OutputType>WinExe</OutputType>
9+
<RootNamespace>_5AHIF_Weirer_GameOfLiveNET</RootNamespace>
10+
<AssemblyName>5AHIF_Weirer_GameOfLiveNET</AssemblyName>
11+
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
12+
<FileAlignment>512</FileAlignment>
13+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
14+
<Deterministic>true</Deterministic>
15+
</PropertyGroup>
16+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17+
<PlatformTarget>AnyCPU</PlatformTarget>
18+
<DebugSymbols>true</DebugSymbols>
19+
<DebugType>full</DebugType>
20+
<Optimize>false</Optimize>
21+
<OutputPath>bin\Debug\</OutputPath>
22+
<DefineConstants>DEBUG;TRACE</DefineConstants>
23+
<ErrorReport>prompt</ErrorReport>
24+
<WarningLevel>4</WarningLevel>
25+
</PropertyGroup>
26+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27+
<PlatformTarget>AnyCPU</PlatformTarget>
28+
<DebugType>pdbonly</DebugType>
29+
<Optimize>true</Optimize>
30+
<OutputPath>bin\Release\</OutputPath>
31+
<DefineConstants>TRACE</DefineConstants>
32+
<ErrorReport>prompt</ErrorReport>
33+
<WarningLevel>4</WarningLevel>
34+
</PropertyGroup>
35+
<ItemGroup>
36+
<Reference Include="System" />
37+
<Reference Include="System.Core" />
38+
<Reference Include="System.Xml.Linq" />
39+
<Reference Include="System.Data.DataSetExtensions" />
40+
<Reference Include="Microsoft.CSharp" />
41+
<Reference Include="System.Data" />
42+
<Reference Include="System.Deployment" />
43+
<Reference Include="System.Drawing" />
44+
<Reference Include="System.Net.Http" />
45+
<Reference Include="System.Windows.Forms" />
46+
<Reference Include="System.Xml" />
47+
</ItemGroup>
48+
<ItemGroup>
49+
<Compile Include="Form1.cs">
50+
<SubType>Form</SubType>
51+
</Compile>
52+
<Compile Include="Form1.Designer.cs">
53+
<DependentUpon>Form1.cs</DependentUpon>
54+
</Compile>
55+
<Compile Include="Program.cs" />
56+
<Compile Include="Properties\AssemblyInfo.cs" />
57+
<EmbeddedResource Include="Form1.resx">
58+
<DependentUpon>Form1.cs</DependentUpon>
59+
</EmbeddedResource>
60+
<EmbeddedResource Include="Properties\Resources.resx">
61+
<Generator>ResXFileCodeGenerator</Generator>
62+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
63+
<SubType>Designer</SubType>
64+
</EmbeddedResource>
65+
<Compile Include="Properties\Resources.Designer.cs">
66+
<AutoGen>True</AutoGen>
67+
<DependentUpon>Resources.resx</DependentUpon>
68+
</Compile>
69+
<None Include="Properties\Settings.settings">
70+
<Generator>SettingsSingleFileGenerator</Generator>
71+
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
72+
</None>
73+
<Compile Include="Properties\Settings.Designer.cs">
74+
<AutoGen>True</AutoGen>
75+
<DependentUpon>Settings.settings</DependentUpon>
76+
<DesignTimeSharedInput>True</DesignTimeSharedInput>
77+
</Compile>
78+
</ItemGroup>
79+
<ItemGroup>
80+
<None Include="App.config" />
81+
</ItemGroup>
82+
<ItemGroup>
83+
<Content Include="Design.txt" />
84+
</ItemGroup>
85+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
86+
</Project>

5AHIF_Weirer_GameOfLiveNET/App.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
5+
</startup>
6+
</configuration>

5AHIF_Weirer_GameOfLiveNET/Design.txt

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---------------------Aufbau:---------------------
2+
3+
Das Spielfeld wird in form einer Panel-Liste gespeichert,
4+
jedes Panel erhält eine onclick methode die das Feld belebt/tötet,
5+
wenn die simulation gerade nicht läuft.
6+
7+
Die anzahl der aktuell lebenden Zellen wird als int gespeichert
8+
und mithilfe einer public int hilfsvariable wird das label mit der anzahl der lebenden zellen und der int wert verändert.
9+
10+
---------------------Simulation:---------------------
11+
12+
Farbliste für jedes Feld wird erstellt in welchem enthalten ist welche Farbe jedes Feld hat
13+
neue tot/lebend informationen zu jedem Feld wir in bool[] gespeichert
14+
15+
scheife:
16+
überprüfung der anzahl der nachbarn: schauen an welchen rändern die aktuelle Zelle sich befindet und anhand der Position nur die echten nachbarfelder überprüfen
17+
18+
if(aktuelle Zelle.above.exists)
19+
if(aktuelle Zelle.below.exists)
20+
if(aktuelle Zelle.left.exists)
21+
überprüfungen für alle zellen, die darunter/darüber und/oder links davon sind
22+
if(aktuelle Zelle.right.exists)
23+
überprüfungen für alle zellen, die darunter/darüber und/oder rechts davon sind
24+
else
25+
if(aktuelle Zelle.left.exists)
26+
überprüfungen für alle zellen, die darüber und/oder links davon sind
27+
if(aktuelle Zelle.right.exists)
28+
überprüfungen für alle zellen, die darüber und/oder rechts davon sind
29+
else
30+
if(aktuelle Zelle.left.exists)
31+
überprüfungen für alle zellen, die darunter und/oder links davon sind
32+
if(aktuelle Zelle.right.exists)
33+
überprüfungen für alle zellen, die darunter und/oder rechts davon sind
34+
35+
Spielfeld wir aktualisiert

0 commit comments

Comments
 (0)