Code Monkey home page Code Monkey logo

gobattlesim-python's People

Contributors

biowpn avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

iqandreas

gobattlesim-python's Issues

Can't get individual battle outcomes

Right now we can only get some overall metrics once a simulation is done, such as duration, winner, number of deaths. It would be preferred to get individual Player/Pokemon's battle outcomes:

...
my_battle.add_player(my_player)
my_battle.init()
my_battle.start()
...
my_player_outcome = my_battle.get_player_outcome(my_player)

StrategyInput parameter for Custom Strategy is next to useless

In demo.py, a custom strategy - use fast attacks only - has been defined, which doesn't utilize the strategy_input passed to the on_free callback. In general, we want to get some useful info regarding the subject Pokemon and/or its enemy at the time making a decision. However, the strategy_input, supposed to provide such info, is next to useless due to lacking proper accessing methods.

The user should be provided with ways to acquire info, including but not limited to:

  • The state of the subject Pokemon/enemy Pokemon, including current HP, energy
  • The moves of the Pokemon/enemy Pokemon, including power, energy, duration, etc
  • Damage calculating method to get the damage values

Can't update the battle without reconstructing

The battle participants are set by a series of add_X methods and the deep copy is performed.

Now, if the user wants to modify just one of the participant, such as changing the level of one Pokemon, he has no choice but to reconstruct the whole battle instance again. This is not desirable.

Some update_X methods are needed. That is, say there's a previous line of code

my_battle.add_player(my_player)

Then we change my_player by a little, such as changing the strategy:

my_player.set_strategy(2)

To reflect the change, if we could just write

my_battle.update_player(my_player)

That would be much preferred.

A possible way is to id-ing all Players and Pokemon, but this id is hidden from the user. It could be the count of instances.
Also, unlike add_X methods, update_X should be member functions of class Battle.

Missing a list of available battle parameters

The set_parameter(name, value) method provided in gobattlesim.engine is supposed to set a specific battle parameter. But how do we know which name is associated with which parameter? A list of available battle parameters in documentation (which, by the way, is also missing) is eagerly needed.

Feature Request: Clone Attackers

It is sometimes desired to "clone" an attacker when simulating duo, trio or quartet battles since it greatly reduces run time. By cloning, simply multiply the attacker's damage values (post-rounding) by an integer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.