Verse Library verse

06 Fragment

Combines fixed scoring constants with changable variables for tracking score and lives.

verse-library/verse-nouns-values-and-types/06-fragment.verse

# Constants — locked for the whole match
WinningScore : int = 10
RoundLength : float = 120.0

# Variables — change as you play
var CurrentScore : int = 0
var LivesLeft : int = 3

Comments

    Sign in to vote, comment, or suggest an edit. Sign in