This commit is contained in:
psyhf2 2024-04-04 22:33:02 +01:00
commit efca6aeac5
53 changed files with 942 additions and 0 deletions

10
Chess.csproj Normal file
View File

@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

16
Chess.sln Normal file
View File

@ -0,0 +1,16 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Chess", "Chess\Chess.csproj", "{AF060ECF-9188-48D3-AAF0-EB3A1718350B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{AF060ECF-9188-48D3-AAF0-EB3A1718350B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AF060ECF-9188-48D3-AAF0-EB3A1718350B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AF060ECF-9188-48D3-AAF0-EB3A1718350B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AF060ECF-9188-48D3-AAF0-EB3A1718350B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal

34
Chess/Board.cs Normal file
View File

@ -0,0 +1,34 @@
namespace Chess;
public class Board
{
public char[] board = new char[64];
public void DisplayBoard()
{
int line = 2;
Console.WriteLine("");
Console.Write(1 + ": ");
for (int i = 0; i < board.Length; i++)
{
if (i % 8 == 0 && i != 0)
{
Console.Write("\n --------------------------------\n");
Console.Write(line + ": ");
line++;
}
char currentPeice = board[i];
if (Char.IsLower(currentPeice))
Console.ForegroundColor = ConsoleColor.Red;
else if (Char.IsUpper(currentPeice))
Console.ForegroundColor = ConsoleColor.DarkBlue;
else
currentPeice = ' ';
Console.Write($" {currentPeice} ");
Console.ResetColor();
Console.Write("|");
}
Console.WriteLine("\n\n a b c d e f g h");
}
}

10
Chess/Chess.csproj Normal file
View File

@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

42
Chess/FENhandler.cs Normal file
View File

@ -0,0 +1,42 @@
using System.Net.NetworkInformation;
namespace Chess;
public class FENhandler
{
public Board ParseFen(string FEN, GameHandler handler)
{
string[] config = FEN.Split(' ');
Board board = new Board();
PraseBoard(board, config[0]);
SetFirstMove(handler, config[1]);
return board;
}
private void SetFirstMove(GameHandler handler, string playerToMove)
{
if (playerToMove == "w")
handler.Turn = "Blue";
else
handler.Turn = "Red";
}
private static void PraseBoard(Board board, string boardStatus)
{
int boardPostion = 0;
int statusPostion = 0;
foreach (char piece in boardStatus)
{
if (Char.IsDigit(piece))
boardPostion += Convert.ToInt32(piece) - 49;
else if (piece == '/')
boardPostion--;
else
board.board[boardPostion] = boardStatus[statusPostion];
statusPostion++;
boardPostion++;
}
}
}

22
Chess/Game.cs Normal file
View File

@ -0,0 +1,22 @@
namespace Chess
{
class Game
{
private static void Main()
{
const string startingFen = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1";
GameHandler handler = new GameHandler();
FENhandler fen = new FENhandler();
MoveChecker checker = new();
Board boardHandler = fen.ParseFen(startingFen, handler);
while (true)
{
boardHandler.DisplayBoard();
boardHandler = handler.PlayerMove(boardHandler, checker);
}
}
}
}

104
Chess/GameHandler.cs Normal file
View File

@ -0,0 +1,104 @@
namespace Chess;
public class GameHandler
{
public string Turn = "Blue";
private int enPassentSquare = -555;
private bool[] _castlePossibiltys = new[] { true, true, true, true};
public Board PlayerMove(Board board, MoveChecker checker)
{
Console.WriteLine($"It is {Turn} time to move enter current cell and the cell you want to move to");
string[] temp = Console.ReadLine().Split(' ');
int currentPosition = ConvertCellToInt(temp[0].ToLower());
int newPosition = ConvertCellToInt(temp[1].ToLower());
char currentPiece = board.board[currentPosition];
(bool validMove, bool castle) = CheckMove(currentPiece, newPosition, currentPosition, board, checker);
if (validMove)
{
board.board[currentPosition] = board == true ? board.board[newPosition] : '\0'
board.board[newPosition] = currentPiece;
Turn = Turn == "Blue" ? "Red" : "Blue";
}
else
{
Console.WriteLine("Invalid move");
}
return board;
}
private (bool, bool) CheckMove(char currentPiece, int newPosition, int currentPosition, Board board, MoveChecker checker)
{
bool castle = false;
bool valid = true;
valid = checker.BasicCheck(Turn, currentPiece, board.board[newPosition]);
if (valid == false) return (valid, castle);
switch (char.ToLower(currentPiece))
{
case 'p':
(valid, enPassentSquare) = checker.PawnCheck(newPosition, currentPosition, Turn, board, enPassentSquare);
break;
case 'r':
valid = checker.RookCheck(currentPosition, newPosition, board);
if (valid == true)
{
switch (currentPosition)
{
case 0:
_castlePossibiltys[2] = false;
break;
case 7:
_castlePossibiltys[3] = false;
break;
case 56:
_castlePossibiltys[0] = false;
break;
case 63:
_castlePossibiltys[1] = false;
break;
}
}
enPassentSquare = -555;
break;
case 'n':
valid = checker.KnightCheck(currentPosition, newPosition);
enPassentSquare = -555;
break;
case 'b':
valid = checker.BishopCheck(currentPosition, newPosition, board);
enPassentSquare = -555;
break;
case 'q':
valid = checker.QueenCheck(currentPosition, newPosition, board);
enPassentSquare = -555;
break;
case 'k':
(valid, castle )= checker.KingCheck(currentPosition, newPosition, _castlePossibiltys, board);
switch (valid)
{
case true when Turn == "Blue":
_castlePossibiltys[0] = false;
_castlePossibiltys[1] = false;
break;
case true:
_castlePossibiltys[2] = false;
_castlePossibiltys[3] = false;
break;
}
enPassentSquare = -555;
break;
}
return (valid, castle);
}
private int ConvertCellToInt(string cell)
{
return Convert.ToInt32(cell[0]) - 96 + ((Convert.ToInt32(cell[1]) - 48) * 8) - 9;
}
}

158
Chess/MoveChecker.cs Normal file
View File

@ -0,0 +1,158 @@
namespace Chess;
public class MoveChecker
{
public bool BasicCheck(string playerToMove, char piece, char newPiece)
{
bool valid = false;
valid = playerToMove == "Blue" && char.IsUpper(piece) || playerToMove == "Red" && char.IsLower(piece);
if (newPiece != '\0' && valid == true)
{
Console.Write(newPiece);
if (playerToMove == "Blue" && char.IsUpper(newPiece) == true)
{
valid = false || (newPiece == 'R' && piece == 'K');
}
else if (playerToMove == "Red" && char.IsLower(newPiece) == true)
{
valid = false || (newPiece == 'R' && piece == 'K');
}
}
return valid;
}
public (bool, int) PawnCheck(int newPosition, int currentPosition, string turn, Board board, int enPassentSquares)
{
bool enPassent = false;
bool valid = true;
int offset = 0;
if (turn == "Blue")
offset = -8;
else
offset = 8;
if (board.board[newPosition] == '\0') // if the square is empty
{
if (currentPosition + offset != newPosition)
valid = false;
if(currentPosition is >= 8 and <= 15 or >= 48 and <= 55)
if (currentPosition + offset * 2 == newPosition)
{
enPassentSquares = newPosition - offset;
enPassent = true;
valid = true;
}
if (newPosition == enPassentSquares)
{
board.board[enPassentSquares - offset] = '\0';
valid = true;
}
}
else // if the square has a piece
{
valid = false;
if (turn == "Blue")
{
if (board.board[currentPosition - 7] != '\0' || board.board[currentPosition - 9] != '\0')
valid = true;
}
else
{
if (board.board[currentPosition + 7] != '\0' || board.board[currentPosition + 9] != '\0')
valid = true;
}
}
if (enPassent == false)
enPassentSquares = -555;
return (valid, enPassentSquares);
}
private bool SimpleMoverCheck(int currentPosition, int newPosition, Board board, int[] offsets)
{
foreach (int direction in offsets)
{
int tempPostion = currentPosition;
while (tempPostion >= 0 && tempPostion <= board.board.Length - 1)
{
tempPostion += direction;
if(tempPostion is >= 63 or < 0)
break;
if (tempPostion == newPosition)
return true;
if (board.board[tempPostion].ToString() != "\0")
break;
}
}
return false;
}
public bool RookCheck(int currentPosition, int newPosition, Board board)
{
int[] offsets = {-1, 8, 1, -8}; // left, up, right, down
return SimpleMoverCheck(currentPosition, newPosition, board, offsets);
}
public bool BishopCheck(int currentPosition, int newPostion, Board board)
{
int[] offsets = {7, 9, -7, -9}; // left, up, right, down
return SimpleMoverCheck(currentPosition, newPostion, board, offsets);
}
public bool QueenCheck(int currentPosition, int newPostion, Board board)
{
int[] offsets = {-1, 8, 1, -8, 7, 9, -7, -9};
return SimpleMoverCheck(currentPosition, newPostion, board, offsets);
}
public (bool, bool) KingCheck(int currentPosition, int newPosition, bool[] casstleChances, Board board)
{
int[] offsets = {1, 7, 8, 9, -1, -7, -8, -9};
foreach (int direction in offsets)
{
if (currentPosition + direction == newPosition)
return (true, false);
}
int[] casstleMoves = new[] {-4, 3, -4, -3};
if (board.board[newPosition] == 'n' || board.board[newPosition] == 'N')
{
for (int i = 0; i < casstleMoves.Length; i++)
{
int offset = casstleMoves[i];
if (currentPosition + casstleMoves[i] == newPosition && casstleChances[i] == true)
{
int inverseOffset = offset * -1;
List<int> inbetweenSquares = new List<int>();
for (i = newPosition; i != currentPosition; i += Math.Clamp(inverseOffset, -1, 1))
{
inbetweenSquares.Add(i);
}
inbetweenSquares.RemoveAt(inbetweenSquares.Count - 1);
inbetweenSquares.RemoveAt(0);
foreach (int squareNumber in inbetweenSquares)
{
if (board.board[squareNumber] != '\0')
return (false, false);
}
return (true, true);
}
}
}
return (false, false);
}
public bool KnightCheck(int currentPosition, int newPosition)
{
int[] offsets = {15, 17, 6, 10, -6, -10, -15, -17};
return offsets.Any(direction => currentPosition + direction == newPosition);
}
}

BIN
Chess/bin/Debug/net6.0/Chess Executable file

Binary file not shown.

View File

@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"Chess/1.0.0": {
"runtime": {
"Chess.dll": {}
}
}
}
},
"libraries": {
"Chess/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,9 @@
{
"runtimeOptions": {
"tfm": "net6.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
}
}
}

