ColonelKlink
May 14th, 2008, 01:34 AM
Hey all,
I'm new to this forum and I was wondering if any of you have had experience ever programming a chess game.
I'm writing it in java was hoping that someone knows some generic rules or strategies that would apply to most situations that the AI could use.
I'm thinking at the moment of simply it looking at every possible move, (in order of importance of piece) and then if a move doesn't put the king in check, do the same thing again (this time checking the other player's pieces as well) incrementing a counter for every piece that would allow you to take and decrementing it for every one you would lose. So basically it "thinks" one turn ahead.
The problem with this idea, is that besides its sheer brute force method, it really doesn't take anything else into account.
Any suggestions or criticism would be greatly appreciated.
Thanks.
I'm new to this forum and I was wondering if any of you have had experience ever programming a chess game.
I'm writing it in java was hoping that someone knows some generic rules or strategies that would apply to most situations that the AI could use.
I'm thinking at the moment of simply it looking at every possible move, (in order of importance of piece) and then if a move doesn't put the king in check, do the same thing again (this time checking the other player's pieces as well) incrementing a counter for every piece that would allow you to take and decrementing it for every one you would lose. So basically it "thinks" one turn ahead.
The problem with this idea, is that besides its sheer brute force method, it really doesn't take anything else into account.
Any suggestions or criticism would be greatly appreciated.
Thanks.