1. Welcome to Smogon Forums! Please take a minute to read the rules.
  2. New to the forums? Check out our Mentorship Program!
    Our mentors will answer your questions and help you become a part of the community!

Programming Genesect.py - Pokemon Evolutionary Algorithm

Discussion in 'Technical Projects' started by Pyr0, Apr 12, 2013.

  1. Pyr0

    Pyr0

    Joined:
    Oct 28, 2006
    Messages:
    1,020
    [​IMG]
    Genesect.py

    The evolution begins!

    Code @ Github: https://github.com/ChrisCTX/genesect

    Yep, initial commit is here guys, really pleased so far with the results.

    Currently the only thing to really see in the code is the Fitness function, it will grade a given moveset and based upon its score
    the algorithm will either allow that pokemon to breed to keep those good moves in, or it will reject it and find other more suitable candidates.

    The score is in logarithmic scale to make it easier on us to read, but please do note that there is a huge difference between a
    20 and a 30 score.

    Small little preview:

    [​IMG]
    Tyranitar with ["crunch", "fireblast", "icebeam", "lowkick"] scored a nice 39.9911245405
    Tyranitar with ["stoneedge"] score only 17.0323042166, but then again its only one move.
  2. Pyr0

    Pyr0

    Joined:
    Oct 28, 2006
    Messages:
    1,020
    OK, got the Name, type1, type2 covered, some google-fu and a quick script made it happen.

    Now I need all the moves and movepools per Pokemon.
  3. mikel

    mikel frizy will carry ocn
    is a Battle Server Admin Alumnusis a Forum Moderator Alumnus

    Joined:
    Jun 26, 2011
    Messages:
    972
  4. Pyr0

    Pyr0

    Joined:
    Oct 28, 2006
    Messages:
    1,020
    Much appreciated mikel, it has all the information we need.

    Main post will be updated as we do the first commit and succeeding ones, we're both really hyped about what the output will be :D
  5. Pyr0

    Pyr0

    Joined:
    Oct 28, 2006
    Messages:
    1,020
    First post edited, initial commit is imminent.
  6. Pyr0

    Pyr0

    Joined:
    Oct 28, 2006
    Messages:
    1,020
    Initial commit, fitness function v1 done.

Users Viewing Thread (Users: 0, Guests: 0)