
Making a chess engine is still long way to go...but Now it feels possible to me!
I have started journey towards it by trying to solve 8 Queens puzzle,
I tried to think about recursive solution, but failed at it...:(
So decided to try brute force method , and after 1 months struggle I got success!

There are so many coders who have solved it more efficiently than me ,...
.. but creating a program own your own gives great great feeling...
regards,
priyanvada
Attachment: 8QueenBruteForce_One_By_One-1.exe (920k)
Attachment: 8QueenBruteForceAll_at_Once.exe (920k)
Congrats! I'd rather want you programming a GUI than an engine, though!
Yes Of course! ... Engine Has First commitment,so it will come first ... still If I could manage a GUI , then it would really feel GREAT!!
In my case i started programming the "Nights Tour" then "four in a row" then checkers then ill do chess next :-)
I was writing an engine from scratch. I came up with my own board representation, movegen, and I have some other ideas. Probably someone used the ideas for my board rep/movegen before as they seem fairly intuitive but the point is I didn't use anything from another program. I doubt it is very fast or anything, just proud that I wrote it.
I got stuck on the UCI interface as I just don't understand strings. Then I started on other computer activities so it got kind of left in the closet :-/ I still hope to one day finish the UCI stuff so I can write the search/eval.
I got stuck on the UCI interface as I just don't understand strings. Then I started on other computer activities so it got kind of left in the closet :-/ I still hope to one day finish the UCI stuff so I can write the search/eval.
Hi! I found this site. Looks like a best intro for chess programming and very well explained.
http://www.sluijten.com/winglet/
http://www.sluijten.com/winglet/
Looks cool. Ty for the link.
Nice! :)
This is such well documented explanation!
Neat Documentation of Thoughts, Ideas, Explanation of algorithms and related codes is a main headache for me :(
Right now, Problem is that , I cant understand my-self a code written by me a week/month ago ... :(
Commenting every step in the code itself is one solution ...
But I wish I have a blueprint of all project (Aim/Objectives,Algorithm and Flowchart, Sequence of operation, functions blocks, and so on) in advance before I start to code ...
Right now it feel difficult to create and manage or revise all this, when a given project starts and develops over time ...
I wish some expert programmer guide me in this systematization of all resources a programmer has so that the programer does not have to think hard every time while visiting the code written any time ago in the past ...
regards,
priyanvada
This is such well documented explanation!
Neat Documentation of Thoughts, Ideas, Explanation of algorithms and related codes is a main headache for me :(
Right now, Problem is that , I cant understand my-self a code written by me a week/month ago ... :(
Commenting every step in the code itself is one solution ...
But I wish I have a blueprint of all project (Aim/Objectives,Algorithm and Flowchart, Sequence of operation, functions blocks, and so on) in advance before I start to code ...
Right now it feel difficult to create and manage or revise all this, when a given project starts and develops over time ...
I wish some expert programmer guide me in this systematization of all resources a programmer has so that the programer does not have to think hard every time while visiting the code written any time ago in the past ...
regards,
priyanvada
> Right now, Problem is that , I cant understand my-self a code written by me a week/month ago ... :(
This is quite normal.

> But I wish I have a blueprint of all project (Aim/Objectives,Algorithm and Flowchart, Sequence of operation, functions blocks, and so on) in advance before I start to code ...
Maybe you should read a book that deals with software design.
Steve McConnell: "Code Complete" or "Professional C++" by Gregoire, Solter and Kleper could be helpful.
> But I wish I have a blueprint of all project (Aim/Objectives,Algorithm and Flowchart, Sequence of operation, functions blocks, and so on) in advance before I start to code ...
Hi!
I've been there too a decade ago. But it isn't as hard as you expect if you just break them down to little details as how I managed it:
1. I knew basic C programming. C++ is not necessary though i knew it at beginners level.
2. Study basic search like Minimax and Alpha-Beta (easy and many sites explains them neatly).
3. Study bitboards. (explained in easy to understand terms in many sites. It's enjoyable!!)
After you acquired the above simple knowledge, the rest would be easier to digest from basic structure, movegen, evaluation to Transposition Tables. The author of winglet based it from Toms Simple chess Program(TSCP). TSCP used to be the 1st chess program I studied and found(as its name suggests) easy to follow. I remember another chess program I studied named FAILE and it wasn't hard too!
regards
If I were doing a GUI it would be made of .bmps LOL
I did the same this for board sizes 4 to 10.
I actually found embedded for loops easier than recursive modules back then.
I actually found embedded for loops easier than recursive modules back then.
I managed Recursion also!
In a flash this method gives all the solutions!!
regards,
priyanvada
In a flash this method gives all the solutions!!
regards,
priyanvada
Attachment: 8QueenRecursionAllAtOnce.exe (927k)
Attachment: 8QueenRecursion005_One_by_One.exe (927k)
Source Codes For all of above ...
Lots of unused harmless functions and other stuff is there in Recursion Source Code ...may someone delete that!
Output Speed difference in both brute force and recursion methods is quite huge!!
regards,
priyanvada
Lots of unused harmless functions and other stuff is there in Recursion Source Code ...may someone delete that!

Output Speed difference in both brute force and recursion methods is quite huge!!
regards,
priyanvada
Attachment: 8QueenBruteForceinCPP.rar (1k)
Attachment: 8QueenRecursioninCPP.rar (2k)
I need little help from masters...
In CodeBlocks I get following information in the IDE itself... Please see the image below.

Can I export this information into some HTML or xml file ??
Or is there any tool which can extract some fundamental information from a C++ Project / files such as
1. List of Global Variables used
2. List of Functions Used
3. Function with there local variables
4. Classes/ Structures used
... and so on.
Please guide...
regards,
priyanvada
In CodeBlocks I get following information in the IDE itself... Please see the image below.

Can I export this information into some HTML or xml file ??
Or is there any tool which can extract some fundamental information from a C++ Project / files such as
1. List of Global Variables used
2. List of Functions Used
3. Function with there local variables
4. Classes/ Structures used
... and so on.
Please guide...
regards,
priyanvada
And you did not even said how you will name your Proud Chess Engine if it gets ever Finished !!
maybe Apdraivyna
or...
Vada-pri
or...
yan-ri-ad
or...
Davarie
Now I gave you 4 Examples ( my favourite number from 0-10 )
If you want more names, you can ask it me, but if you don't want to give me the Honor, or you know some/a name(s) yourself, or you know other people who can give you name-Examples.. or something else.... Well, than I gave you these 4 names you know
maybe Apdraivyna
or...
Vada-pri
or...
yan-ri-ad
or...
Davarie
Now I gave you 4 Examples ( my favourite number from 0-10 )
If you want more names, you can ask it me, but if you don't want to give me the Honor, or you know some/a name(s) yourself, or you know other people who can give you name-Examples.. or something else.... Well, than I gave you these 4 names you know
Powered by mwForum 2.27.4 © 1999-2012 Markus Wichitill