> For the complete documentation index, see [llms.txt](https://machinations.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://machinations.gitbook.io/docs/end-conditions.md).

# End Conditions

stop Diagram execution

Games end when certain conditions are fulfilled: a player reaches a certain goal, time runs out or all players but one are eliminated.&#x20;

{% hint style="success" %}
Set End Conditions to end a game when a condition is fulfilled.
{% endhint %}

Machinations diagrams use End Conditions to specify end states. End Conditions are square Nodes with a smaller, filled square inside (the same symbol that is used to indicate the stop button on most audio and video players).

{% hint style="warning" %}
Machinations checks the End Conditions in a diagram at each time step and stops running immediately when *any* End Condition is fulfilled. In other words, if you have multiple End Conditions in a diagram, it will **stop running as soon as&#x20;*****any one*****&#x20;of the End Conditions is met.** For such an example, watch the video below.
{% endhint %}

{% embed url="<https://www.youtube.com/watch?v=MB2HlB-DWVo>" %}

End Conditions must be activated by an Activator. In this case, Activators are used to specify the end state of the game.

{% content-ref url="/pages/-LHXjVlUNuLgQW43Qv6W" %}
[Activators](/docs/connections/state-connections/activators.md)
{% endcontent-ref %}
