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

Bug Fixes plus a couple features I wanted #194

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Commits on Jun 15, 2024

  1. Update run_battle.py

    Lines 107 - 109 removed. Created issue with no team preview as moves were being cleared and only options were switch.
    SwagMander authored Jun 15, 2024
    Configuration menu
    Copy the full SHA
    ed33fe1 View commit details
    Browse the repository at this point in the history
  2. Update config.py

    fixed Issues on line 45 writing to log file due to UTF-8 encoded symbols coming from the websocket.
    SwagMander authored Jun 15, 2024
    Configuration menu
    Copy the full SHA
    61fbc1b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0c47a40 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    689e57b View commit details
    Browse the repository at this point in the history
  5. Made the sleep delay after a challenge an env option called COOLDOWN_…

    …TIME. Set the default to 15 since if two bots battle eachother the battle is too short and the challenger gets halted. Showdown has a 12 battle per 3 minute limit, so this should allow bots to battle continously.
    SwagMander authored Jun 15, 2024
    Configuration menu
    Copy the full SHA
    2be9fbb View commit details
    Browse the repository at this point in the history
  6. Added a new Battle Bot. This bot is purely random like the basic trai…

    …ner AI from gen 1. Random moves and only switches to the next Pokemon when forced.
    SwagMander authored Jun 15, 2024
    Configuration menu
    Copy the full SHA
    ada3573 View commit details
    Browse the repository at this point in the history
  7. Update websocket_client.py

    Removed parentheses I added by accident.
    SwagMander authored Jun 15, 2024
    Configuration menu
    Copy the full SHA
    d527295 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    31d80e5 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    67d5b73 View commit details
    Browse the repository at this point in the history
  10. Update config.py

    Change default cooldown_time to 10
    SwagMander authored Jun 15, 2024
    Configuration menu
    Copy the full SHA
    2554dfa View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    9ef1b66 View commit details
    Browse the repository at this point in the history
  12. user_json can be missing the active for the opponent if it faints, ca…

    …using an error. Only run code at 340 if user_json contains active.
    SwagMander authored Jun 15, 2024
    Configuration menu
    Copy the full SHA
    1764597 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2024

  1. Update battle.py

    New fix for issue where fainted Pokemon count as trapped, as my previous fix caused other issues. When a Type error occurs in the line 340 try block just return.
    SwagMander authored Jun 16, 2024
    Configuration menu
    Copy the full SHA
    08cfcd9 View commit details
    Browse the repository at this point in the history