Player: Player R6 Class

Description Usage Format Examples

Description

Player R6 Class

Usage

1

Format

An object of class R6ClassGenerator of length 24.

Examples

1
2
3
4
setup("my_profile")
Player$new("Player 1")
Player$new("Player 2")
delete()

Example output

No records found.
Storing player records at 'my_profile'
Updating value for environment variable 'CASINO_FILE'.
You have no money!
Player: 
  Name: Player 1
  Balance:  100
  Level:  0
  Played:  1
  Debt:  100
You have no money!
Player: 
  Name: Player 2
  Balance:  100
  Level:  0
  Played:  1
  Debt:  100

casino documentation built on May 2, 2019, 8:41 a.m.