So I've been writing this small chess program for my college project with my friends. And I am pretty much finished with other tasks like move generation and minimax. And the game runs fine too. But I've limited the search to depth of two. So now when I increase its depth to 4 (or even 3), the game really slows down.
For depth = 2, time = 1s
For depth = 3, time = 10s
For depth = 4, time = 25s
For depth = 5, Stopped observing after time = 3 min
and lets not talk for depth = 6.
I HAVE IMPLEMENTED THE APLHA BETA PRUNING!
I haven't read about it in detail, but I do have a general idea. So, I've implemented this psuedocode from wikipedia.
http://en.wikipedia.org/wiki/Alpha-beta_pruning#Pseudocode
.
I'm fairly new to chess programming. So I wanted to know if the taken time is normal for a program running on an i5 system, or the psuedocode is lacking (highly unlikely), or my code sucks. My Evaluation function is EXTREMELY basic, just assigning weights to the pieces and returning the final sum.
.
Any advice will be appreciated.