#Godot's `wrap()` function is useful for when you have a list of players (e.g. blue, green, red, etc.) and you want to change whose turn it is:
```
# Next player's turn.
current_player = wrap(current_player + 1, 0, PLAYERS.size())
```
https://docs.godotengine.org/en/stable/classes/[email protected]#class-globalscope-method-wrap