diff --git a/FC-Chess/.vscode/settings.json b/FC-Chess/.vscode/settings.json new file mode 100644 index 0000000..3d99a24 --- /dev/null +++ b/FC-Chess/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "files.associations": { + "atomic": "cpp" + } +} \ No newline at end of file diff --git a/FC-Chess/FC-Chess/CMakeLists.txt b/FC-Chess/FC-Chess/CMakeLists.txt index b5dbb34..a6486b3 100644 --- a/FC-Chess/FC-Chess/CMakeLists.txt +++ b/FC-Chess/FC-Chess/CMakeLists.txt @@ -4,7 +4,7 @@ cmake_minimum_required (VERSION 3.8) # Add source to this project's executable. -add_executable (FC-Chess "main.cpp" "fc-chess.cpp") +add_executable (FC-Chess "main.cpp" "fc-chess.cpp" "graphics.cpp") if (CMAKE_VERSION VERSION_GREATER 3.12) set_property(TARGET FC-Chess PROPERTY CXX_STANDARD 20) diff --git a/FC-Chess/FC-Chess/FC-Chess.cpp b/FC-Chess/FC-Chess/FC-Chess.cpp index e678c20..8c5cb6b 100644 --- a/FC-Chess/FC-Chess/FC-Chess.cpp +++ b/FC-Chess/FC-Chess/FC-Chess.cpp @@ -1,6 +1,42 @@ #include "fc-chess.h" -void FCC::Game::mainLoop() +void FCC::Chess::mainLoop() { - std::cout << "test" << std::endl; + FCC::ChessTUI tui; + + // preparing board: colors + for (int8_t i = 0; i < 8; i++) { + for (int j = 0; i < 2; i++) { + posColor[i][j] = (uint8_t)(PiecesColors::BLACK); + } + for (int j = 6; i < 8; i++) { + posColor[i][j] = (uint8_t)(PiecesColors::WHITE); + } + for (int j = 2; i < 7; i++) { + posColor[i][j] = (uint8_t)(PiecesColors::NONE); + } + } + // preparing board: pieces + for (int8_t i = 0; i < 8; i++) { + posPieces[1][i] = (uint8_t)(Pieces::PAWN); + posPieces[6][i] = (uint8_t)(Pieces::PAWN); + } + for (int8_t i = 0; i < 2; i++) { + posPieces[i][0] = (uint8_t)(Pieces::ROOK); + posPieces[i][7] = (uint8_t)(Pieces::ROOK); + posPieces[i][1] = (uint8_t)(Pieces::KNIGHT); + posPieces[i][6] = (uint8_t)(Pieces::KNIGHT); + posPieces[i][2] = (uint8_t)(Pieces::BISHOP); + posPieces[i][5] = (uint8_t)(Pieces::BISHOP); + posPieces[i][3] = (uint8_t)(Pieces::KING); + posPieces[i][4] = (uint8_t)(Pieces::QUEEN); + } + + // main loop + while(!gameEnded) { + + tui.mainLoop(); + } + + } \ No newline at end of file diff --git a/FC-Chess/FC-Chess/FC-Chess.h b/FC-Chess/FC-Chess/FC-Chess.h index bdca246..e2452b8 100644 --- a/FC-Chess/FC-Chess/FC-Chess.h +++ b/FC-Chess/FC-Chess/FC-Chess.h @@ -1,11 +1,40 @@ #pragma once #include +#include "graphics.h" + namespace FCC { - class Game + // vars + enum class Pieces { + NONE, + PAWN, + ROOK, + BISHOP, + KNIGHT, + QUEEN, + KING + }; + enum class PiecesColors { + NONE, + BLACK = 10, + WHITE = 20 + }; + + // classes and funcs + class Chess { public: + // constructor and destructor + Chess() = default; + ~Chess() = default; + + // vars + uint8_t posPieces[8][8], posColor[8][8], posPossible[8][8]; + + // funcs void mainLoop(); + private: + bool gameEnded; }; } diff --git a/FC-Chess/FC-Chess/graphics.cpp b/FC-Chess/FC-Chess/graphics.cpp new file mode 100644 index 0000000..f64391b --- /dev/null +++ b/FC-Chess/FC-Chess/graphics.cpp @@ -0,0 +1,9 @@ +#include "graphics.h" + +void FCC::ChessTUI::mainLoop() { + +} + +void FCC::ChessTUI::testLoop() { + std::cout << "\u2654"; +} \ No newline at end of file diff --git a/FC-Chess/FC-Chess/graphics.h b/FC-Chess/FC-Chess/graphics.h new file mode 100644 index 0000000..9a5b3da --- /dev/null +++ b/FC-Chess/FC-Chess/graphics.h @@ -0,0 +1,14 @@ +#pragma once +#include + +#include "FC-Chess.h" + +namespace FCC +{ + class ChessTUI + { + public: + void mainLoop(); + void testLoop(); + }; +} \ No newline at end of file diff --git a/FC-Chess/FC-Chess/main.cpp b/FC-Chess/FC-Chess/main.cpp index 64e4630..b699344 100644 --- a/FC-Chess/FC-Chess/main.cpp +++ b/FC-Chess/FC-Chess/main.cpp @@ -3,11 +3,15 @@ #include "fc-chess.h" -using namespace std; +//using namespace std; int main() { - FCC::Game gm; + FCC::Chess gm; gm.mainLoop(); + + FCC::ChessTUI test; + test.testLoop(); + return 0; } diff --git a/FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/cache-v2-fde3af63a9a3a8dfafdb.json b/FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/cache-v2-c79b2379307bddcc286b.json similarity index 98% rename from FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/cache-v2-fde3af63a9a3a8dfafdb.json rename to FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/cache-v2-c79b2379307bddcc286b.json index b721744..aa3c0ce 100644 --- a/FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/cache-v2-fde3af63a9a3a8dfafdb.json +++ b/FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/cache-v2-c79b2379307bddcc286b.json @@ -39,7 +39,7 @@ } ], "type" : "INTERNAL", - "value" : "d:/Files/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug" + "value" : "c:/Users/user/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug" }, { "name" : "CMAKE_CACHE_MAJOR_VERSION", @@ -515,7 +515,7 @@ } ], "type" : "INTERNAL", - "value" : "D:/Files/Documents/GitHub/FC-Chess/FC-Chess" + "value" : "C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess" }, { "name" : "CMAKE_INSTALL_PREFIX", @@ -527,7 +527,7 @@ } ], "type" : "PATH", - "value" : "D:/Files/Documents/GitHub/FC-Chess/FC-Chess/out/install/x64-debug" + "value" : "C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess/out/install/x64-debug" }, { "name" : "CMAKE_LINKER", @@ -1063,7 +1063,7 @@ } ], "type" : "STATIC", - "value" : "D:/Files/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug" + "value" : "C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug" }, { "name" : "FC-Chess_IS_TOP_LEVEL", @@ -1087,7 +1087,7 @@ } ], "type" : "STATIC", - "value" : "D:/Files/Documents/GitHub/FC-Chess/FC-Chess" + "value" : "C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess" } ], "kind" : "cache", diff --git a/FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/cmakeFiles-v1-298425cd30f82a30a5d5.json b/FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/cmakeFiles-v1-50fe7d13b203d3efa289.json similarity index 99% rename from FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/cmakeFiles-v1-298425cd30f82a30a5d5.json rename to FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/cmakeFiles-v1-50fe7d13b203d3efa289.json index c12feee..ae72bbb 100644 --- a/FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/cmakeFiles-v1-298425cd30f82a30a5d5.json +++ b/FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/cmakeFiles-v1-50fe7d13b203d3efa289.json @@ -720,8 +720,8 @@ "kind" : "cmakeFiles", "paths" : { - "build" : "D:/Files/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug", - "source" : "D:/Files/Documents/GitHub/FC-Chess/FC-Chess" + "build" : "C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug", + "source" : "C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess" }, "version" : { diff --git a/FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/codemodel-v2-5456e29dbb4dfe3a6f57.json b/FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/codemodel-v2-aa32d4dbdd5dde823259.json similarity index 83% rename from FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/codemodel-v2-5456e29dbb4dfe3a6f57.json rename to FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/codemodel-v2-aa32d4dbdd5dde823259.json index 666577b..ed52a7b 100644 --- a/FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/codemodel-v2-5456e29dbb4dfe3a6f57.json +++ b/FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/codemodel-v2-aa32d4dbdd5dde823259.json @@ -55,7 +55,7 @@ { "directoryIndex" : 1, "id" : "FC-Chess::@314738accb03fcc8cafb", - "jsonFile" : "target-FC-Chess-Debug-2c684a82381827f8011e.json", + "jsonFile" : "target-FC-Chess-Debug-ad4d37c3396bbf2545b4.json", "name" : "FC-Chess", "projectIndex" : 0 } @@ -65,8 +65,8 @@ "kind" : "codemodel", "paths" : { - "build" : "D:/Files/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug", - "source" : "D:/Files/Documents/GitHub/FC-Chess/FC-Chess" + "build" : "C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug", + "source" : "C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess" }, "version" : { diff --git a/FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/index-2022-08-02T20-07-16-0989.json b/FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/index-2022-08-07T15-59-14-0605.json similarity index 86% rename from FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/index-2022-08-02T20-07-16-0989.json rename to FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/index-2022-08-07T15-59-14-0605.json index 2f721b5..7bda96e 100644 --- a/FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/index-2022-08-02T20-07-16-0989.json +++ b/FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/index-2022-08-07T15-59-14-0605.json @@ -26,7 +26,7 @@ "objects" : [ { - "jsonFile" : "codemodel-v2-5456e29dbb4dfe3a6f57.json", + "jsonFile" : "codemodel-v2-aa32d4dbdd5dde823259.json", "kind" : "codemodel", "version" : { @@ -35,7 +35,7 @@ } }, { - "jsonFile" : "cache-v2-fde3af63a9a3a8dfafdb.json", + "jsonFile" : "cache-v2-c79b2379307bddcc286b.json", "kind" : "cache", "version" : { @@ -44,7 +44,7 @@ } }, { - "jsonFile" : "cmakeFiles-v1-298425cd30f82a30a5d5.json", + "jsonFile" : "cmakeFiles-v1-50fe7d13b203d3efa289.json", "kind" : "cmakeFiles", "version" : { @@ -90,7 +90,7 @@ "responses" : [ { - "jsonFile" : "cache-v2-fde3af63a9a3a8dfafdb.json", + "jsonFile" : "cache-v2-c79b2379307bddcc286b.json", "kind" : "cache", "version" : { @@ -99,7 +99,7 @@ } }, { - "jsonFile" : "cmakeFiles-v1-298425cd30f82a30a5d5.json", + "jsonFile" : "cmakeFiles-v1-50fe7d13b203d3efa289.json", "kind" : "cmakeFiles", "version" : { @@ -108,7 +108,7 @@ } }, { - "jsonFile" : "codemodel-v2-5456e29dbb4dfe3a6f57.json", + "jsonFile" : "codemodel-v2-aa32d4dbdd5dde823259.json", "kind" : "codemodel", "version" : { diff --git a/FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/target-FC-Chess-Debug-2c684a82381827f8011e.json b/FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/target-FC-Chess-Debug-ad4d37c3396bbf2545b4.json similarity index 90% rename from FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/target-FC-Chess-Debug-2c684a82381827f8011e.json rename to FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/target-FC-Chess-Debug-ad4d37c3396bbf2545b4.json index 9032047..3067f42 100644 --- a/FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/target-FC-Chess-Debug-2c684a82381827f8011e.json +++ b/FC-Chess/out/build/x64-debug/.cmake/api/v1/reply/target-FC-Chess-Debug-ad4d37c3396bbf2545b4.json @@ -63,7 +63,8 @@ "sourceIndexes" : [ 0, - 1 + 1, + 2 ] } ], @@ -101,7 +102,8 @@ "sourceIndexes" : [ 0, - 1 + 1, + 2 ] } ], @@ -116,7 +118,13 @@ { "backtrace" : 1, "compileGroupIndex" : 0, - "path" : "FC-Chess/fc-chess.cpp", + "path" : "FC-Chess/FC-Chess.cpp", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "FC-Chess/graphics.cpp", "sourceGroupIndex" : 0 } ], diff --git a/FC-Chess/out/build/x64-debug/.ninja_deps b/FC-Chess/out/build/x64-debug/.ninja_deps index 00cf7e6..2488986 100644 Binary files a/FC-Chess/out/build/x64-debug/.ninja_deps and b/FC-Chess/out/build/x64-debug/.ninja_deps differ diff --git a/FC-Chess/out/build/x64-debug/.ninja_log b/FC-Chess/out/build/x64-debug/.ninja_log index 826b2e2..5897f7d 100644 --- a/FC-Chess/out/build/x64-debug/.ninja_log +++ b/FC-Chess/out/build/x64-debug/.ninja_log @@ -1,4 +1,9 @@ # ninja log v5 -0 491 6811741436989060 FC-Chess/CMakeFiles/FC-Chess.dir/main.cpp.obj 79ac24bf236c1df0 -2 496 6811741437029065 FC-Chess/CMakeFiles/FC-Chess.dir/fc-chess.cpp.obj 90b915f85686613b -496 941 6811741441030672 FC-Chess/FC-Chess.exe e6f1f1d5afad7a00 +1 1125 6815911745643934 FC-Chess/CMakeFiles/FC-Chess.dir/main.cpp.obj 42093eb89a1b523b +7 1128 6815911745643934 FC-Chess/CMakeFiles/FC-Chess.dir/FC-Chess.cpp.obj 6426bc77d1582334 +13 1131 6815911745716140 FC-Chess/CMakeFiles/FC-Chess.dir/graphics.cpp.obj 1f81da9c8896838a +1132 1473 6815911749026323 FC-Chess/FC-Chess.exe eb95614c7078b318 +1 737 6815913934815994 FC-Chess/CMakeFiles/FC-Chess.dir/graphics.cpp.obj 1f81da9c8896838a +739 946 6815913936547088 FC-Chess/FC-Chess.exe eb95614c7078b318 +1 713 6815914578393460 FC-Chess/CMakeFiles/FC-Chess.dir/graphics.cpp.obj 1f81da9c8896838a +713 890 6815914579808087 FC-Chess/FC-Chess.exe eb95614c7078b318 diff --git a/FC-Chess/out/build/x64-debug/CMakeCache.txt b/FC-Chess/out/build/x64-debug/CMakeCache.txt index 2f034a7..4e28631 100644 --- a/FC-Chess/out/build/x64-debug/CMakeCache.txt +++ b/FC-Chess/out/build/x64-debug/CMakeCache.txt @@ -1,5 +1,5 @@ # This is the CMakeCache file. -# For build in directory: d:/Files/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug +# For build in directory: c:/Users/user/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug # It was generated by CMake: C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe # You can edit this file to change values found and used by cmake. # If you do not want to change any of the values, simply exit the editor. @@ -81,7 +81,7 @@ CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL CMAKE_EXPORT_COMPILE_COMMANDS:BOOL= //No help, variable specified on the command line. -CMAKE_INSTALL_PREFIX:PATH=D:/Files/Documents/GitHub/FC-Chess/FC-Chess/out/install/x64-debug +CMAKE_INSTALL_PREFIX:PATH=C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess/out/install/x64-debug //Path to a program. CMAKE_LINKER:FILEPATH=C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/link.exe @@ -193,13 +193,13 @@ CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE //Value Computed by CMake -FC-Chess_BINARY_DIR:STATIC=D:/Files/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug +FC-Chess_BINARY_DIR:STATIC=C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug //Value Computed by CMake FC-Chess_IS_TOP_LEVEL:STATIC=ON //Value Computed by CMake -FC-Chess_SOURCE_DIR:STATIC=D:/Files/Documents/GitHub/FC-Chess/FC-Chess +FC-Chess_SOURCE_DIR:STATIC=C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess ######################## @@ -209,7 +209,7 @@ FC-Chess_SOURCE_DIR:STATIC=D:/Files/Documents/GitHub/FC-Chess/FC-Chess //ADVANCED property for variable: CMAKE_AR CMAKE_AR-ADVANCED:INTERNAL=1 //This is the directory where this CMakeCache.txt was created -CMAKE_CACHEFILE_DIR:INTERNAL=d:/Files/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug +CMAKE_CACHEFILE_DIR:INTERNAL=c:/Users/user/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug //Major version of cmake used to create the current loaded cache CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3 //Minor version of cmake used to create the current loaded cache @@ -276,7 +276,7 @@ CMAKE_GENERATOR_PLATFORM:INTERNAL= CMAKE_GENERATOR_TOOLSET:INTERNAL= //Source directory with the top level CMakeLists.txt file for this // project -CMAKE_HOME_DIRECTORY:INTERNAL=D:/Files/Documents/GitHub/FC-Chess/FC-Chess +CMAKE_HOME_DIRECTORY:INTERNAL=C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess //ADVANCED property for variable: CMAKE_LINKER CMAKE_LINKER-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS diff --git a/FC-Chess/out/build/x64-debug/CMakeFiles/3.22.22040401-MSVC_2/CMakeDetermineCompilerABI_C.bin b/FC-Chess/out/build/x64-debug/CMakeFiles/3.22.22040401-MSVC_2/CMakeDetermineCompilerABI_C.bin index 5c0561e..96f8850 100644 Binary files a/FC-Chess/out/build/x64-debug/CMakeFiles/3.22.22040401-MSVC_2/CMakeDetermineCompilerABI_C.bin and b/FC-Chess/out/build/x64-debug/CMakeFiles/3.22.22040401-MSVC_2/CMakeDetermineCompilerABI_C.bin differ diff --git a/FC-Chess/out/build/x64-debug/CMakeFiles/3.22.22040401-MSVC_2/CMakeDetermineCompilerABI_CXX.bin b/FC-Chess/out/build/x64-debug/CMakeFiles/3.22.22040401-MSVC_2/CMakeDetermineCompilerABI_CXX.bin index 7da9ce7..984b04b 100644 Binary files a/FC-Chess/out/build/x64-debug/CMakeFiles/3.22.22040401-MSVC_2/CMakeDetermineCompilerABI_CXX.bin and b/FC-Chess/out/build/x64-debug/CMakeFiles/3.22.22040401-MSVC_2/CMakeDetermineCompilerABI_CXX.bin differ diff --git a/FC-Chess/out/build/x64-debug/CMakeFiles/3.22.22040401-MSVC_2/CompilerIdC/CMakeCCompilerId.exe b/FC-Chess/out/build/x64-debug/CMakeFiles/3.22.22040401-MSVC_2/CompilerIdC/CMakeCCompilerId.exe index 098346a..7b39083 100644 Binary files a/FC-Chess/out/build/x64-debug/CMakeFiles/3.22.22040401-MSVC_2/CompilerIdC/CMakeCCompilerId.exe and b/FC-Chess/out/build/x64-debug/CMakeFiles/3.22.22040401-MSVC_2/CompilerIdC/CMakeCCompilerId.exe differ diff --git a/FC-Chess/out/build/x64-debug/CMakeFiles/3.22.22040401-MSVC_2/CompilerIdCXX/CMakeCXXCompilerId.exe b/FC-Chess/out/build/x64-debug/CMakeFiles/3.22.22040401-MSVC_2/CompilerIdCXX/CMakeCXXCompilerId.exe index 38c980d..a4170d4 100644 Binary files a/FC-Chess/out/build/x64-debug/CMakeFiles/3.22.22040401-MSVC_2/CompilerIdCXX/CMakeCXXCompilerId.exe and b/FC-Chess/out/build/x64-debug/CMakeFiles/3.22.22040401-MSVC_2/CompilerIdCXX/CMakeCXXCompilerId.exe differ diff --git a/FC-Chess/out/build/x64-debug/CMakeFiles/TargetDirectories.txt b/FC-Chess/out/build/x64-debug/CMakeFiles/TargetDirectories.txt index c073a58..608cd90 100644 --- a/FC-Chess/out/build/x64-debug/CMakeFiles/TargetDirectories.txt +++ b/FC-Chess/out/build/x64-debug/CMakeFiles/TargetDirectories.txt @@ -1,5 +1,5 @@ -D:/Files/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug/CMakeFiles/edit_cache.dir -D:/Files/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug/CMakeFiles/rebuild_cache.dir -D:/Files/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug/FC-Chess/CMakeFiles/FC-Chess.dir -D:/Files/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug/FC-Chess/CMakeFiles/edit_cache.dir -D:/Files/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug/FC-Chess/CMakeFiles/rebuild_cache.dir +C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug/CMakeFiles/edit_cache.dir +C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug/CMakeFiles/rebuild_cache.dir +C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug/FC-Chess/CMakeFiles/FC-Chess.dir +C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug/FC-Chess/CMakeFiles/edit_cache.dir +C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug/FC-Chess/CMakeFiles/rebuild_cache.dir diff --git a/FC-Chess/out/build/x64-debug/CMakeFiles/rules.ninja b/FC-Chess/out/build/x64-debug/CMakeFiles/rules.ninja index ff3a5c6..3bd3907 100644 --- a/FC-Chess/out/build/x64-debug/CMakeFiles/rules.ninja +++ b/FC-Chess/out/build/x64-debug/CMakeFiles/rules.ninja @@ -30,7 +30,7 @@ rule CUSTOM_COMMAND rule CXX_COMPILER__FC-Chess_Debug deps = msvc - command = C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1432~1.313\bin\Hostx64\x64\cl.exe /nologo /TP $DEFINES $INCLUDES $FLAGS /showIncludes /Fo$out /Fd$TARGET_COMPILE_PDB /FS -c $in + command = C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1432~1.313\bin\Hostx64\x64\cl.exe /nologo /TP $DEFINES $INCLUDES $FLAGS /showIncludes /Fo$out /Fd$TARGET_COMPILE_PDB /FS -c $in description = Building CXX object $out @@ -38,7 +38,7 @@ rule CXX_COMPILER__FC-Chess_Debug # Rule for linking CXX executable. rule CXX_EXECUTABLE_LINKER__FC-Chess_Debug - command = cmd.exe /C "$PRE_LINK && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=$OBJECT_DIR --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100190~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100190~1.0\x64\mt.exe --manifests $MANIFESTS -- C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1432~1.313\bin\Hostx64\x64\link.exe /nologo $in /out:$TARGET_FILE /implib:$TARGET_IMPLIB /pdb:$TARGET_PDB /version:0.0 $LINK_FLAGS $LINK_PATH $LINK_LIBRARIES && $POST_BUILD" + command = cmd.exe /C "$PRE_LINK && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_exe --intdir=$OBJECT_DIR --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100190~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100190~1.0\x64\mt.exe --manifests $MANIFESTS -- C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1432~1.313\bin\Hostx64\x64\link.exe /nologo $in /out:$TARGET_FILE /implib:$TARGET_IMPLIB /pdb:$TARGET_PDB /version:0.0 $LINK_FLAGS $LINK_PATH $LINK_LIBRARIES && $POST_BUILD" description = Linking CXX executable $TARGET_FILE restat = $RESTAT @@ -47,7 +47,7 @@ rule CXX_EXECUTABLE_LINKER__FC-Chess_Debug # Rule for re-running cmake. rule RERUN_CMAKE - command = "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" --regenerate-during-build -SD:\Files\Documents\GitHub\FC-Chess\FC-Chess -BD:\Files\Documents\GitHub\FC-Chess\FC-Chess\out\build\x64-debug + command = "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" --regenerate-during-build -SC:\Users\user\Documents\GitHub\FC-Chess\FC-Chess -BC:\Users\user\Documents\GitHub\FC-Chess\FC-Chess\out\build\x64-debug description = Re-running CMake... generator = 1 diff --git a/FC-Chess/out/build/x64-debug/FC-Chess/CMakeFiles/FC-Chess.dir/manifest.rc b/FC-Chess/out/build/x64-debug/FC-Chess/CMakeFiles/FC-Chess.dir/manifest.rc index 5a3c5a6..2daf41b 100644 --- a/FC-Chess/out/build/x64-debug/FC-Chess/CMakeFiles/FC-Chess.dir/manifest.rc +++ b/FC-Chess/out/build/x64-debug/FC-Chess/CMakeFiles/FC-Chess.dir/manifest.rc @@ -1,2 +1,2 @@ #pragma code_page(65001) -1 /* CREATEPROCESS_MANIFEST_RESOURCE_ID */ 24 /* RT_MANIFEST */ "D:/Files/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug/FC-Chess/CMakeFiles/FC-Chess.dir/embed.manifest" \ No newline at end of file +1 /* CREATEPROCESS_MANIFEST_RESOURCE_ID */ 24 /* RT_MANIFEST */ "C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug/FC-Chess/CMakeFiles/FC-Chess.dir/embed.manifest" \ No newline at end of file diff --git a/FC-Chess/out/build/x64-debug/FC-Chess/FC-Chess.exe b/FC-Chess/out/build/x64-debug/FC-Chess/FC-Chess.exe index 9f3eb2b..142a3ba 100644 Binary files a/FC-Chess/out/build/x64-debug/FC-Chess/FC-Chess.exe and b/FC-Chess/out/build/x64-debug/FC-Chess/FC-Chess.exe differ diff --git a/FC-Chess/out/build/x64-debug/FC-Chess/cmake_install.cmake b/FC-Chess/out/build/x64-debug/FC-Chess/cmake_install.cmake index dc164e2..b2516be 100644 --- a/FC-Chess/out/build/x64-debug/FC-Chess/cmake_install.cmake +++ b/FC-Chess/out/build/x64-debug/FC-Chess/cmake_install.cmake @@ -1,8 +1,8 @@ -# Install script for directory: D:/Files/Documents/GitHub/FC-Chess/FC-Chess/FC-Chess +# Install script for directory: C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess/FC-Chess # Set the install prefix if(NOT DEFINED CMAKE_INSTALL_PREFIX) - set(CMAKE_INSTALL_PREFIX "D:/Files/Documents/GitHub/FC-Chess/FC-Chess/out/install/x64-debug") + set(CMAKE_INSTALL_PREFIX "C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess/out/install/x64-debug") endif() string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") diff --git a/FC-Chess/out/build/x64-debug/build.ninja b/FC-Chess/out/build/x64-debug/build.ninja index 946eb53..1e415f2 100644 --- a/FC-Chess/out/build/x64-debug/build.ninja +++ b/FC-Chess/out/build/x64-debug/build.ninja @@ -39,13 +39,13 @@ include CMakeFiles\rules.ninja ############################################# # Logical path to working directory; prefix for absolute paths. -cmake_ninja_workdir = D$:\Files\Documents\GitHub\FC-Chess\FC-Chess\out\build\x64-debug\ +cmake_ninja_workdir = C$:\Users\user\Documents\GitHub\FC-Chess\FC-Chess\out\build\x64-debug\ ############################################# # Utility command for edit_cache build CMakeFiles\edit_cache.util: CUSTOM_COMMAND - COMMAND = cmd.exe /C "cd /D D:\Files\Documents\GitHub\FC-Chess\FC-Chess\out\build\x64-debug && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E echo "No interactive CMake dialog available."" + COMMAND = cmd.exe /C "cd /D C:\Users\user\Documents\GitHub\FC-Chess\FC-Chess\out\build\x64-debug && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E echo "No interactive CMake dialog available."" DESC = No interactive CMake dialog available... restat = 1 @@ -56,7 +56,7 @@ build edit_cache: phony CMakeFiles\edit_cache.util # Utility command for rebuild_cache build CMakeFiles\rebuild_cache.util: CUSTOM_COMMAND - COMMAND = cmd.exe /C "cd /D D:\Files\Documents\GitHub\FC-Chess\FC-Chess\out\build\x64-debug && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" --regenerate-during-build -SD:\Files\Documents\GitHub\FC-Chess\FC-Chess -BD:\Files\Documents\GitHub\FC-Chess\FC-Chess\out\build\x64-debug" + COMMAND = cmd.exe /C "cd /D C:\Users\user\Documents\GitHub\FC-Chess\FC-Chess\out\build\x64-debug && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" --regenerate-during-build -SC:\Users\user\Documents\GitHub\FC-Chess\FC-Chess -BC:\Users\user\Documents\GitHub\FC-Chess\FC-Chess\out\build\x64-debug" DESC = Running CMake to regenerate build system... pool = console restat = 1 @@ -65,7 +65,7 @@ build rebuild_cache: phony CMakeFiles\rebuild_cache.util # ============================================================================= # Write statements declared in CMakeLists.txt: -# D:/Files/Documents/GitHub/FC-Chess/FC-Chess/CMakeLists.txt +# C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess/CMakeLists.txt # ============================================================================= # ============================================================================= @@ -77,14 +77,21 @@ build rebuild_cache: phony CMakeFiles\rebuild_cache.util build cmake_object_order_depends_target_FC-Chess: phony || FC-Chess\CMakeFiles\FC-Chess.dir -build FC-Chess\CMakeFiles\FC-Chess.dir\main.cpp.obj: CXX_COMPILER__FC-Chess_Debug D$:\Files\Documents\GitHub\FC-Chess\FC-Chess\FC-Chess\main.cpp || cmake_object_order_depends_target_FC-Chess +build FC-Chess\CMakeFiles\FC-Chess.dir\main.cpp.obj: CXX_COMPILER__FC-Chess_Debug C$:\Users\user\Documents\GitHub\FC-Chess\FC-Chess\FC-Chess\main.cpp || cmake_object_order_depends_target_FC-Chess FLAGS = /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Zi /Ob0 /Od /RTC1 -std:c++20 OBJECT_DIR = FC-Chess\CMakeFiles\FC-Chess.dir OBJECT_FILE_DIR = FC-Chess\CMakeFiles\FC-Chess.dir TARGET_COMPILE_PDB = FC-Chess\CMakeFiles\FC-Chess.dir\ TARGET_PDB = FC-Chess\FC-Chess.pdb -build FC-Chess\CMakeFiles\FC-Chess.dir\fc-chess.cpp.obj: CXX_COMPILER__FC-Chess_Debug D$:\Files\Documents\GitHub\FC-Chess\FC-Chess\FC-Chess\fc-chess.cpp || cmake_object_order_depends_target_FC-Chess +build FC-Chess\CMakeFiles\FC-Chess.dir\FC-Chess.cpp.obj: CXX_COMPILER__FC-Chess_Debug C$:\Users\user\Documents\GitHub\FC-Chess\FC-Chess\FC-Chess\FC-Chess.cpp || cmake_object_order_depends_target_FC-Chess + FLAGS = /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Zi /Ob0 /Od /RTC1 -std:c++20 + OBJECT_DIR = FC-Chess\CMakeFiles\FC-Chess.dir + OBJECT_FILE_DIR = FC-Chess\CMakeFiles\FC-Chess.dir + TARGET_COMPILE_PDB = FC-Chess\CMakeFiles\FC-Chess.dir\ + TARGET_PDB = FC-Chess\FC-Chess.pdb + +build FC-Chess\CMakeFiles\FC-Chess.dir\graphics.cpp.obj: CXX_COMPILER__FC-Chess_Debug C$:\Users\user\Documents\GitHub\FC-Chess\FC-Chess\FC-Chess\graphics.cpp || cmake_object_order_depends_target_FC-Chess FLAGS = /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Zi /Ob0 /Od /RTC1 -std:c++20 OBJECT_DIR = FC-Chess\CMakeFiles\FC-Chess.dir OBJECT_FILE_DIR = FC-Chess\CMakeFiles\FC-Chess.dir @@ -99,7 +106,7 @@ build FC-Chess\CMakeFiles\FC-Chess.dir\fc-chess.cpp.obj: CXX_COMPILER__FC-Chess_ ############################################# # Link the executable FC-Chess\FC-Chess.exe -build FC-Chess\FC-Chess.exe: CXX_EXECUTABLE_LINKER__FC-Chess_Debug FC-Chess\CMakeFiles\FC-Chess.dir\main.cpp.obj FC-Chess\CMakeFiles\FC-Chess.dir\fc-chess.cpp.obj +build FC-Chess\FC-Chess.exe: CXX_EXECUTABLE_LINKER__FC-Chess_Debug FC-Chess\CMakeFiles\FC-Chess.dir\main.cpp.obj FC-Chess\CMakeFiles\FC-Chess.dir\FC-Chess.cpp.obj FC-Chess\CMakeFiles\FC-Chess.dir\graphics.cpp.obj FLAGS = /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Zi /Ob0 /Od /RTC1 LINK_FLAGS = /machine:x64 /debug /INCREMENTAL /subsystem:console LINK_LIBRARIES = kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib @@ -116,7 +123,7 @@ build FC-Chess\FC-Chess.exe: CXX_EXECUTABLE_LINKER__FC-Chess_Debug FC-Chess\CMak # Utility command for edit_cache build FC-Chess\CMakeFiles\edit_cache.util: CUSTOM_COMMAND - COMMAND = cmd.exe /C "cd /D D:\Files\Documents\GitHub\FC-Chess\FC-Chess\out\build\x64-debug\FC-Chess && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E echo "No interactive CMake dialog available."" + COMMAND = cmd.exe /C "cd /D C:\Users\user\Documents\GitHub\FC-Chess\FC-Chess\out\build\x64-debug\FC-Chess && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E echo "No interactive CMake dialog available."" DESC = No interactive CMake dialog available... restat = 1 @@ -127,7 +134,7 @@ build FC-Chess\edit_cache: phony FC-Chess\CMakeFiles\edit_cache.util # Utility command for rebuild_cache build FC-Chess\CMakeFiles\rebuild_cache.util: CUSTOM_COMMAND - COMMAND = cmd.exe /C "cd /D D:\Files\Documents\GitHub\FC-Chess\FC-Chess\out\build\x64-debug\FC-Chess && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" --regenerate-during-build -SD:\Files\Documents\GitHub\FC-Chess\FC-Chess -BD:\Files\Documents\GitHub\FC-Chess\FC-Chess\out\build\x64-debug" + COMMAND = cmd.exe /C "cd /D C:\Users\user\Documents\GitHub\FC-Chess\FC-Chess\out\build\x64-debug\FC-Chess && "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" --regenerate-during-build -SC:\Users\user\Documents\GitHub\FC-Chess\FC-Chess -BC:\Users\user\Documents\GitHub\FC-Chess\FC-Chess\out\build\x64-debug" DESC = Running CMake to regenerate build system... pool = console restat = 1 @@ -147,14 +154,14 @@ build FC-Chess.exe: phony FC-Chess\FC-Chess.exe # ============================================================================= ############################################# -# Folder: D:/Files/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug +# Folder: C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug build all: phony FC-Chess\all # ============================================================================= ############################################# -# Folder: D:/Files/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug/FC-Chess +# Folder: C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug/FC-Chess build FC-Chess\all: phony FC-Chess\FC-Chess.exe diff --git a/FC-Chess/out/build/x64-debug/cmake_install.cmake b/FC-Chess/out/build/x64-debug/cmake_install.cmake index e82aa0c..77a6a8b 100644 --- a/FC-Chess/out/build/x64-debug/cmake_install.cmake +++ b/FC-Chess/out/build/x64-debug/cmake_install.cmake @@ -1,8 +1,8 @@ -# Install script for directory: D:/Files/Documents/GitHub/FC-Chess/FC-Chess +# Install script for directory: C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess # Set the install prefix if(NOT DEFINED CMAKE_INSTALL_PREFIX) - set(CMAKE_INSTALL_PREFIX "D:/Files/Documents/GitHub/FC-Chess/FC-Chess/out/install/x64-debug") + set(CMAKE_INSTALL_PREFIX "C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess/out/install/x64-debug") endif() string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") @@ -34,7 +34,7 @@ endif() if(NOT CMAKE_INSTALL_LOCAL_ONLY) # Include the install script for each subdirectory. - include("D:/Files/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug/FC-Chess/cmake_install.cmake") + include("C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug/FC-Chess/cmake_install.cmake") endif() @@ -46,5 +46,5 @@ endif() string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT "${CMAKE_INSTALL_MANIFEST_FILES}") -file(WRITE "D:/Files/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug/${CMAKE_INSTALL_MANIFEST}" +file(WRITE "C:/Users/user/Documents/GitHub/FC-Chess/FC-Chess/out/build/x64-debug/${CMAKE_INSTALL_MANIFEST}" "${CMAKE_INSTALL_MANIFEST_CONTENT}") diff --git a/FC-Chess/to do.md b/FC-Chess/to do.md new file mode 100644 index 0000000..428b440 --- /dev/null +++ b/FC-Chess/to do.md @@ -0,0 +1,12 @@ +# To Do List +## What features/functions do I need? +* save (autosave) +* load +* 2x 2D arrays: possible moves and positions +* check if move is allowed (vertical, etc.) +* check if another piece or rule blocks movement +* "special" rules +* switch between players +* check if position is out of boundaries +* TUI using ASCII +* \ No newline at end of file