Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
if a chess game were to use two different algorithms to generate moves and needed to be compared which move is the best what are the ways to do this?
Is there a algorithm to evaluate those moves?
Posted
Updated 6-Jan-11 22:05pm
v2
Comments
Toniyo Jackson 7-Jan-11 4:05am    
Spell check

1 solution

Panchaz,
If you are using alpha beta pruning as an algorithm you should:
Generate *all* the moves available in a certain position
Then you order the moves generally by:
Good capture moves ( moves that capture a piece with greater or equal value )
Regular moves
Bad Captures ( moves that capture a piece with less value )

Alpha Beta will "cut" the search better if you apply some better euristic in the move ordering ehuristic.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900