Server Help

ASSS Custom Projects - <py> Subspace Casino

Jonus - Mon Sep 17, 2007 2:11 pm
Post subject: <py> Subspace Casino
This is a gambling module Ive been working on. It consists of 2 games right now -> Slots and Blackjack. Both games also have a progressive jackpot that can be won. Players can gamble points to pass time in spec, or maybe do a slot tourney?

Anyway, some stuff can be edited at the top of the file such as table minimum at blackjack and coin values in slots. This file also has the option to write the progressive jackpots to a file. If set to 1 it saves the progressive after each spin/deal. If set to 0, it just keeps the progressives in memory for as long as the server is up, reset when the server is restarted.

Installation instructions at the top of the file.
The commands to start playing:
Blackjack:
?deal <amount>
?hit
?double
?stand
?bjprogressive -> Messages you progressive
Slots:
?spin <amount>
?slotsprogressive -> Messages you progressive

This has been tested on windows, if you find some bugs, please report them to me so I can work them out. thanks
Chambahs - Mon Sep 17, 2007 3:08 pm
Post subject:
icon_sad.gif (remembers his first failure at blackjack module)
Mine GO BOOM - Mon Sep 17, 2007 5:09 pm
Post subject:
There are a bunch of Python coding suggestions I could make, as well a lot of grammatical corrections. If you'd like some tips, feel free to ask.
Jonus - Mon Sep 17, 2007 5:57 pm
Post subject:
I've fixed the being able to bet in slots with out enough money and the blackjack payout ( I think ).

As far as the blackjack progressive, if you dont want people winning it, set the min/max to win it high, you may have a lucky winner sometime. This is just an added feature to keep people intrested.

How big of an impact on odds is it when you are leaving cards in the deck but shuffling after every game? I added 4 decks of cards so it would be more random, but I guess it doesn't matter. I guess since its only you against the dealer you both have an equal chance of drawing good/bad cards.

I guess the good think about python is you cant edit whatever you want and make it say whatever you want icon_smile.gif

New zip uploaded.
Mine GO BOOM - Mon Sep 17, 2007 7:17 pm
Post subject:
Jonus wrote:
How big of an impact on odds is it when you are leaving cards in the deck but shuffling after every game? I added 4 decks of cards so it would be more random, but I guess it doesn't matter. I guess since its only you against the dealer you both have an equal chance of drawing good/bad cards.

If you want to be like the casino electronic games that are one on one, you'd just use a 52 card deck. As a card is drawn, it is removed from the deck. Every new deal is a new 52 card deck.
Jonus - Mon Sep 17, 2007 8:35 pm
Post subject:
forgot to fix the blackjack game being able to bet without money. Fixed

Updated zip... again
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group