An action node describes work performed during one execution. For the Wildcats, recording a turn is work; Player is simply a type name.
This is the body of an existing RecordTurn method. The integer field numberOfTurns belongs to its Player receiver.
If the underlying C# feature is unfamiliar, use the lesson below while reading this example.
numberOfTurns = numberOfTurns + 1;Read the receiver's current turn count
Add one to that count
Store the new count in the same field
Finish this one RecordTurn operationUse these words to follow one execution before drawing it. Keep the same order and the same alternatives as the source; simplify the wording without adding work that the code does not perform.
Increase numberOfTurns by 1. This label represents the assignment in the method body.Compare this reference with the diagram you built in Violet. Layout may differ; the source meaning, labels, and relevant connections should agree.
With a starting count of 2, the action stores 3. Reaching the final node completes this operation; it does not delete the player.