-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CreateProcess unreachable #1
Comments
Hi, @geckoo1337 thanks for letting me know about the error!
I recommend replacing the following code to the previous ConnectToEngine (engine.hpp file) function:
Please let me know if everything is working correctly in your environment! And then I will replace the old file in my repo! |
Hello. Thank you for your feedback. I tested your method, but unfortunately it does not work. I was always the same error and it seems to me that I cannot cast a pointer no? I guess that it is just a matter of C++ semantics - something different among compilers. Annoying 🦝 However I tried something and it works :
TCHAR is the key compiling under Visual Studio 2022. Thank you Gabriele for your help. I wish you the best ++ |
Hey there! Thanks for the update, and I’m really glad it's working! Using TCHAR was a smart move — it keeps the code compatible with both ANSI and Unicode modes, which is especially handy since Visual Studio defaults to Unicode. This way you don’t have to worry about manually handling char* vs wchar_t*, and everything works smoothly across different setups. Nice work figuring that out! By the way, what do you think of the project overall? Does it seem fun or useful? I’m curious — what do you plan to use it for? If you have any ideas or feedback, I’d love to hear about it! Then, I think, I will close this issue |
Hello Gabriele. This project is really cool. At first, I used it in order to understand how to integrate VCPKG in a project so as to use the SFML library. It seems to me that the code has been developed to be compiled using Code::Block or something similar. But now, according to my passion about Chess games - and C++, I would like to do a full application for everyone - a Chess game in which players can configure Skill level, moves, sounds and more. The code is clean - StockFish is powerful. So the door is open. I will post a new branch for this project on GitHub soon. Question. Is there a way to check move validation using StockFish ? I guess that we can check moves according to their piece, developing a function which returns a boolean, but is there a better way ? |
Hii! Wow, I love your idea of turning this project into a complete chess game for everyone! That sounds great, especially with features like difficulty levels, sounds and move configuration. I’d love to see how it develops, and I’d love to actively contribute to the project, if you want me in, obv. Working together to create a polished end product would be a fantastic opportunity, especially given our shared passion for chess and C++. Regarding your question about move checking with Stockfish: Yes, there is a way to use it, but it may not be the most efficient, and I'm not sure how to do it properly. I think you send the move to Stockfish with the position command and check if it is processed without error:
Use the go perft command to get all legal moves for a position and compare them.
Stockfish will return all legal moves and you can compare your move with this list. |
Just wanted to say, from the official GitHub page related to Stockfish, I found really good detailed info about the different commands of Stockfish. There, it is perfectly described what the UCI protocol is and how to give commands to the engine. Check this: But then I found a few of the commands there, which my Stockfish executable does not recognize presumably because they belong to more modern implementations, which are not present in my file. That said, most commands work, including the most important ones. |
Hello. I had read these UCI explanations at first when I wondered how to develop a chess game. |
I will try to implement something, if I get results I will inform you |
Hello. In this code, there is a problem with the CreateProcess function which does not accept a string as an argument. I am trying to convert the path in order to synchronize the StockFish.exe engine with the application, but I cannot. Have you an idea how I could fix this error? I am using VS2022. Thanks ++
The text was updated successfully, but these errors were encountered: