/bluff

a game of bluff. rules(canadian bluff, with slight variations) : https://en.wikipedia.org/wiki/Cheat_(game)#Canadian.2FSpanish_Bluff

Primary LanguageJavaScript

See it in action https://bluff.herokuapp.com/ , deployed from the branch 'deploy'
for staging/pre prod version https://bluff-staging.herokuapp.com/ , deployed from the branch 'staging'(warning : things may break here).
different fb app will be used for staging
Things currently in staging : better chat support, show major events as notifications on bottom right


To run
npm install
node server
and go to http://localhost:7000 on your browser
chrome is recommended. app does run on mozilla, ie8 and chrome mobile but cannot make any guarantees
WARNING : facebook login won't work on localhost. In that case you need to create a cookie on your browser as user='username_you_desire'
in browser console (press ctrl_shift+j in chrome and ctrl+shift+k in mozilla) enter 
document.cookie = 'user=player1'

for debugging , can use node inspector (need to install the node-inspector npm package, npm install -g node-inspector ), https://github.com/node-inspector/node-inspector
node-debug --save-live-edit server.js

Playlist of the explaination videos here
https://www.youtube.com/watch?v=QUqY4yAiD-A&index=1&list=PLpG-5tAPfrtt9xF36jw54oWDS3MtPTfCr
updated gameplay rules and future plans given below

FUTURE PLANS
1)Have support for multiple rooms. Also maybe have option to have voice recognition compulsory in a room. As in bluff like
 poker thew tone of voice can be useful to know when player is bluffing or not
2)Database connectivity. currently there is no persistance.
3)Implement it with websockets 
4)Use token to play . The token are hidden in the internet . you have to find it and use it **
5)Play it from mobile
6)Expose rest Api to support multiple platform..
7)Use Ai (i.e bots) and speech recognition, using annyang.js (for ex the player can say 2 more aces ) and the program automatically places the cards that were to be placed
8) Add appear.in integration so that players can do video conferencing right from the browser

UPDATED Gameplay  : https://raw.githubusercontent.com/sktguha/bluff/master/rules.txt