poker_ai icon indicating copy to clipboard operation
poker_ai copied to clipboard

Play a bot with Error

Open yanger1997 opened this issue 2 years ago • 3 comments

Describe the bug After clustering and training, there is a error with playing a bot, like the attachment.

To Reproduce Steps to reproduce the behavior:

  1. Go to path ''
  2. Run command '....'
  3. Check output of '....'
  4. See error poker_ai — -zsh — 89×56 2022-05-24 21-47-01

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [Mac OS X]
  • Python version: [3.7]

Additional context Add any other context about the problem here.

yanger1997 avatar May 24 '22 13:05 yanger1997

@yanger1997 @fedden

You must first run the 'poker_ai cluster' and 'poker_ai train start' commands.

These commands will give you the files 'agent.joblib', 'server.gz', 'card_info_lut.joblib', 'centroid.joblib', 'config.yaml' and 'server.gz'. These files are needed to run 'poker_ai play'.

Once you have these files, create a folder in the 'research' folder and call it 'blueprint_algo'. Store those files there.

Then run this command:

poker_ai play --lut_path /home/jupyter/poker_ai/research/blueprint_algo --pickle_dir False --agent /home/jupyter/poker_ai/research/blueprint_algo/_2022_10_19_20_44_25_523196/agent.joblib --strategy_path /home/jupyter/poker_ai/research/blueprint_algo/_2022_10_19_20_44_25_523196/server.gz --debug_quick_start

jaimeggb avatar Nov 04 '22 11:11 jaimeggb

I get this error while running this: UnboundLocalError: local variable 'action' referenced before assignment

aashishpokharel avatar May 08 '23 01:05 aashishpokharel

I get the same error as @aashishpokharel . Were you able to resolve it?

shmmathur avatar Aug 04 '23 06:08 shmmathur