fedden / poker_ai

🤖 An Open Source Texas Hold'em AI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Play a bot with Error

yanger1997 opened this issue · 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 @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

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

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