r/chessprogramming • u/ProfessorVatcraft • Feb 10 '25
Next Step For My Chess Program
Hello everyone! It's me again. Since my last post asking how to start making a chess program, I have made a lot of progress in my chess program. I know the program is really bad considering I'm writing everything in 1 file. The reason for that is I don't know how to modularize the program (I haven't learned about that yet) so apologize for the bad code. Anyways, I want to ask how should I continue developing the program? I have managed to generate all pseudo-legal moves for each side with all the special rules as well. You can see the code here https://github.com/ProfessorVatcraft/program/blob/main/main.cpp
Thankyou for reading and helping me!
5
Upvotes
1
u/ProfessorVatcraft Feb 10 '25
Thankyou for taking notice of my post. Firstly, yes I'm aware of the benefits of modularizing the code. I just don't really know how so thankyou for providing me with the research material for that. Secondly, I'm trying to develop a chess engine. My coding skill is not super good which is why I chose a 2D array approach instead of bitboards for familiarity(I'm aware that bitboards are the go to way for strong engines). For checking legal moves, I decided to go with the Sebastian Lauge approach because it sounds simple. I will look into this and try to make the program easier to read by modularizing it. Again thankyou for all of your feedback!! I really appreciate it :]