*Source code for the entire project* If you don't want to write the code yourself, it's available here for 3$ (and free for Patreon supporters): www.patreon.com/OttoBotCode/shop/78701 Your support would be a massive help for me and my channel!
love the entire series! i coded along side you and the project works great. i also learned a ton. thank you so much for this tutorial series! i really hope you’ll make a cpu series for this as well!
Maybe you don't have the right components installed in Visual Studio. Try opening the Visual Studio Installer and make sure you have ".NET desktop development" installed.
hi, i'm getting some kind of menu with icon in the title bar, do you know how to put this off ? the first icon said go to live visual tree, the 2nd show in xaml live preview + 6 other icon.
That menu is not part of your program, it's for debugging purposes. You are probably running the game in Debug mode. If you switch to release mode or run the program using "Ctrl + F5" then you shouldn't see it 😊
I was looking for some projects to do in C# for my github portfolio as i'm seeing most of the developer or software engineering roles require some knowledge in C# .
Thank you 😊 I've created the assets in Illustrator and Photoshop. I've tried to pick dimensions large enough that the images should look good in full screen even on a high resolution monitor (without being excessively large of course).
Very cool project. I know nothing about C# but love everything about chess and programming, I wonder if you will implement the UCI Protocol (that way people can use any engine with your gui). Thanks for the video, will follow along despite knowing nothing about C#!
I had no idea that such a protocol exist, but that's great to know😊If you haven't used C# before, this tutorial might be tough, but best of luck and thanks for your comment!
@@F.DrKubix Maybe the ChessLogic project is set as the startup project. You cannot run a class library. Make sure that ChessUI is set as the start up project.
It will do perfectly fine for two human players playing against each, but you're right, it's not optimized for speed. My focus has been to make the code as simple and easy to follow as possible. Computer controlled players typically generate many states searching for good moves. For these types of players, it would be massively beneficial to use bitboards for representing the game state. The bitboard representation allows for much more efficient implementations of move generation for example. Thanks for your comment 😉
Great videos, thanks! The blank solution is not an available template in my Visual Studios 2022. Have you installed some specific tools or features to be able to choose it?
Not that I'm aware of. I read that some people with the same problem solved it like this: 1) Open Visual Studio Installer 2) Click the "Modify" button for your Visual Studio installation 3) Go to "Individual Components" 4) Check the box for ".NET Framework project and item templates" Let me know if it works! If not, you can just create a C# Class Library project, and then add a WPF Application project to the generated solution.
Sorry for the late answer. You don't need anything particular, as I show you all the code and explain what it does. That being said, it won't make sense unless you know C# basics like Classes, Methods, Arrays and even some more advanced topics like Inheritance & LINQ. If you are new to C#, I'd recommend trying to learn some basics first and then follow my Snake tutorial which is easier. Best of luck! 😊
Great tutorial my friend. I have a question about the video: why don't we just create the project as a C# Windows Form (.NET Framework) instead of a blank solution project?
I prefer WPF over WinForms but I think you're asking me why I made two seperate projects. Doing it this way decouples the code for the chess rules from the code that renders the game to the screen. Let's say you wanted to use a different GUI framework, like WinForms or something completely different. With our seperation, that would be easy to do because you could simply use "ChessLogic" without any modifications. If we just had one "Chess" project where the UI code and the Logic code were mixed together, then that would be much harder! I hope this makes sense 😉
I assume you're asking how to make the pieces move smoothly from one square to another. You would have to replace the UniformGrid for the pieces with a control that let's you position the images wherever you want, Canvas would probably be the right choice. With the Canvas you would have to change InitializeBoard to place the image controls correctly (we get that for free using a UniformGrid). When executing a move, you would get the image for the moving piece and update its position over a certain time interval. You could achieve this with an asynchronous method and Task.Delay, or perhaps using one of the built in animation classes! 😊
@@OttoBotCode I fixed it thank you for offering to help. I however have a much bigger issue now. I posted a comment on part #7 of your series describing the error. If you could take a look at it that would be great thank you. 😊 I just have to say the quality of your content is immaculate. Thank you for making and sharing the world I've learned a lot.
*Source code for the entire project*
If you don't want to write the code yourself, it's available here for 3$ (and free for Patreon supporters):
www.patreon.com/OttoBotCode/shop/78701
Your support would be a massive help for me and my channel!
Thanks you for this video. This video goes beyond making a chess game. It teaches you how to begin a programming project in visual studio.
Thanks for your comment. I'm glad you like the video!
love the entire series! i coded along side you and the project works great. i also learned a ton. thank you so much for this tutorial series! i really hope you’ll make a cpu series for this as well!
When I click C# nothing appears. Am I doing smth wrong? 2:22
Me Too And I Cant Find Class Library
Simply it superb, Thanks.
is it because this video is old or can i not find like anything? the blank solutions etc, i cannot find those things
Maybe you don't have the right components installed in Visual Studio. Try opening the Visual Studio Installer and make sure you have ".NET desktop development" installed.
Great video, clear and succinct. Thank you.
I need help i need you to customise stockfish or any powerful engine for it to play a specific chess variant whose instruction i can provide
hi, i'm getting some kind of menu with icon in the title bar, do you know how to put this off ? the first icon said go to live visual tree, the 2nd show in xaml live preview + 6 other icon.
That menu is not part of your program, it's for debugging purposes. You are probably running the game in Debug mode. If you switch to release mode or run the program using "Ctrl + F5" then you shouldn't see it 😊
I was looking for some projects to do in C# for my github portfolio as i'm seeing most of the developer or software engineering roles require some knowledge in C# .
Very informative. Keep up the good work :) What software was used to produce the assets? How did you choose the best dimension for the pictures?
Thank you 😊 I've created the assets in Illustrator and Photoshop. I've tried to pick dimensions large enough that the images should look good in full screen even on a high resolution monitor (without being excessively large of course).
Just a quick question, Is this tutorial for a standalone chess game, or is it a UCI compatible GUI for uses with engines like stockfish?
This is a standalone chess game 😊
Very cool project. I know nothing about C# but love everything about chess and programming, I wonder if you will implement the UCI Protocol (that way people can use any engine with your gui). Thanks for the video, will follow along despite knowing nothing about C#!
I had no idea that such a protocol exist, but that's great to know😊If you haven't used C# before, this tutorial might be tough, but best of luck and thanks for your comment!
@@OttoBotCode Thank you so much, best luck to you too!.
Tolles Video.
i can't start a program like you in 7:28. Please help :(
It's "Ctrl" + "F5" on Windows 😉
@@OttoBotCode I did as you suggested, but when I open the program, it shows me some kind of exception or something similar. Please help xd
@@F.DrKubix Maybe the ChessLogic project is set as the startup project. You cannot run a class library. Make sure that ChessUI is set as the start up project.
@@OttoBotCode i made it, idk i'll try do this later. Thanks OttoBotCode
Do you also have a video of how to make a chess game like this in p5.js? I really need it
I do not see a WPF Application project option on VS for my Mac. Which other option should I use?
xmarian forms should work,
very nice, thank you. but I think when it comes to move gen, search, hash etc, this structure will be very slow.
It will do perfectly fine for two human players playing against each, but you're right, it's not optimized for speed. My focus has been to make the code as simple and easy to follow as possible.
Computer controlled players typically generate many states searching for good moves. For these types of players, it would be massively beneficial to use bitboards for representing the game state. The bitboard representation allows for much more efficient implementations of move generation for example.
Thanks for your comment 😉
Can you do this project in p5.js?
Great videos, thanks! The blank solution is not an available template in my Visual Studios 2022. Have you installed some specific tools or features to be able to choose it?
Not that I'm aware of.
I read that some people with the same problem solved it like this:
1) Open Visual Studio Installer
2) Click the "Modify" button for your Visual Studio installation
3) Go to "Individual Components"
4) Check the box for ".NET Framework project and item templates"
Let me know if it works!
If not, you can just create a C# Class Library project, and then add a WPF Application project to the generated solution.
What application do you use?
What i need to learn before building this project?
Sorry for the late answer.
You don't need anything particular, as I show you all the code and explain what it does. That being said, it won't make sense unless you know C# basics like Classes, Methods, Arrays and even some more advanced topics like Inheritance & LINQ. If you are new to C#, I'd recommend trying to learn some basics first and then follow my Snake tutorial which is easier. Best of luck! 😊
Hey! Great videos, it would be nice if u used git too in this projects tutorials, git is not user-friendly and u are a great teacher :))
Thanks. I'll keep your suggestion in mind!
This is 2 player only version or play versus computer also possible ?
Two player only.
Great tutorial my friend. I have a question about the video: why don't we just create the project as a C# Windows Form (.NET Framework) instead of a blank solution project?
I prefer WPF over WinForms but I think you're asking me why I made two seperate projects.
Doing it this way decouples the code for the chess rules from the code that renders the game to the screen.
Let's say you wanted to use a different GUI framework, like WinForms or something completely different. With our seperation, that would be easy to do because you could simply use "ChessLogic" without any modifications. If we just had one "Chess" project where the UI code and the Logic code were mixed together, then that would be much harder! I hope this makes sense 😉
@@OttoBotCode Thank you very much indeed. I get the main idea, your explanation has been quite helpful
How to make these movements smooth?
I assume you're asking how to make the pieces move smoothly from one square to another.
You would have to replace the UniformGrid for the pieces with a control that let's you position the images wherever you want, Canvas would probably be the right choice.
With the Canvas you would have to change InitializeBoard to place the image controls correctly (we get that for free using a UniformGrid).
When executing a move, you would get the image for the moving piece and update its position over a certain time interval. You could achieve this with an asynchronous method and Task.Delay, or perhaps using one of the built in animation classes! 😊
what is the purpose of the icon png
It is the icon we use for the game. It will show up in the upper left corner of the window and on the taskbar 😊
The icon is not turning blue for me and is causing errors. Am I missing a download?
Can you explain what you mean about "not turning blue" and also, what error do you get? Maybe I can help you 😊
@@OttoBotCode I fixed it thank you for offering to help.
I however have a much bigger issue now. I posted a comment on part #7 of your series describing the error. If you could take a look at it that would be great thank you. 😊
I just have to say the quality of your content is immaculate. Thank you for making and sharing the world I've learned a lot.
Most probably u didnt see the ">" at the end of the XAML ,try to put the icon inside it
can you provide a zip file link for this game
Dog the point of the tutorials is to show you how to do it
In what language are you coding?
C# for this project!
Morphy vs Count Isouard huh? :)
awesome
Please add AI
My big hope develop chess game with online multiplayer
Best of luck! I hope this series will help get you started 😊
Upload more videos fast
I'll do my best! 😉
@@OttoBotCode loved your to-do list project love from India
hi
lifu
unalive yourself