Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object #<Table> has no method 'StartGame' #9

Open
adrianhunter opened this issue Dec 26, 2013 · 3 comments
Open

Object #<Table> has no method 'StartGame' #9

adrianhunter opened this issue Dec 26, 2013 · 3 comments

Comments

@adrianhunter
Copy link

I dont get it. I installed via "npm install node-poker" and just want to start the example with

var poker = require('node-poker');

var table = new poker.Table(50,100,2,10,100,1000);

table.AddPlayer('bob',1000)
table.AddPlayer('jane',1000)
table.AddPlayer('dylan',1000)
table.AddPlayer('john',1000)

table.StartGame()

and it says Object #

has no method 'StartGame'

Pls help me :-(

@ChrisZieba
Copy link
Contributor

It sounds like the poker lib is not getting read in. Try changing the first line of example.js to

var poker = require('./lib/node-poker');

instead of

var poker = require('./node-poker');

@adrianhunter
Copy link
Author

But the table was created, and i can log the table with "console.log(table);"

@thomasbrodusch
Copy link

Same problem here, "console.log(table);" return me something.
But I have still "Object #

has no method 'StartGame'" error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants