Advanced Nodes


    Artificial Player

    Artificial Player


    Note: does not have an Artificial Player Node. However, most situations solved with the AP Node in the original version may be modeled with existing Components.

    This article deals with a few examples of how to do this.

    Fire a specific Node on the diagram

    Fire multiple Nodes simultaneously

    To emulate the statement above, use a Deterministic Sorting Gate with weighted outcomes.

    💡 Note that the order in which the gate sends Resources along its outputs is determined by the order in which these outputs were added to the diagram.

    To fire multiple Nodes randomly, use a Random Sorting Gate with probable outcomes to trigger each Node and balance the probability with which each Node is fired, to fit your needs.

    You can emulate conditional commands like if(condition)commandusing multiple components.

    Here’s a simple example of how to emulate if(pool>2)fire(source)

    If you’re trying to model a more complex if statement, you can use Registers to calculate conditions.
    💡 Note that in Registers support all math.js functions.

    Here’s such an example: if(pool>3&&pool<8)fire(source)

    The passive Register verifies if the value “a” – equal to the number of Resources in “pool” at every time-step – is larger than 3 and smaller than 8. This returns a binary result (1-true; 0-false). As long as the value of the passive Register is >0, “source” is active and produces resources.

    Here’s how to emulate the if(Resources>4) fireRandom(Consume, Upgrade) example

    The Pool Resources fills with more than 4 Resources before randomly choosing between a Consume or Upgrade action, with a probability of 30% by 70%, respectively.


    All Rights Reserved © Machinations S.àr.l

    8217, Mamer, Luxembourg, accounts at BGL BNP PARIBAS, VAT number: LU30464284

    We use cookies for marketing and analytics. We also share information about your use of our site with our marketing and analytics partners who may combine it with other information that you’ve provided to them. You consent to our cookies if you continue to use our site. Learn more