Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "utils/winner"

Index

Functions

Functions

Const findWinner

  • findWinner(lastFrame: FrameEntryType): number
  • Given the last frame of the game, determine the winner first based on stock count then based on remaining percent. If percents are tied, return the player with the lower port number by default.

    Parameters

    • lastFrame: FrameEntryType

    Returns number

    the player index of the winner

Generated using TypeDoc