# Virtual_Max's BlackJack

## Try this BlackJack Game.

Note: This game designed for use in pair with CGI support, but unfortunatly custom CGI scripts not supported on this server, and all features of the applet can't be demoed here.

This limited to client-side version have two major parametes to be customized:
WINURL and LOSTURL, URLs of the documents to be loaded on players win and lost. What is Win and what is Lost? At the begining of the game, both Dealer and Player have 1000 credits, when Player spend all his credits he lost, if player wins all dealer's credits he wins. According to game ending result winning or lost page will be loaded. In this demo, I don't create actual win/lost pages, If you wins you will be derected to Downloads page, if you lost you will be thrown out to the root of my java collection.

Other Parameter one can customize is Image URL, this is just a place for any custom image.

Additional features for use with CGI version. One can supply the applet with TRANSACTION URL, applet would interact with server using this URL to post each game transaction results, including win or lost amount and customer ID. In responce server should return plain-text commands including dealer score, player score, number of games played, and wins percentage. In addition, server can return ShowDocument command if user or dealer wins, or optional ShowImage command. So the image shown at applet will be replaced with new one. So one can create script at server-side to control Strip sequence. Last option is show message command, to show some short phrases at the borttom of the game statistics area.

Applet tag Example (as it used on this server)

    <APPLET CODE="BlackJack3.class"
     CODEBASE="./"
     WIDTH=600 HEIGHT=306>
    <PARAM NAME="CARDSIMAGE"   VALUE="bjall.gif">
    <PARAM NAME="OVERIMAGE"    VALUE="bjcover.gif">
    <PARAM NAME="IMAGE"        VALUE="bjdealer.gif">
    <PARAM NAME="TEXTCOLOR"    VALUE="000000">
    <PARAM NAME="BGCOLOR"      VALUE="000000">
    <PARAM NAME="ACTIVECOLOR"  VALUE="ffff00">
    <PARAM NAME="PASSIVECOLOR" VALUE="00ff00">
    <PARAM NAME="BUTTONSCOLOR" VALUE="808000">
    <PARAM NAME="SHADOWCOLOR"  VALUE="000000">
    <PARAM NAME="STATCOLOR"    VALUE="00c000">

    <PARAM NAME="DEALERNAME"   VALUE="Dealer">
    <PARAM NAME="PLAYERNAME"   VALUE="Player">
    <PARAM NAME="WINURL"       VALUE="license.html">
    <PARAM NAME="LOSTURL"      VALUE="defaultjava.html">

    <PARAM NAME="KEY"          VALUE="Free Version">
    <PARAM NAME="AUTHOR"       VALUE="Virtual_Max (http://come.to/vmax)">

    </APPLET>