Binary file not shown.

View File

@ -0,0 +1,75 @@
{
"format": 1,
"restore": {
"/home/osdesa/Documents/code/Chess/Chess/Chess/Chess.csproj": {}
},
"projects": {
"/home/osdesa/Documents/code/Chess/Chess/Chess/Chess.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/osdesa/Documents/code/Chess/Chess/Chess/Chess.csproj",
"projectName": "Chess",
"projectPath": "/home/osdesa/Documents/code/Chess/Chess/Chess/Chess.csproj",
"packagesPath": "/home/osdesa/.nuget/packages/",
"outputPath": "/home/osdesa/Documents/code/Chess/Chess/Chess/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/osdesa/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[6.0.26, 6.0.26]"
},
{
"name": "Microsoft.NETCore.App.Host.linux-x64",
"version": "[6.0.26, 6.0.26]"
},
{
"name": "Microsoft.NETCore.App.Ref",
"version": "[6.0.26, 6.0.26]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/7.0.115/RuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/osdesa/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/osdesa/.nuget/packages/</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.4.2</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="/home/osdesa/.nuget/packages/" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]

View File

@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Chess")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Chess")]
[assembly: System.Reflection.AssemblyTitleAttribute("Chess")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

View File

@ -0,0 +1 @@
e0e0edb49f36c9ab138f7409cfb286ad9d71eca2

View File

@ -0,0 +1,11 @@
is_global = true
build_property.TargetFramework = net6.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Chess
build_property.ProjectDir = /home/osdesa/Documents/code/Chess/Chess/Chess/

View File

@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;

Binary file not shown.

View File

@ -0,0 +1 @@
134d49001f05e87215a1a3e58326abb2e93700d8

View File

@ -0,0 +1,60 @@
F:/Code/Chess/Chess/obj/Debug/net6.0/Chess.csproj.AssemblyReference.cache
F:/Code/Chess/Chess/obj/Debug/net6.0/Chess.GeneratedMSBuildEditorConfig.editorconfig
F:/Code/Chess/Chess/obj/Debug/net6.0/Chess.AssemblyInfoInputs.cache
F:/Code/Chess/Chess/obj/Debug/net6.0/Chess.AssemblyInfo.cs
F:/Code/Chess/Chess/obj/Debug/net6.0/Chess.csproj.CoreCompileInputs.cache
F:/Code/Chess/Chess/bin/Debug/net6.0/Chess.exe
F:/Code/Chess/Chess/bin/Debug/net6.0/Chess.deps.json
F:/Code/Chess/Chess/bin/Debug/net6.0/Chess.runtimeconfig.json
F:/Code/Chess/Chess/bin/Debug/net6.0/Chess.dll
F:/Code/Chess/Chess/bin/Debug/net6.0/ref/Chess.dll
F:/Code/Chess/Chess/bin/Debug/net6.0/Chess.pdb
F:/Code/Chess/Chess/obj/Debug/net6.0/Chess.dll
F:/Code/Chess/Chess/obj/Debug/net6.0/ref/Chess.dll
F:/Code/Chess/Chess/obj/Debug/net6.0/Chess.pdb
F:/Code/Chess/Chess/obj/Debug/net6.0/Chess.genruntimeconfig.cache
F:/Code/Chess/Chess/Chess/bin/Debug/net6.0/Chess.exe
F:/Code/Chess/Chess/Chess/bin/Debug/net6.0/Chess.deps.json
F:/Code/Chess/Chess/Chess/bin/Debug/net6.0/Chess.runtimeconfig.json
F:/Code/Chess/Chess/Chess/bin/Debug/net6.0/Chess.dll
F:/Code/Chess/Chess/Chess/bin/Debug/net6.0/ref/Chess.dll
F:/Code/Chess/Chess/Chess/bin/Debug/net6.0/Chess.pdb
F:/Code/Chess/Chess/Chess/obj/Debug/net6.0/Chess.csproj.AssemblyReference.cache
F:/Code/Chess/Chess/Chess/obj/Debug/net6.0/Chess.GeneratedMSBuildEditorConfig.editorconfig
F:/Code/Chess/Chess/Chess/obj/Debug/net6.0/Chess.AssemblyInfoInputs.cache
F:/Code/Chess/Chess/Chess/obj/Debug/net6.0/Chess.AssemblyInfo.cs
F:/Code/Chess/Chess/Chess/obj/Debug/net6.0/Chess.csproj.CoreCompileInputs.cache
F:/Code/Chess/Chess/Chess/obj/Debug/net6.0/Chess.dll
F:/Code/Chess/Chess/Chess/obj/Debug/net6.0/ref/Chess.dll
F:/Code/Chess/Chess/Chess/obj/Debug/net6.0/Chess.pdb
F:/Code/Chess/Chess/Chess/obj/Debug/net6.0/Chess.genruntimeconfig.cache
/home/pep/RiderProjects/Chess/Chess/Chess/bin/Debug/net6.0/Chess
/home/pep/RiderProjects/Chess/Chess/Chess/bin/Debug/net6.0/Chess.deps.json
/home/pep/RiderProjects/Chess/Chess/Chess/bin/Debug/net6.0/Chess.runtimeconfig.json
/home/pep/RiderProjects/Chess/Chess/Chess/bin/Debug/net6.0/Chess.dll
/home/pep/RiderProjects/Chess/Chess/Chess/bin/Debug/net6.0/ref/Chess.dll
/home/pep/RiderProjects/Chess/Chess/Chess/bin/Debug/net6.0/Chess.pdb
/home/pep/RiderProjects/Chess/Chess/Chess/obj/Debug/net6.0/Chess.csproj.AssemblyReference.cache
/home/pep/RiderProjects/Chess/Chess/Chess/obj/Debug/net6.0/Chess.GeneratedMSBuildEditorConfig.editorconfig
/home/pep/RiderProjects/Chess/Chess/Chess/obj/Debug/net6.0/Chess.AssemblyInfoInputs.cache
/home/pep/RiderProjects/Chess/Chess/Chess/obj/Debug/net6.0/Chess.AssemblyInfo.cs
/home/pep/RiderProjects/Chess/Chess/Chess/obj/Debug/net6.0/Chess.csproj.CoreCompileInputs.cache
/home/pep/RiderProjects/Chess/Chess/Chess/obj/Debug/net6.0/Chess.dll
/home/pep/RiderProjects/Chess/Chess/Chess/obj/Debug/net6.0/ref/Chess.dll
/home/pep/RiderProjects/Chess/Chess/Chess/obj/Debug/net6.0/Chess.pdb
/home/pep/RiderProjects/Chess/Chess/Chess/obj/Debug/net6.0/Chess.genruntimeconfig.cache
/home/osdesa/Documents/code/Chess/Chess/Chess/bin/Debug/net6.0/Chess
/home/osdesa/Documents/code/Chess/Chess/Chess/bin/Debug/net6.0/Chess.deps.json
/home/osdesa/Documents/code/Chess/Chess/Chess/bin/Debug/net6.0/Chess.runtimeconfig.json
/home/osdesa/Documents/code/Chess/Chess/Chess/bin/Debug/net6.0/Chess.dll
/home/osdesa/Documents/code/Chess/Chess/Chess/bin/Debug/net6.0/Chess.pdb
/home/osdesa/Documents/code/Chess/Chess/Chess/obj/Debug/net6.0/Chess.csproj.AssemblyReference.cache
/home/osdesa/Documents/code/Chess/Chess/Chess/obj/Debug/net6.0/Chess.GeneratedMSBuildEditorConfig.editorconfig
/home/osdesa/Documents/code/Chess/Chess/Chess/obj/Debug/net6.0/Chess.AssemblyInfoInputs.cache
/home/osdesa/Documents/code/Chess/Chess/Chess/obj/Debug/net6.0/Chess.AssemblyInfo.cs
/home/osdesa/Documents/code/Chess/Chess/Chess/obj/Debug/net6.0/Chess.csproj.CoreCompileInputs.cache
/home/osdesa/Documents/code/Chess/Chess/Chess/obj/Debug/net6.0/Chess.dll
/home/osdesa/Documents/code/Chess/Chess/Chess/obj/Debug/net6.0/refint/Chess.dll
/home/osdesa/Documents/code/Chess/Chess/Chess/obj/Debug/net6.0/Chess.pdb
/home/osdesa/Documents/code/Chess/Chess/Chess/obj/Debug/net6.0/Chess.genruntimeconfig.cache
/home/osdesa/Documents/code/Chess/Chess/Chess/obj/Debug/net6.0/ref/Chess.dll

Binary file not shown.

View File

@ -0,0 +1 @@
6da4f0798a6a551712be458e7fb5b0b2cb9be9b7

Binary file not shown.

BIN
Chess/obj/Debug/net6.0/apphost Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,80 @@
{
"version": 3,
"targets": {
"net6.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net6.0": []
},
"packageFolders": {
"/home/osdesa/.nuget/packages/": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/osdesa/Documents/code/Chess/Chess/Chess/Chess.csproj",
"projectName": "Chess",
"projectPath": "/home/osdesa/Documents/code/Chess/Chess/Chess/Chess.csproj",
"packagesPath": "/home/osdesa/.nuget/packages/",
"outputPath": "/home/osdesa/Documents/code/Chess/Chess/Chess/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/osdesa/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[6.0.26, 6.0.26]"
},
{
"name": "Microsoft.NETCore.App.Host.linux-x64",
"version": "[6.0.26, 6.0.26]"
},
{
"name": "Microsoft.NETCore.App.Ref",
"version": "[6.0.26, 6.0.26]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/7.0.115/RuntimeIdentifierGraph.json"
}
}
}
}

