home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Complete Encyclopedia of Games 1
/
Microforum-Over1000GamesVol1-Win31-CD1of2.iso
/
casino
/
bj-hir
/
blkjak2.doc
next >
Wrap
Text File
|
1988-08-25
|
9KB
|
196 lines
╔═════════════════════════════════════════════════════════════════════════╗
║ Blackjack - Version 2.0 for IBM-PC/XT/AT/386 and compatible computers ║
║ with EGA or VGA Displays ║
║ By: Bob Sully - 25 August 1988 ║
╚═════════════════════════════════════════════════════════════════════════╝
I. Legal Formalities:
The face-card image files (JACK.IMG, QUEEN.IMG, and KING.IMG),
included in this package, the source code for the main program, and
this document file are copyright 1988 by Robert C. Sully. Portions of
the executable file BLKJAK2.EXE are copyright Microsoft Corporation.
The executable file and image files may be copied and distributed
freely, provided: (1) that they are unaltered in any fashion; (2) they
are distributed together as a package which also includes this document
file; and (3) no fees or charges are received for copies in excess of
the cost of the media.
Support the ShareWare concept. You are entitled to a short trial
period during which you may evaluate the program. If you find that you
enjoy the program and use it for longer than a short time, (a week, for
example), I'd appreciate a donation of $10. Such donations encourage
ShareWare authors such as myself to continue to write these programs.
II. Background Information:
The initial version of this program was written to simulate a Las
Vegas-type blackjack game to give me some practice with basic strategy
before venturing out to the casinos. The initial version was written
in interpreted BASIC on a Heath/Zenith H-100, a dual-processor (8088,
8085) machine which was introduced at about the same time as the orig-
inal IBM-PC-1. It was able to run CP/M and a vanilla version of MS-DOS.
Its video setup, however, was quite different. It came with 192K of
bit-mapped video memory, which allowed a resolution of 640x225 pixels in
eight colors (compare with 320x200 in four colors for the CGA standard).
It could display up to 450 pixels vertically in interlace mode. Having
video memory on a separate board allowed the machine to utilize up to
768K of DOS system memory.
However, the original version (1.0) was written in text-only
mode. For example, it would display "You have: Five of Hearts and
King of Clubs". After a while, however, I decided to utilize some of
the capabilities of the '100's video, and the direct predecessor of
this program was born (1.4, after a few bug fixes and improvements).
Its appearance was fairly similar to version 2; however, the face cards
were much less impressive, in part due to the vertical resolution avail-
able. Also, the code was, though "structured" (as much as is possible
in interpreted BASIC), less "tight".
This version was entered in a contest for graphic games sponsored
by the national Heath/Zenith Users' Group and finished among the top
six programs submitted nationally. It can be obtained from the Heath
Users' Group, Benton Harbor, Michigan, in the "Z-DOS Games Contest"
package.
- 1 -
A few minor changes ensued, namely, addition of a card-counting
aid (display of the High/Low ratio on screen (1.5)).
Eventually, I yielded to temptation and bought an AT-compatible
machine with EGA video (an AST Premium-286). At that time, an attempt
to port the program over to compiled BASIC was attempted, with mixed
results. The original Microsoft BASIC compiler was less than optimal,
and the project stalled for a short time. However, with the release of
the QuickBASIC series, with its support for true "structured" BASIC
programming and excellent graphics support, the conversion became quite
a bit easier. The code was cleaned up and partly re-written. The
face card images were created using PFS:First Publisher; a couple of
small programs were written to generate the disk files. The font
used on the cards was created bitwise and is read into an array,
allowing precise display and manipulation (including inversion on the
lower half of each card image). Short tunes were added to the end-of-
game and test-for-blackjack subroutines to "liven up" the program a
bit (if these become annoying, hitting a function key will toggle them
"off"). A "Help" screen was added to allow review of the basics of
the game while in progress.
III. Hardware Requirements:
The final version was written and compiled on the AST with an ATI
Wonder EGA card and a Heath/Zenith '386 with a Video-7 16-bit VGA card,
under Microsoft's QuickBASIC version 4.5.
It will "auto-sense" the highest available graphics display mode.
An EGA or VGA card is currently required to run this program. If support
exists for a Hercules/TTL Monochrome version (and financial support is
forthcoming) I'll consider porting it over.
This program will run on any IBM PC/XT/AT/386 or close compatible.
It does run a bit slowly on an older 4.77-MHz 8088-based machine but is
fairly tolerable on a "turbo" XT clone. It may seem a bit too fast on
quicker 80286- and 80386-based machines. For this reason, a "slowdown"
option is offered for such machines. Memory requirements can differ
depending on which version of DOS you're running. However, it should
run on just about any machine with 256K of memory.
IV. Basic Operation:
Run the program by entering the program name, BLKJAK2, at the DOS
prompt. The screen will clear, and a banner will be printed. The
program will then search the disk for the face-card image files, namely
JACK.IMG, QUEEN.IMG, and KING.IMG. These must be in the same directory
as the executable file. If they are found, the "no errors" message will
be displayed, and the initial graphic screen will be displayed. If any
or all of the files are missing, a message to this effect will be dis-
played, and you will be dropped back out to DOS.
If all of the files are found, the program will then ask whether
you wish to display a list of the rules. Reply "Y" or "N". The rules
are patterned after the commonest set of Las Vegas Strip casino rules,
with the following exception: only one SPLIT is allowed, due to limited
screen space (I decided to favor better, more readable cards rather
than a larger number of hands). Next, the program will ask you how
many decks you wish to play with. From one to six decks can be used.
One-deck games are VERY rare in Las Vegas, Reno, and Lake Tahoe casinos
nowadays because of the relative ease of card-counting in single-deck
games. Most "shoes" contain six decks. The program will reshuffle
after around 80% of the cards have been dealt.
- 2 -
Next, the program will ask if you want to slow it down. Only do
this with a faster '286 or '386 machine. I've found that it becomes
reasonable to do this at about 12-16 MHz. You'll definitely need to
do this if you are running on a 25-MHz '386!
Next, the actual playing screen will be displayed. You may wager
between $2 and $1,000 per hand. Doubling down or splitting doubles
your bet. You may double down after splitting. Blackjack pays 1.5 to
one. "Insurance" bets are one-half of your original bet, and are paid
double (the hand is a "wash") if the computer gets a natural and you
are insured. * For a complete set of rules, see the program itself, and
the HELP screen (F6 at the Option: prompt). *
To quit, enter zero as your bet. Hit "Y" to confirm when asked if
you really wish to quit.
Enjoy! Any suggestions (as well as the donation/registration
fee) may be sent to:
Bob Sully
5601 DeSoto Avenue, Department F.P.
Woodland Hills, CA 91367
Of course, any significant bug reports may also be sent to the same
address. Thanks!
- 3 -