commit efca6aeac511df719088868f87188e3dd8ffc642 Author: psyhf2 Date: Thu Apr 4 22:33:02 2024 +0100 push diff --git a/Chess.csproj b/Chess.csproj new file mode 100644 index 0000000..f02677b --- /dev/null +++ b/Chess.csproj @@ -0,0 +1,10 @@ + + + + Exe + net7.0 + enable + enable + + + diff --git a/Chess.sln b/Chess.sln new file mode 100644 index 0000000..70c6562 --- /dev/null +++ b/Chess.sln @@ -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 diff --git a/Chess/Board.cs b/Chess/Board.cs new file mode 100644 index 0000000..097e353 --- /dev/null +++ b/Chess/Board.cs @@ -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"); + } +} \ No newline at end of file diff --git a/Chess/Chess.csproj b/Chess/Chess.csproj new file mode 100644 index 0000000..172aea0 --- /dev/null +++ b/Chess/Chess.csproj @@ -0,0 +1,10 @@ + + + + Exe + net6.0 + enable + enable + + + diff --git a/Chess/FENhandler.cs b/Chess/FENhandler.cs new file mode 100644 index 0000000..929e3f4 --- /dev/null +++ b/Chess/FENhandler.cs @@ -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++; + } + } +} \ No newline at end of file diff --git a/Chess/Game.cs b/Chess/Game.cs new file mode 100644 index 0000000..31ebc2c --- /dev/null +++ b/Chess/Game.cs @@ -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); + } + } + } +} + + diff --git a/Chess/GameHandler.cs b/Chess/GameHandler.cs new file mode 100644 index 0000000..287bf62 --- /dev/null +++ b/Chess/GameHandler.cs @@ -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; + } +} \ No newline at end of file diff --git a/Chess/MoveChecker.cs b/Chess/MoveChecker.cs new file mode 100644 index 0000000..bf722bc --- /dev/null +++ b/Chess/MoveChecker.cs @@ -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 inbetweenSquares = new List(); + 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); + } +} \ No newline at end of file diff --git a/Chess/bin/Debug/net6.0/Chess b/Chess/bin/Debug/net6.0/Chess new file mode 100755 index 0000000..fc8df2c Binary files /dev/null and b/Chess/bin/Debug/net6.0/Chess differ diff --git a/Chess/bin/Debug/net6.0/Chess.deps.json b/Chess/bin/Debug/net6.0/Chess.deps.json new file mode 100644 index 0000000..2bead8d --- /dev/null +++ b/Chess/bin/Debug/net6.0/Chess.deps.json @@ -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": "" + } + } +} \ No newline at end of file diff --git a/Chess/bin/Debug/net6.0/Chess.dll b/Chess/bin/Debug/net6.0/Chess.dll new file mode 100644 index 0000000..1800617 Binary files /dev/null and b/Chess/bin/Debug/net6.0/Chess.dll differ diff --git a/Chess/bin/Debug/net6.0/Chess.exe b/Chess/bin/Debug/net6.0/Chess.exe new file mode 100644 index 0000000..5a3fc37 Binary files /dev/null and b/Chess/bin/Debug/net6.0/Chess.exe differ diff --git a/Chess/bin/Debug/net6.0/Chess.pdb b/Chess/bin/Debug/net6.0/Chess.pdb new file mode 100644 index 0000000..baf966b Binary files /dev/null and b/Chess/bin/Debug/net6.0/Chess.pdb differ diff --git a/Chess/bin/Debug/net6.0/Chess.runtimeconfig.json b/Chess/bin/Debug/net6.0/Chess.runtimeconfig.json new file mode 100644 index 0000000..4986d16 --- /dev/null +++ b/Chess/bin/Debug/net6.0/Chess.runtimeconfig.json @@ -0,0 +1,9 @@ +{ + "runtimeOptions": { + "tfm": "net6.0", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "6.0.0" + } + } +} \ No newline at end of file diff --git a/Chess/bin/Debug/net6.0/ref/Chess.dll b/Chess/bin/Debug/net6.0/ref/Chess.dll new file mode 100644 index 0000000..83da1be Binary files /dev/null and b/Chess/bin/Debug/net6.0/ref/Chess.dll differ diff --git a/Chess/obj/Chess.csproj.nuget.dgspec.json b/Chess/obj/Chess.csproj.nuget.dgspec.json new file mode 100644 index 0000000..2f7f26f --- /dev/null +++ b/Chess/obj/Chess.csproj.nuget.dgspec.json @@ -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" + } + } + } + } +} \ No newline at end of file diff --git a/Chess/obj/Chess.csproj.nuget.g.props b/Chess/obj/Chess.csproj.nuget.g.props new file mode 100644 index 0000000..26c1491 --- /dev/null +++ b/Chess/obj/Chess.csproj.nuget.g.props @@ -0,0 +1,15 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + /home/osdesa/.nuget/packages/ + /home/osdesa/.nuget/packages/ + PackageReference + 6.4.2 + + + + + \ No newline at end of file diff --git a/Chess/obj/Chess.csproj.nuget.g.targets b/Chess/obj/Chess.csproj.nuget.g.targets new file mode 100644 index 0000000..35a7576 --- /dev/null +++ b/Chess/obj/Chess.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Chess/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs b/Chess/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs new file mode 100644 index 0000000..ed92695 --- /dev/null +++ b/Chess/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] diff --git a/Chess/obj/Debug/net6.0/Chess.AssemblyInfo.cs b/Chess/obj/Debug/net6.0/Chess.AssemblyInfo.cs new file mode 100644 index 0000000..ac72064 --- /dev/null +++ b/Chess/obj/Debug/net6.0/Chess.AssemblyInfo.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +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. + diff --git a/Chess/obj/Debug/net6.0/Chess.AssemblyInfoInputs.cache b/Chess/obj/Debug/net6.0/Chess.AssemblyInfoInputs.cache new file mode 100644 index 0000000..60ff552 --- /dev/null +++ b/Chess/obj/Debug/net6.0/Chess.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +e0e0edb49f36c9ab138f7409cfb286ad9d71eca2 diff --git a/Chess/obj/Debug/net6.0/Chess.GeneratedMSBuildEditorConfig.editorconfig b/Chess/obj/Debug/net6.0/Chess.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..b1a81bd --- /dev/null +++ b/Chess/obj/Debug/net6.0/Chess.GeneratedMSBuildEditorConfig.editorconfig @@ -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/ diff --git a/Chess/obj/Debug/net6.0/Chess.GlobalUsings.g.cs b/Chess/obj/Debug/net6.0/Chess.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/Chess/obj/Debug/net6.0/Chess.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +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; diff --git a/Chess/obj/Debug/net6.0/Chess.assets.cache b/Chess/obj/Debug/net6.0/Chess.assets.cache new file mode 100644 index 0000000..a50c9ac Binary files /dev/null and b/Chess/obj/Debug/net6.0/Chess.assets.cache differ diff --git a/Chess/obj/Debug/net6.0/Chess.csproj.AssemblyReference.cache b/Chess/obj/Debug/net6.0/Chess.csproj.AssemblyReference.cache new file mode 100644 index 0000000..7901ff4 Binary files /dev/null and b/Chess/obj/Debug/net6.0/Chess.csproj.AssemblyReference.cache differ diff --git a/Chess/obj/Debug/net6.0/Chess.csproj.CoreCompileInputs.cache b/Chess/obj/Debug/net6.0/Chess.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..4fc256d --- /dev/null +++ b/Chess/obj/Debug/net6.0/Chess.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +134d49001f05e87215a1a3e58326abb2e93700d8 diff --git a/Chess/obj/Debug/net6.0/Chess.csproj.FileListAbsolute.txt b/Chess/obj/Debug/net6.0/Chess.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..24931c0 --- /dev/null +++ b/Chess/obj/Debug/net6.0/Chess.csproj.FileListAbsolute.txt @@ -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 diff --git a/Chess/obj/Debug/net6.0/Chess.dll b/Chess/obj/Debug/net6.0/Chess.dll new file mode 100644 index 0000000..1800617 Binary files /dev/null and b/Chess/obj/Debug/net6.0/Chess.dll differ diff --git a/Chess/obj/Debug/net6.0/Chess.genruntimeconfig.cache b/Chess/obj/Debug/net6.0/Chess.genruntimeconfig.cache new file mode 100644 index 0000000..cfec0b4 --- /dev/null +++ b/Chess/obj/Debug/net6.0/Chess.genruntimeconfig.cache @@ -0,0 +1 @@ +6da4f0798a6a551712be458e7fb5b0b2cb9be9b7 diff --git a/Chess/obj/Debug/net6.0/Chess.pdb b/Chess/obj/Debug/net6.0/Chess.pdb new file mode 100644 index 0000000..baf966b Binary files /dev/null and b/Chess/obj/Debug/net6.0/Chess.pdb differ diff --git a/Chess/obj/Debug/net6.0/apphost b/Chess/obj/Debug/net6.0/apphost new file mode 100755 index 0000000..fc8df2c Binary files /dev/null and b/Chess/obj/Debug/net6.0/apphost differ diff --git a/Chess/obj/Debug/net6.0/apphost.exe b/Chess/obj/Debug/net6.0/apphost.exe new file mode 100644 index 0000000..5a3fc37 Binary files /dev/null and b/Chess/obj/Debug/net6.0/apphost.exe differ diff --git a/Chess/obj/Debug/net6.0/ref/Chess.dll b/Chess/obj/Debug/net6.0/ref/Chess.dll new file mode 100644 index 0000000..8856349 Binary files /dev/null and b/Chess/obj/Debug/net6.0/ref/Chess.dll differ diff --git a/Chess/obj/Debug/net6.0/refint/Chess.dll b/Chess/obj/Debug/net6.0/refint/Chess.dll new file mode 100644 index 0000000..8856349 Binary files /dev/null and b/Chess/obj/Debug/net6.0/refint/Chess.dll differ diff --git a/Chess/obj/project.assets.json b/Chess/obj/project.assets.json new file mode 100644 index 0000000..d5f4ed1 --- /dev/null +++ b/Chess/obj/project.assets.json @@ -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" + } + } + } +} \ No newline at end of file diff --git a/Chess/obj/project.nuget.cache b/Chess/obj/project.nuget.cache new file mode 100644 index 0000000..84349bb --- /dev/null +++ b/Chess/obj/project.nuget.cache @@ -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": [] +} \ No newline at end of file diff --git a/Chess/obj/project.packagespec.json b/Chess/obj/project.packagespec.json new file mode 100644 index 0000000..1433e90 --- /dev/null +++ b/Chess/obj/project.packagespec.json @@ -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"}} \ No newline at end of file diff --git a/Chess/obj/rider.project.restore.info b/Chess/obj/rider.project.restore.info new file mode 100644 index 0000000..94ff8ec --- /dev/null +++ b/Chess/obj/rider.project.restore.info @@ -0,0 +1 @@ +16447479997171428 \ No newline at end of file diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..3751555 --- /dev/null +++ b/Program.cs @@ -0,0 +1,2 @@ +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, World!"); diff --git a/obj/Chess.csproj.nuget.dgspec.json b/obj/Chess.csproj.nuget.dgspec.json new file mode 100644 index 0000000..15fa5ed --- /dev/null +++ b/obj/Chess.csproj.nuget.dgspec.json @@ -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" + } + } + } + } +} \ No newline at end of file diff --git a/obj/Chess.csproj.nuget.g.props b/obj/Chess.csproj.nuget.g.props new file mode 100644 index 0000000..26c1491 --- /dev/null +++ b/obj/Chess.csproj.nuget.g.props @@ -0,0 +1,15 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + /home/osdesa/.nuget/packages/ + /home/osdesa/.nuget/packages/ + PackageReference + 6.4.2 + + + + + \ No newline at end of file diff --git a/obj/Chess.csproj.nuget.g.targets b/obj/Chess.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/obj/Chess.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/obj/Debug/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs b/obj/Debug/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs new file mode 100644 index 0000000..4257f4b --- /dev/null +++ b/obj/Debug/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")] diff --git a/obj/Debug/net7.0/Chess.AssemblyInfo.cs b/obj/Debug/net7.0/Chess.AssemblyInfo.cs new file mode 100644 index 0000000..ac72064 --- /dev/null +++ b/obj/Debug/net7.0/Chess.AssemblyInfo.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +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. + diff --git a/obj/Debug/net7.0/Chess.AssemblyInfoInputs.cache b/obj/Debug/net7.0/Chess.AssemblyInfoInputs.cache new file mode 100644 index 0000000..60ff552 --- /dev/null +++ b/obj/Debug/net7.0/Chess.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +e0e0edb49f36c9ab138f7409cfb286ad9d71eca2 diff --git a/obj/Debug/net7.0/Chess.GeneratedMSBuildEditorConfig.editorconfig b/obj/Debug/net7.0/Chess.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..3516dd3 --- /dev/null +++ b/obj/Debug/net7.0/Chess.GeneratedMSBuildEditorConfig.editorconfig @@ -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/ diff --git a/obj/Debug/net7.0/Chess.GlobalUsings.g.cs b/obj/Debug/net7.0/Chess.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/obj/Debug/net7.0/Chess.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +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; diff --git a/obj/Debug/net7.0/Chess.assets.cache b/obj/Debug/net7.0/Chess.assets.cache new file mode 100644 index 0000000..506fc0a Binary files /dev/null and b/obj/Debug/net7.0/Chess.assets.cache differ diff --git a/obj/Debug/net7.0/Chess.csproj.AssemblyReference.cache b/obj/Debug/net7.0/Chess.csproj.AssemblyReference.cache new file mode 100644 index 0000000..e3da912 Binary files /dev/null and b/obj/Debug/net7.0/Chess.csproj.AssemblyReference.cache differ diff --git a/obj/Debug/net7.0/Chess.csproj.CoreCompileInputs.cache b/obj/Debug/net7.0/Chess.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..c046a18 --- /dev/null +++ b/obj/Debug/net7.0/Chess.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +81f4143e96c1e454a30dbac6c8bd5dc7dba857f8 diff --git a/obj/Debug/net7.0/Chess.csproj.FileListAbsolute.txt b/obj/Debug/net7.0/Chess.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..6134ddb --- /dev/null +++ b/obj/Debug/net7.0/Chess.csproj.FileListAbsolute.txt @@ -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 diff --git a/obj/project.assets.json b/obj/project.assets.json new file mode 100644 index 0000000..6712c55 --- /dev/null +++ b/obj/project.assets.json @@ -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" + } + } + } +} \ No newline at end of file diff --git a/obj/project.nuget.cache b/obj/project.nuget.cache new file mode 100644 index 0000000..8628e8b --- /dev/null +++ b/obj/project.nuget.cache @@ -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": [] +} \ No newline at end of file