algorithm - How to simulate battle between two players? -


I have two players and I want to simulate the game between them. Both have some characteristics (strength, intelligence ...) and different actions are the result of some actions based on characteristic values ​​and some luck factor.

Algorithm:

  • Build a sports tree of all possible moves for both players
    • Some of the hermes on lead nodes
    • Choose one step with the highest probability
    • Continue to the beginning of this algorithm
    • So, basically this is the minimum algorithm, though I have some questions:

      1. How to take the aspect of fate in the account ?
      2. When I take a step, do I again run the entire algorithm? (Build 1 tree with a depth and a new root node, calculate new possibilities ...)
      3. Any other ideas to emulate any battle?

        Thanks. "post-text" itemprop = "text">

        1. In the first player, each player has 2 actions: Fire with a gun and with a sword Strike Each step in this game does not affect other steps, so a move Riksh would make no sense to build. Each player has to choose only the weapon and firing / striking and shouting with 'shield' or 'em! 'to death or victory
        2. There is also a third action in the second game - The rival shield steal In this case Le tree will be more sensible Because it is very clear that if you have decided to defend the enemy in any way, it will be more intelligent to steal it before you fight with the sword.

          Because you need this Le tree or do not depend heavily on your game rules.

          The difference of luck As I have seen, whether or not it should be done in Le tree depends on whether Kiski Factor Affects every action in the same way. If this is true then the factor of destiny can be left when calculating Le tree and then it is applied when you calculate the outcome of the chosen action. Otherwise, the aspect of fate influences different actions in different ways (for example, even if the whole loser is able to shoot the enemy with a gun, but one Spoon skill requires good luck), then the factor of destiny should be kept in mind when calculating the possibilities in the tree.

          After each node, whether or not the whole tree needs to be re-calculated, depending on whether you can guess the action taken with 100%. For example, in chess you can predict that if you decide to move the pole, then those pieces will definitely move where you have decided. It allows you to choose the branch in the tree running on every step and calculates another place for each scenario in it, instead of just refining the whole tree, nothing is done. But this does not apply when the player can decide to shoot with a gun, but he will shoot himself in one leg due to the inauspicious day.

Comments

  1. Slots - CasinoEurope
    Slots.located in the same city where 벳 페어 all slot 토토사이트 해킹하는법 넷마블 machines are situated, we have a 토토사이트 대여 샤오미 good deal of slot machines in the same city. This is also the location where 바카라 커뮤니티 most slot 우리닷컴 벳무브

    ReplyDelete

Post a Comment

Popular posts from this blog

php - How can I cram 6+31 numeric characters into 22 alphanumeric characters? -

mysql - where clause in inner join query -

java - Why my included JSP file won't get processed correctly? -