Skip to content

rrao24/Mojo-Poker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mojo Poker Logo

[Build Status]

Mojo Poker is a web-based poker system that allows anyone to run their own private poker site.

Features

Includes all the clasics plus a large selection of offbeat games: Hold'em, Hold'em Jokers Wild, Pineapple, Crazy Pineapple, Omaha, Omaha Hi-Lo, 5 Card Omaha, 5 Card Omaha Hi-Lo, Courcheval, Courcheval Hi-Lo, 5 Card Draw, 5 Card Draw Deuces Wild, 5 Card Draw Jokers Wild, 2-7 Single Draw, 2-7 Triple Draw, A-5 Single Draw, A-5 Triple Draw, 7 Card Stud, 7 Card Stud Jokers Wild, 7 Card Stud Hi-Lo, Razz, High Chicago, Follow the Queen, The Bitch, Badugi, Badacey, Badeucy, Dealer's Choice.

SCREENSHOT

Install

Tested on Ubuntu 16.04. Other distros might require tweaking. Begin with a newly installed, "clean" install of Ubuntu 16.04. Issue the following commands in your terminal session:

cd /tmp
git clone https://github.com/nathanielgraham/Mojo-Poker.git
cd Mojo-Poker
sudo ./install

Starting the server

Issue the following command in your terminal session:

sudo systemctl start mojopoker.service

Now point your browser at http://localhost:3000

Creating new tables

To create a new six handed No-Limit Hold'em table for example, issue the following command:

/opt/mojopoker/script/mpadmin.pl create_ring -game_class holdem -limit NL -chair_count 6

See mpadmin.pl --help for a complete list of options.

Creating a robot opponent

An example robot (bender) is included in the most recent release.
To launch bender on table 1, issue the following command:

/opt/mojopoker/script/bender.pl 1

To stop bender:

sudo kill `cat bender.pid`

See Poker::Robot for details.

Admin tool

mpadmin.pl is a command-line ultility for creating and deleting ring games, editing player info, crediting chips, and other admin tasks. For a complete list of options, type:

sudo /opt/mojopoker/script/mpadmin.pl --help 

Advanced websocket shell

wsshell.pl is a command-line utility for sending JSON encoded WebSocket messages directly to the server. Useful for automating certain tasks. To bulk load many games at once for example, issue the following command in your terminal session:

sudo /opt/mojopoker/script/wsshell.pl < /opt/mojopoker/db/example_games

Running in production

Additional steps to run a secure site:

  • Setup nginx as reverse proxy to provide SSL/TLS certificate
  • Logic to prevent remote login by admin account
  • Change admin password
  • Add firewall for DDOS protection
  • Anything else?

See Mojolicious::Guides::Cookbook. You can also contact me directly if you need additional support.

Contact

Questions and bug reports to ngraham@cpan.org

TODO

  • Add support for tournaments
  • Change hand evaluator to Poker::Eval

COPYRIGHT AND LICENSE

Copyright (C) 2019, Nathaniel J. Graham

This program is free software, you can redistribute it and/or modify it nder the terms of the Artistic License version 2.0. https://dev.perl.org/licenses/artistic.html

About

Poker Client and Server built with the Mojolicious Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages