Commit e867e8f1 authored by Andres Käver's avatar Andres Käver
Browse files

hw

parent 73502434
# Default ignored files
/shelf/
/workspace.xml
# Rider ignored files
/contentModel.xml
/.idea.Battleship.iml
/projectSettingsUpdater.xml
/modules.xml
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
</state>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ContentModelUserStore">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="com.jetbrains.rider.android.RiderAndroidMiscFileCreationComponent">
<option name="ENSURE_MISC_FILE_EXISTS" value="true" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="RIDER_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$/../.." />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp", "ConsoleApp\ConsoleApp.csproj", "{C475783E-00E2-4878-B82C-AE7960741D12}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Domain", "Domain\Domain.csproj", "{06BB39BF-AC81-45FB-9A07-8E21DABC7803}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C475783E-00E2-4878-B82C-AE7960741D12}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C475783E-00E2-4878-B82C-AE7960741D12}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C475783E-00E2-4878-B82C-AE7960741D12}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C475783E-00E2-4878-B82C-AE7960741D12}.Release|Any CPU.Build.0 = Release|Any CPU
{06BB39BF-AC81-45FB-9A07-8E21DABC7803}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{06BB39BF-AC81-45FB-9A07-8E21DABC7803}.Debug|Any CPU.Build.0 = Debug|Any CPU
{06BB39BF-AC81-45FB-9A07-8E21DABC7803}.Release|Any CPU.ActiveCfg = Release|Any CPU
{06BB39BF-AC81-45FB-9A07-8E21DABC7803}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
</Project>
using System;
namespace ConsoleApp
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
\ No newline at end of file
16034461169580217
\ No newline at end of file
16034462208092618
\ No newline at end of file
$HEADER$namespace $NAMESPACE$
namespace Domain
{
public class $CLASS$ {$END$}
public class BoardSquareState
{
// this is a value from GameBoat.GameBoatId
public int? BoatId { get; set; }
// 0 - no bomb yet here, 1..X - bomb placements in numbered order
public int Bomb { get; set; } }
}
\ No newline at end of file
$HEADER$namespace $NAMESPACE$
namespace Domain
{
public class $CLASS$ {$END$}
public class BoardState
{
public BoardSquareState[,] Board { get; set; }
}
}
\ No newline at end of file
$HEADER$namespace $NAMESPACE$
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Domain
{
public class $CLASS$ {$END$}
public class Boat
{
public int BoatId { get; set; }
[Range(1, int.MaxValue)]
public int Size { get; set; }
[MaxLength(32)]
public string Name { get; set; }
public ICollection<GameOptionBoat> GameOptionBoats { get; set; }
}
}
\ No newline at end of file
......@@ -4,4 +4,8 @@
<TargetFramework>netstandard2.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.ComponentModel.Annotations" Version="4.7.0" />
</ItemGroup>
</Project>
$HEADER$namespace $NAMESPACE$
namespace Domain.Enums
{
public enum $ENUM$ {$END$}
public enum EBoatsCanTouch
{
No,
Corner,
Yes
}
}
\ No newline at end of file
namespace Domain.Enums
{
// who has the right for next move after successful move/hit
public enum ENextMoveAfterHit
{
SamePlayer,
OtherPlayer
}
}
\ No newline at end of file
$HEADER$namespace $NAMESPACE$
namespace Domain.Enums
{
public enum $ENUM$ {$END$}
public enum EPlayerType
{
Human,
AI
}
}
\ No newline at end of file
$HEADER$namespace $NAMESPACE$
using System;
namespace Domain
{
public class $CLASS$ {$END$}
public class Game
{
public int GameId { get; set; }
public int GameOptionId { get; set; }
public GameOption GameOption { get; set; }
public string Description { get; set; } = DateTime.Now.ToLongDateString();
public int PlayerAId { get; set; }
public Player PlayerA { get; set; }
public int PlayerBId { get; set; }
public Player PlayerB { get; set; }
}
}
\ No newline at end of file
using System.ComponentModel.DataAnnotations;
namespace Domain
{
public class GameShip
public class GameBoat
{
public int GameBoatId { get; set; }
[Range(1, int.MaxValue)]
public int Size { get; set; }
[MaxLength(32)]
public string Name { get; set; }
public bool IsSunken { get; set; }
public int PlayerId { get; set; }
public Player Player { get; set; }
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment