forked from mjhbell/node-poker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.js
35 lines (27 loc) · 749 Bytes
/
example.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
var poker = require('./lib/node-poker');
var table = new poker.Table(50,100,4,10,100,1000);
table.AddPlayer('bob',1000)
table.AddPlayer('jane',1000)
table.AddPlayer('dylan',1000)
table.AddPlayer('john',1000)
table.StartGame()
table.players[1].Call();
table.players[2].Call();
table.players[3].Call();
table.players[0].Call();
table.players[1].Call();
table.players[2].Call();
table.players[3].Call();
table.players[0].Call();
table.players[1].Bet(50);
table.players[2].Bet(1);
console.log( table.players[1] );
console.log( table.players[2] );
table.players[3].Call();
table.players[0].Call();
table.players[1].Call();
table.players[2].Call();
table.players[3].Call();
table.players[0].Call();
console.log(table.game);
//table.initNewRound()