madebits.com
C O D E
Poker Game in JavaScript
<<<

  Tools & Code
  webspider
  webnowse
  filewatcher
  adc
  vnotes
  ana
  magicsquare
  aes
  base32
  nsh
  mobcon
  hdb
  tgen
  urlsuite
  httppass
  albpad
  klarity
  poker
  shtypshqip
  roman
  calendar
  main






Software videos
Latest software videos!



Poker Game

 
"When it comes to taking chances, some people like to play poker or shoot dice; other people prefer to parachute jump, go rhino hunting, or climb ice floes, while still others engage in crime or marriage. But I like to get drunk and drive like a fool." - P. J. O'Rourke

poker game A poker game writen in JavaScript 1.2. It runs on both Internet Explorer 4+ and Netscape 4+ browsers, and it is tested with both of them.

The core of this Javascript implementation origates from converting an old C++ implementation of the author (since 1997) that has been now lost. The code is well factorized with classes (the JavaScript's prototype object model is similar to Self, an OO language developed in the 1980s), but does not use the new HTML DOM features, as it is written before complete DOM support was widely available in the browsers.

  Game

Poker can be a marvelous game, but it cannot be played alone. In this implementation the player plays against the computer. The game settings and difficulty are controlled by several parameters. In a real example, the pages where the game parameters are changed, or where the player credit is set, should be password protected. The demo configuration does not protect these pages. The demo requires JavaScript.

poker game source code

  References

http://www.pvv.ntnu.no/~nsaa/poker.html - A good reference on poker probabilities and poker links.

http://www.pokerpages.com/pokerinfo/rank/index.htm - Poker hand ranks.
This web site has also a good history of poker in US. The background image of the Poker game is taken from this site.

http://www.kimberg.com/poker/dictionary.html - Dan Poker Dictionary.

http://www.waste.org/~oxymoron/cards/ - The set of cards used in the Poker game comes from here. The 'b.gif' is modified and 'j.gif' is not distributed.

  Download

This program comes under GPL - GNU General Public License.

Poker Game

VersionTypeFileSizeComment
1.0.0source & binary
~90KBThe complete files of this program are available for free download bundled in a zip file.



Latest news by Google

madebits.com
home | legal | search | contact | top

©2005-2010