View File

@ -0,0 +1,12 @@
{
"version": 2,
"dgSpecHash": "1d5EqRjoJwLvc8a/xWANaDo8gne1/Twx01zoUmONaTNCzl11YhxUSwkos1L33aPAlUxweYei8zhgf3W/67SuCQ==",
"success": true,
"projectFilePath": "/home/osdesa/Documents/code/Chess/Chess/Chess/Chess.csproj",
"expectedPackageFiles": [
"/home/osdesa/.nuget/packages/microsoft.netcore.app.ref/6.0.26/microsoft.netcore.app.ref.6.0.26.nupkg.sha512",
"/home/osdesa/.nuget/packages/microsoft.aspnetcore.app.ref/6.0.26/microsoft.aspnetcore.app.ref.6.0.26.nupkg.sha512",
"/home/osdesa/.nuget/packages/microsoft.netcore.app.host.linux-x64/6.0.26/microsoft.netcore.app.host.linux-x64.6.0.26.nupkg.sha512"
],
"logs": []
}

View File

@ -0,0 +1 @@
"restore":{"projectUniqueName":"/home/pep/RiderProjects/Chess/Chess/Chess/Chess.csproj","projectName":"Chess","projectPath":"/home/pep/RiderProjects/Chess/Chess/Chess/Chess.csproj","outputPath":"/home/pep/RiderProjects/Chess/Chess/Chess/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net6.0"],"sources":{"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net6.0":{"targetAlias":"net6.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net6.0":{"targetAlias":"net6.0","imports":["net461","net462","net47","net471","net472","net48"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/usr/share/dotnet/sdk/6.0.102/RuntimeIdentifierGraph.json"}}

View File

@ -0,0 +1 @@
16447479997171428

2
Program.cs Normal file
View File

@ -0,0 +1,2 @@
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");

View File

@ -0,0 +1,67 @@
{
"format": 1,
"restore": {
"/home/osdesa/Documents/code/Chess/Chess/Chess.csproj": {}
},
"projects": {
"/home/osdesa/Documents/code/Chess/Chess/Chess.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/osdesa/Documents/code/Chess/Chess/Chess.csproj",
"projectName": "Chess",
"projectPath": "/home/osdesa/Documents/code/Chess/Chess/Chess.csproj",
"packagesPath": "/home/osdesa/.nuget/packages/",
"outputPath": "/home/osdesa/Documents/code/Chess/Chess/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/osdesa/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net7.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net7.0": {
"targetAlias": "net7.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net7.0": {
"targetAlias": "net7.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[7.0.15, 7.0.15]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/7.0.115/RuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/osdesa/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/osdesa/.nuget/packages/</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.4.2</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="/home/osdesa/.nuget/packages/" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")]

View File

@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Chess")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Chess")]
[assembly: System.Reflection.AssemblyTitleAttribute("Chess")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

View File

@ -0,0 +1 @@
e0e0edb49f36c9ab138f7409cfb286ad9d71eca2

View File

@ -0,0 +1,11 @@
is_global = true
build_property.TargetFramework = net7.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Chess
build_property.ProjectDir = /home/osdesa/Documents/code/Chess/Chess/

View File

@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
81f4143e96c1e454a30dbac6c8bd5dc7dba857f8

View File

@ -0,0 +1,5 @@
/home/osdesa/Documents/code/Chess/Chess/obj/Debug/net7.0/Chess.csproj.AssemblyReference.cache
/home/osdesa/Documents/code/Chess/Chess/obj/Debug/net7.0/Chess.GeneratedMSBuildEditorConfig.editorconfig
/home/osdesa/Documents/code/Chess/Chess/obj/Debug/net7.0/Chess.AssemblyInfoInputs.cache
/home/osdesa/Documents/code/Chess/Chess/obj/Debug/net7.0/Chess.AssemblyInfo.cs
/home/osdesa/Documents/code/Chess/Chess/obj/Debug/net7.0/Chess.csproj.CoreCompileInputs.cache

72
obj/project.assets.json Normal file
View File

@ -0,0 +1,72 @@
{
"version": 3,
"targets": {
"net7.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net7.0": []
},
"packageFolders": {
"/home/osdesa/.nuget/packages/": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/osdesa/Documents/code/Chess/Chess/Chess.csproj",
"projectName": "Chess",
"projectPath": "/home/osdesa/Documents/code/Chess/Chess/Chess.csproj",
"packagesPath": "/home/osdesa/.nuget/packages/",
"outputPath": "/home/osdesa/Documents/code/Chess/Chess/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/osdesa/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net7.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net7.0": {
"targetAlias": "net7.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net7.0": {
"targetAlias": "net7.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[7.0.15, 7.0.15]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/7.0.115/RuntimeIdentifierGraph.json"
}
}
}
}

10
obj/project.nuget.cache Normal file
View File

@ -0,0 +1,10 @@
{
"version": 2,
"dgSpecHash": "mQIj8Ye/Q2M6baFILTm60nH9xcpZ+vTJc+gIOHJjHOELrmdVPTld4Xrr+J6R732YVasHGn3acOhuyAxlNyIYpw==",
"success": true,
"projectFilePath": "/home/osdesa/Documents/code/Chess/Chess/Chess.csproj",
"expectedPackageFiles": [
"/home/osdesa/.nuget/packages/microsoft.aspnetcore.app.ref/7.0.15/microsoft.aspnetcore.app.ref.7.0.15.nupkg.sha512"
],
"logs": []
}