BlackJack
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

BlackJack

Started by CrazyGuy, 27 January, 2007, 01:47:10

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

CrazyGuy

This is a lua version of the original casino's Blackjack game (betting not included)

The game plays in mainchat as follows:


  • 1 player starts the game typing !bj_start
  • Up to 7 players can join typing !bj_join
  • If 7 players are reached, or otherwise 30 seconds has passed, the game starts
  • The dealer shuffles the cards, and deals every player, including himself 2 cards
  • All cards are shown, except for the dealers first card
  • The players play in turn ( as they joined ) until they either bust, or stand
  • If a player goes offline, the dealer will wait 30 seconds for return. If no return, the dealer moves on
  • After all players have played, the house plays
  • The house hits on 16 and lower, and stands on 17 and up
  • After the house is finished, all hands are compared with the house
  • Those not busted and having a higher score than the house win
  • Those having the same score as the house push
  • Those having a lower score loose
  • If the house busts, all players not busted win

That's basically it, Enjoy  ;D
Attached is the script

??']['??l?

Just tested this script and allthought its lua 5.1.1, it works in my hub.... :) :) :)
There`s no errors in ptokax script editor and everything seems to work at this far..... :D
Thanks man for this great game, my "casino" is now ready to run...
Maybe that texas hold`em would be next... ;)


CrazyGuy

Yes it would be, although I'll have to dive some deeper into the actual scoring table for Texas Hold 'Em.
Besides that, I don't think poker is fun without betting, so you'll need a cash register as well ;)

For a complete casino hub, I think the way to go is this:

Games run in the own chat/gameroom
There's a cash register where people can "buy" chips.
And maybe some OPs running around as security so no1 cheats  ;D

But thats the big picture, first to see if Blackjack runs stable like this  :)
I've made a small update to the BlackJack script

It will now hide the house's points, which kinda gave away the hidden card, until the house starts to play.
Attached is the updated file.


SMF spam blocked by CleanTalk