This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var MainModule = (function() { | |
var alertMsg = "Der er fejl izi game izi lyfe"; | |
function privateGetAlertMsg() { | |
return alertMsg; | |
} | |
function privateSetAlertMsg(newAlertMsg) { | |
alertMsg = newAlertMsg; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "securerandom" | |
class Player | |
def initialize name | |
@name = name | |
@games = [] # what are all the games this player has been involved in? | |
# IDEAS for attributes | |
# - Time stamp for creation of this player object | |
# - UUID because multiple players might have similar names |
NewerOlder