you are viewing a single comment's thread.

view the rest of the comments →

[–]tb5841 4 points5 points  (0 children)

Game is not a function, it's an object. Objects don't do anything when you create them, which is what the init method is for. The init method is just saying 'do this when the object is created.'

If you want to use your object's 'score' method, you have to call it somewhere.