Legal move generator

Code, algorithms, languages, construction...
Post Reply
Donbaek
Posts: 7
Joined: Fri Jul 18, 2014 2:49 pm

Legal move generator

Post by Donbaek » Mon Jul 28, 2014 6:05 pm

In my C# program I like to be able to do something like this:

string someFen = “r1b1k2r/pp1p1ppp/2n1p3/qN2P3/5P2/2bBB3/P1P2KPP/R2Q3R b kq”
list<string> moves = MoveGenerator.GetLegalMoves(“someFen”)

Without having to write MoveGenerator.GetLegalMoves myself.

Why
Because my interest is in experimenting with alternative/selective search algorithmns, not in writing chess engines from scratch.
Reusing 3th party code for basic tasks like move generation gives me more time for my main focus.

I tried basic google search but could not find anything easy to use.
And chessprogramming.wikispaces.com/ seams to focus on giving advise on how to program the function yourself, exactly what I was hoping to avoid.

Is their anything easy to use like this?


Donbaek
Posts: 7
Joined: Fri Jul 18, 2014 2:49 pm

Re: Legal move generator

Post by Donbaek » Fri Aug 01, 2014 8:20 pm

Thanks Again User923005 you are great.
I never thought of searching for 'c# chess engine' only on stuff like 'chess move generator' dooh.....
Any way I have ended up using the 'chess game starter kit' from this site http://www.chessbin.com/archive.aspx
It seems to work great for my purpose.
Thanks

Post Reply