janevu / podchess

Automatically exported from code.google.com/p/podchess
GNU General Public License v3.0
1 stars 0 forks source link

AI is not good (something wrong) #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The AI is currently not good. For example, the Root can eat the Cannon. 
Something may have 
went wrong during the conversion of XQWLight from C language to Objective-C.

Also, note:

- (void)SearchMain
{
       ...
Line #1230:        if (clock() - t > CLOCKS_PER_SEC) {
                                   break;
                             }
       ...
}

The line above means that the AI *may* be limit to 1-second run. By increasing 
to (let's say) 3 
seconds ( ... 3* CLOCKS_PER_SEC), the AI apparently can take longer time to 
think.  However, it 
still makes the very *bad* moves (as the previous comment mentioned).

Original issue reported on code.google.com by huypha...@gmail.com on 17 Sep 2009 at 1:04

GoogleCodeExporter commented 9 years ago
I've made some change to try to improve this , please take a look.

Original comment by Sakur.de...@gmail.com on 23 Sep 2009 at 2:40