Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about the bot #52

Open
Coldzilla opened this issue Feb 3, 2023 · 3 comments
Open

Question about the bot #52

Coldzilla opened this issue Feb 3, 2023 · 3 comments

Comments

@Coldzilla
Copy link

Hello! Checked out the bot. It certainly works quite well, but there are a few questions about its operation.
I noticed that the bot does not end the turn at zero mana. It goes into standby mode for a few seconds and tries to expose cards again. Or waiting for the end of the turn time.
Is it possible to somehow fix this?
And what does the error mean - "gambit" ?

@AdriaGual
Copy link
Owner

@Coldzilla The answer is yes and no.

Let me explain a bit more haha So the original idea was what you're saying, when the bot detects that there's no mana left, just skip the turn. Why I have to wait when I can't play anything else?

Well, there's actually a problem I noticed when I implemented this feature, between one turn and another, there's one frame where the turn has changed (from turn 1 to turn 2) BUT the mana hasn't updated (still 0 from the turn before), so if you aren't lucky, it may pass a turn without playing any card (and it happened to me quite often).

About the gambit error... I'm not sure what error is, maybe with the stack trace I can see something else. But check that you have gambit on the cp_list.py file and images of him on the data folder, this are the only sites where this key error can come from.

Hope it helps!

@paperc07
Copy link

paperc07 commented Feb 8, 2023

So in order for us to use cards we have to manually input them into the cp_list.py?

If that is the case can't we just go ahead and add them all and you upload it in the comiit? so we have the whole card database?

EDIT: Nevermind I seen Mr. Negative already did that in the discussion section, but why not add it to the main bot so everyone just gets it included without searching?

@Coldzilla
Copy link
Author

Coldzilla commented Feb 8, 2023

Надеюсь, поможет!

@AdriaGual Yes, I would like to know if the bot will be updated?
Would like to see cards added to cp_list.py,
So that there is an auto completion of the turn at 0 mana
So that after the update, the bot itself will start searching for a new opponent, take the reward and go to the main screen, and Start the battle again.
If this is implemented, then the bot will become even better.
Please
I don't understand anything about programming, otherwise I would do everything myself. So all hope is on you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants