-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from samsmithnz/AddingLogicForCensus
Adding logic for census
- Loading branch information
Showing
74 changed files
with
7,022 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
|
||
namespace Sample.MultipleTargets.ConsoleApp | ||
{ | ||
class Program | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
Console.WriteLine("Hello World!"); | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
samples/Sample.MultipleTargets.ConsoleApp/Sample.MultipleTargets.ConsoleApp.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFrameworks>net462;netcoreapp3.1;net5.0</TargetFrameworks> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
|
||
namespace Sample.Net5.ConsoleApp | ||
{ | ||
class Program | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
Console.WriteLine("Hello World!"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net5.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
|
||
namespace Sample.NetCore.ConsoleApp | ||
{ | ||
class Program | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
Console.WriteLine("Hello World!"); | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
samples/Sample.NetCore.ConsoleApp/Sample.NetCore.ConsoleApp.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /> | ||
</startup> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Sample.NetFramework.ConsoleApp | ||
{ | ||
class Program | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
samples/Sample.NetFramework.ConsoleApp/Properties/AssemblyInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.InteropServices; | ||
|
||
// General Information about an assembly is controlled through the following | ||
// set of attributes. Change these attribute values to modify the information | ||
// associated with an assembly. | ||
[assembly: AssemblyTitle("Sample.NetFramework.ConsoleApp")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("")] | ||
[assembly: AssemblyProduct("Sample.NetFramework.ConsoleApp")] | ||
[assembly: AssemblyCopyright("Copyright © 2021")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: AssemblyCulture("")] | ||
|
||
// Setting ComVisible to false makes the types in this assembly not visible | ||
// to COM components. If you need to access a type in this assembly from | ||
// COM, set the ComVisible attribute to true on that type. | ||
[assembly: ComVisible(false)] | ||
|
||
// The following GUID is for the ID of the typelib if this project is exposed to COM | ||
[assembly: Guid("1f8a0a52-b39a-469b-aa78-e5c596c2484d")] | ||
|
||
// Version information for an assembly consists of the following four values: | ||
// | ||
// Major Version | ||
// Minor Version | ||
// Build Number | ||
// Revision | ||
// | ||
// You can specify all the values or you can default the Build and Revision Numbers | ||
// by using the '*' as shown below: | ||
// [assembly: AssemblyVersion("1.0.*")] | ||
[assembly: AssemblyVersion("1.0.0.0")] | ||
[assembly: AssemblyFileVersion("1.0.0.0")] |
56 changes: 56 additions & 0 deletions
56
samples/Sample.NetFramework.ConsoleApp/Sample.NetFramework.ConsoleApp.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{1F8A0A52-B39A-469B-AA78-E5C596C2484D}</ProjectGuid> | ||
<OutputType>Exe</OutputType> | ||
<RootNamespace>Sample.NetFramework.ConsoleApp</RootNamespace> | ||
<AssemblyName>Sample.NetFramework.ConsoleApp</AssemblyName> | ||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | ||
<Deterministic>true</Deterministic> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Net.Http" /> | ||
<Reference Include="System.Xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="Program.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="..\..\.editorconfig"> | ||
<Link>.editorconfig</Link> | ||
</None> | ||
<None Include="App.config" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Imports System.Reflection | ||
Imports System.Runtime.InteropServices | ||
|
||
' General Information about an assembly is controlled through the following | ||
' set of attributes. Change these attribute values to modify the information | ||
' associated with an assembly. | ||
|
||
' Review the values of the assembly attributes | ||
|
||
<Assembly: AssemblyTitle("")> | ||
<Assembly: AssemblyDescription("")> | ||
<Assembly: AssemblyCompany("")> | ||
<Assembly: AssemblyProduct("")> | ||
<Assembly: AssemblyCopyright("")> | ||
<Assembly: AssemblyTrademark("")> | ||
<Assembly: CLSCompliant(True)> | ||
|
||
'The following GUID is for the ID of the typelib if this project is exposed to COM | ||
<Assembly: Guid("68072815-4C21-4794-B96A-6A0162E807E6")> | ||
|
||
' Version information for an assembly consists of the following four values: | ||
' | ||
' Major Version | ||
' Minor Version | ||
' Build Number | ||
' Revision | ||
' | ||
' You can specify all the values or you can default the Build and Revision Numbers | ||
' by using the '*' as shown below: | ||
|
||
<Assembly: AssemblyVersion("1.0.*")> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
<VisualStudioProject> | ||
<VisualBasic | ||
ProjectType = "Local" | ||
ProductVersion = "7.0.9466" | ||
SchemaVersion = "1.0" | ||
ProjectGuid = "{F0C287A8-2085-413F-8AC2-FBBA397828C5}" | ||
> | ||
<Build> | ||
<Settings | ||
ApplicationIcon = "" | ||
AssemblyKeyContainerName = "" | ||
AssemblyName = "VBSimpleSocketsBasedbattleships" | ||
AssemblyOriginatorKeyFile = "" | ||
AssemblyOriginatorKeyMode = "None" | ||
DefaultClientScript = "JScript" | ||
DefaultHTMLPageLayout = "Grid" | ||
DefaultTargetSchema = "IE50" | ||
DelaySign = "false" | ||
OutputType = "WinExe" | ||
OptionCompare = "Binary" | ||
OptionExplicit = "On" | ||
OptionStrict = "Off" | ||
RootNamespace = "VBSimpleSocketsBasedbattleships" | ||
StartupObject = "VBSimpleSocketsBasedbattleships.SimpleSocketsBasedBattleShips.mainform" | ||
> | ||
<Config | ||
Name = "Debug" | ||
BaseAddress = "285212672" | ||
ConfigurationOverrideFile = "" | ||
DefineConstants = "" | ||
DefineDebug = "true" | ||
DefineTrace = "true" | ||
DebugSymbols = "true" | ||
IncrementalBuild = "true" | ||
Optimize = "false" | ||
OutputPath = "bin\" | ||
RegisterForComInterop = "false" | ||
RemoveIntegerChecks = "false" | ||
TreatWarningsAsErrors = "false" | ||
WarningLevel = "1" | ||
/> | ||
<Config | ||
Name = "Release" | ||
BaseAddress = "285212672" | ||
ConfigurationOverrideFile = "" | ||
DefineConstants = "" | ||
DefineDebug = "false" | ||
DefineTrace = "true" | ||
DebugSymbols = "false" | ||
IncrementalBuild = "false" | ||
Optimize = "true" | ||
OutputPath = "bin\" | ||
RegisterForComInterop = "false" | ||
RemoveIntegerChecks = "false" | ||
TreatWarningsAsErrors = "false" | ||
WarningLevel = "1" | ||
/> | ||
</Settings> | ||
<References> | ||
<Reference | ||
Name = "System" | ||
AssemblyName = "System" | ||
/> | ||
<Reference | ||
Name = "System.Data" | ||
AssemblyName = "System.Data" | ||
/> | ||
<Reference | ||
Name = "System.Drawing" | ||
AssemblyName = "System.Drawing" | ||
/> | ||
<Reference | ||
Name = "System.Windows.Forms" | ||
AssemblyName = "System.Windows.Forms" | ||
/> | ||
<Reference | ||
Name = "System.XML" | ||
AssemblyName = "System.Xml" | ||
/> | ||
<Reference | ||
Name = "gamesgridcntrl" | ||
AssemblyName = "gamesgridcntrl" | ||
HintPath = "..\..\..\chapter6\csharpsolutions\gamesgridcntrl\bin\debug\gamesgridcntrl.dll" | ||
/> | ||
</References> | ||
<Imports> | ||
<Import Namespace = "Microsoft.VisualBasic" /> | ||
<Import Namespace = "System" /> | ||
<Import Namespace = "System.Collections" /> | ||
<Import Namespace = "System.Data" /> | ||
<Import Namespace = "System.Drawing" /> | ||
<Import Namespace = "System.Diagnostics" /> | ||
<Import Namespace = "System.Windows.Forms" /> | ||
</Imports> | ||
</Build> | ||
<Files> | ||
<Include> | ||
<File | ||
RelPath = "AssemblyInfo.vb" | ||
SubType = "Code" | ||
BuildAction = "Compile" | ||
/> | ||
<File | ||
RelPath = "GetIp.vb" | ||
SubType = "Form" | ||
BuildAction = "Compile" | ||
/> | ||
<File | ||
RelPath = "GetIp.resx" | ||
DependentUpon = "GetIp.vb" | ||
BuildAction = "EmbeddedResource" | ||
/> | ||
<File | ||
RelPath = "player.vb" | ||
SubType = "Form" | ||
BuildAction = "Compile" | ||
/> | ||
<File | ||
RelPath = "player.resx" | ||
DependentUpon = "player.vb" | ||
BuildAction = "EmbeddedResource" | ||
/> | ||
</Include> | ||
</Files> | ||
</VisualBasic> | ||
</VisualStudioProject> | ||
|
Oops, something went wrong.