Poker-AI.org
http://poker-ai.org/phpbb/

errors compiling pokerai java hand evaluator - HandEval etc.
http://poker-ai.org/phpbb/viewtopic.php?f=24&t=2879
Page 1 of 1

Author:  rtayek [ Sun Feb 22, 2015 1:38 pm ]
Post subject:  errors compiling pokerai java hand evaluator - HandEval etc.

i downloaded the pokerai.zip and made an eclipse project. i included the meerkat-api.jar.

but there are some compiler errors (please see below).

any pointers will be appreciated.

thanks

The method ordinal() is undefined for the type Card PerformanceTest.java /handevaluators/src/pokerai/game/eval line 243 Java Problem
The import pokerai.game.eval.hammer.stevebrecher cannot be resolved ValidityTest.java /handevaluators/src/pokerai/game/eval/hammer/tests line 3 Java HandEval cannot be resolved ValidityTest.java /handevaluators/src/pokerai/game/eval/hammer/tests line 39 Java Problem

Author:  spears [ Sun Feb 22, 2015 3:40 pm ]
Post subject:  Re: errors compiling pokerai java hand evaluator - HandEval

I just downloaded the code from download/file.php?id=1 and can see quite plainly that the following statement is not true.

The method ordinal() is undefined for the type Card

..and I don't even see pokerai.game.eval.hammer.stevebrecher

I have very limited time and patience for hand holding of this nature. If you can't resolve problems like this you don't have a hope of writing a poker bot.

Author:  rtayek [ Mon Feb 23, 2015 1:00 am ]
Post subject:  Re: errors compiling pokerai java hand evaluator - HandEval

rtayek wrote:
i downloaded the pokerai.zip and made an eclipse project. i included the meerkat-api.jar.

but there are some compiler errors (please see below). ...

The method ordinal() is undefined for the type Card ...
The import pokerai.game.eval.hammer.stevebrecher cannot be resolved


package pokerai.game.eval.hammer.tests;

//import pokerai.game.eval.hammer.stevebrecher.HandEval;
import pokerai.game.eval.stevebrecher.HandEval; // inserting this line helps

thanks

Author:  rtayek [ Mon Feb 23, 2015 1:42 am ]
Post subject:  Re: errors compiling pokerai java hand evaluator - HandEval

rtayek wrote:
...
//import pokerai.game.eval.hammer.stevebrecher.HandEval;
import pokerai.game.eval.stevebrecher.HandEval; // inserting this line helps

thanks


commenting out the call to ordinal() fixes the rest.

thanks

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/