Bbjd is a tool to calculate the optimum strategy playing Black Jack. This

program may be used to prove that when playing Black Jack it is possible to
beat the casino. Probably, Black Jack is the only game offered by casinos,
where it is possible to win in the long term (and this fact is mathematically
proven).

PR:		ports/9895
Submitted By:	Dima Sivachenko <dima@Chg.RU>

[committers note: this can be addicting.]
This commit is contained in:
Bill Fumerola 1999-03-06 16:41:53 +00:00
parent 67fa592736
commit bcc1b434d5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=17017
7 changed files with 72 additions and 0 deletions

30
misc/bbjd/Makefile Normal file
View file

@ -0,0 +1,30 @@
# New ports collection makefile for: bbjd
# Version required: 1.01
# Date created: 3 February 1999
# Whom: Dima Sivachenko
#
# $Id: $
#
DISTNAME= bbjd-1.01
CATEGORIES= misc math
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= games/strategy
MAINTAINER= dima@chg.ru
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/bbjd
do-install:
@ ${INSTALL_PROGRAM} ${WRKSRC}/bbjd ${PREFIX}/bin/
@ ${INSTALL_PROGRAM} ${WRKSRC}/simbj ${PREFIX}/bin/
@ ${MKDIR} ${PREFIX}/share/bbjd
@ ${INSTALL_DATA} ${WRKSRC}/Interactive ${PREFIX}/share/bbjd/
@ ${INSTALL_DATA} ${WRKSRC}/Simulation ${PREFIX}/share/bbjd/
@ ${INSTALL_DATA} ${WRKSRC}/Theory ${PREFIX}/share/bbjd/
post-install:
@ ${CAT} ${PKGDIR}/MESSAGE
.include <bsd.port.mk>

1
misc/bbjd/distinfo Normal file
View file

@ -0,0 +1 @@
MD5 (bbjd-1.01.tar.gz) = 674b296e9f4cf87f4fee1515b76083e7

22
misc/bbjd/files/patch-aa Normal file
View file

@ -0,0 +1,22 @@
--- Makefile.orig Mon Oct 26 05:47:44 1998
+++ Makefile Sun Feb 14 17:39:37 1999
@@ -13,8 +13,8 @@
-Wmissing-declarations -Wreturn-type \
-Wnested-externs -Wwrite-strings -Wcast-qual
INCDIR = -I. -I/usr/include
-CFLAGS = $(DEFINES) $(LANG_OPTIONS) $(WARN_OPTIONS) $(INCDIR)
-COPTS = -O2
+CFLAGS?= -O2
+CFLAGS+= $(DEFINES) $(LANG_OPTIONS) $(WARN_OPTIONS) $(INCDIR)
######## link options ########
LD = gcc
@@ -36,7 +36,7 @@
%o: %c
@echo --- compiling: $< ---
- $(CC) $(CFLAGS) $(COPTS) -c $< -o $@
+ $(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f probability.o interactive.o display.o simulate.o core

1
misc/bbjd/pkg-comment Normal file
View file

@ -0,0 +1 @@
bbjd - beat the blackjack dealer

8
misc/bbjd/pkg-descr Normal file
View file

@ -0,0 +1,8 @@
Bbjd is a tool to calculate the optimum strategy playing Black Jack. This
program may be used to prove that when playing Black Jack it is possible to
beat the casino. Probably, Black Jack is the only game offered by casinos,
where it is possible to win in the long term (and this fact is mathematically
proven).
--Dima
dima@chg.ru

4
misc/bbjd/pkg-message Normal file
View file

@ -0,0 +1,4 @@
-------------------------------------------------------------------------------
This program has no man-pages. Please read documentation installed in
share/bbjd directory.
-------------------------------------------------------------------------------

6
misc/bbjd/pkg-plist Normal file
View file

@ -0,0 +1,6 @@
bin/bbjd
bin/simbj
share/bbjd/Interactive
share/bbjd/Simulation
share/bbjd/Theory
@dirrm share/bbjd