Skip to content

Duel.RockPaperScissors ​

Source Code | Usage Examples | Duel Functions

Has players play a game of Rock Paper Scissors. Return player (winner or PLAYER_NONE). If redo == true, RPS continues until there is a winner, otherwise RPS is only played once.

Signature ​

Duel.RockPaperScissors([bool redo = true]) → int

lua
Duel.RockPaperScissors(redo)

Parameters ​

  • bool redo ​

    Optional. Defaults to true.

    (To be added)

Returns ​


under-construction