floatinghotpot / casino-server

:fire: An online poker game server powered by Redis, node.js and socket.io
MIT License
1.06k stars 471 forks source link

Fixed card rankings! #18

Closed xphoniex closed 7 years ago

xphoniex commented 7 years ago

The original file is failing to detect some hands. I've fixed it!

bitbayio commented 7 years ago

nice work, but gulp throws an error :

[02:39:09] Using gulpfile /data/casino-server/gulpfile.js [02:39:09] Starting 'clean'... [02:39:09] Starting 'build-html'... [02:39:09] Finished 'build-html' after 31 ms [02:39:09] Starting 'lint'... [02:39:10] Starting 'browserify'... [02:39:10] Starting 'build-css'... [02:39:10] Starting 'build-img'... [02:39:10] Finished 'build-img' after 7.47 ms [02:39:10] Finished 'clean' after 297 ms [02:39:10] Finished 'build-css' after 669 ms lib/holdem_poker.js: line 140, col 13, 'isStraight' is already defined. lib/holdem_poker.js: line 155, col 19, 'isStraight' used out of scope. lib/holdem_poker.js: line 170, col 15, 'isStraight' used out of scope.

3 errors [02:39:11] Finished 'browserify' after 1.46 s [02:39:11] Finished 'lint' after 1.52 s [02:39:11] Starting 'build-js'... [02:39:11] Finished 'build-js' after 860 μs [02:39:11] Starting 'build'... [02:39:11] Finished 'build' after 20 μs [02:39:11] Starting 'default'... [02:39:11] Finished 'default' after 116 μs