Mijura / holdem-poker

This is the implementation of the most popular poker game Texas Hold 'em. The application allows users to play this version of poker via the net. The game is written in four various programming languages Python, Clojure, Haskell, and Pharo.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TexasHoldemPoker

This is the implementation one of the most popular poker game Texas Hold 'em.

Application allows users to play this version of poker via net. Game is written in four various programming languages Python, Clojure, Haskell and Pharo.

alt text

Application parts

  • GUI - desktop app (Python)
  • Core game - server (Pharo)
  • Hand recognition - server (Clojure)
  • Determiner of best hand - server (Haskell)

Hand recognition - server (Clojure)

Implementation of this application part is stored in folder with name "evaluator". To launch server we use Leiningen. First you must navigate to the folder "evaluator" in terminal and then execute command:

lein ring server

Determiner of best hand - server (Haskell)

Implementation of this application part is stored in folder with name "determiner". To launch server we use Stack. First you must navigate to the folder "determiner" in terminal and then execute commands:

stack build
stack exec determiner

Core game - server (Pharo)

Implementation of this application part is stored in folder with name "core". To start the server, take a few steps:

  1. Run Pharo
  2. Install Tealight from Catalog Browser (Tools -> Catalog Browser)
  3. To get package from repository run in the Playground following code:
repositorySpec := 'Mijura/TexasHoldemPoker:master/core'.
Metacello new
  baseline: 'PokerCore';
  repository: 'github://', repositorySpec;
  load.
  1. Load code into image from Monticello Browser.

alt text

  1. Run in Playground:
PCore new core.

GUI - desktop app (Python)

Implementation of this application part is stored in folder with name "client". To start GUI app, navigate to the folder "client" in terminal and execute command:

python app.py

About

This is the implementation of the most popular poker game Texas Hold 'em. The application allows users to play this version of poker via the net. The game is written in four various programming languages Python, Clojure, Haskell, and Pharo.


Languages

Language:Python 69.1%Language:Clojure 12.9%Language:Smalltalk 12.1%Language:Haskell 6.0%