Hey friends!
Quick context: I wanted a program that I could use to simulate thousands of possibilities in pokémon battles and use it to determine the ideal strategies (for my own casual games). Looking into Pokémon Showdown's code I realized the complexity of the battle system, and thought it'd be easier to adapt the existing code to my needs than to recreate it from scratch.
Thing is, I'm not that familiar with JavaScript, so I'm having a hard time figuring out if the Pokémon Showdown code can do the stuff I'm thinking of. For example, it'd be really useful to save a battle's state and restore it so I could try many different variations and see what worked, but just serializing the state, deserializing it back and updating it in the context doesn't seem to work. Does anyone here know the code and would be willing to chat about it? Or can point me to someone who might know?
I also realize I'm probably not the first one to try to do this, so if you know any similar projects or alternatives, I'd appreciate it!
Quick context: I wanted a program that I could use to simulate thousands of possibilities in pokémon battles and use it to determine the ideal strategies (for my own casual games). Looking into Pokémon Showdown's code I realized the complexity of the battle system, and thought it'd be easier to adapt the existing code to my needs than to recreate it from scratch.
Thing is, I'm not that familiar with JavaScript, so I'm having a hard time figuring out if the Pokémon Showdown code can do the stuff I'm thinking of. For example, it'd be really useful to save a battle's state and restore it so I could try many different variations and see what worked, but just serializing the state, deserializing it back and updating it in the context doesn't seem to work. Does anyone here know the code and would be willing to chat about it? Or can point me to someone who might know?
I also realize I'm probably not the first one to try to do this, so if you know any similar projects or alternatives, I'd appreciate it!