fedden / poker_ai

🤖 An Open Source Texas Hold'em AI
Other
1.37k stars 369 forks source link

Play a bot with Error #146

Open yanger1997 opened 2 years ago

yanger1997 commented 2 years ago

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):

Additional context Add any other context about the problem here.

jaimeggb commented 2 years ago

@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

aashishpokharel commented 1 year ago

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

shmmathur commented 1 year ago

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