Procházet zdrojové kódy

ace-five gives positive results for n=1e8

master
gtheler před 5 roky
rodič
revize
ee642ea577
2 změnil soubory, kde provedl 9 přidání a 6 odebrání
  1. +1
    -1
      players/30-ace-five/ace-five.py
  2. +8
    -5
      players/30-ace-five/run.sh

+ 1
- 1
players/30-ace-five/ace-five.py Zobrazit soubor

@@ -37,7 +37,7 @@
import sys
import fileinput

max_bet = 32
max_bet = 8
debug = False

n_player_cards = 0

+ 8
- 5
players/30-ace-five/run.sh Zobrazit soubor

@@ -1,11 +1,14 @@
# if test ! -e fifo; then
# mkfifo fifo
# fi
# blackjack --decks=4 --player=stdio --verbose=true -n2e4 < fifo | ./ace-five.py > fifo
#!/bin/sh

if test -z "$1"; then
n=1e5
else
n=$1
fi

if test ! -e A; then
mkfifo A
mkfifo B
fi
python3 ace-five.py < A > B &
blackjack --decks=4 --player=stdio --verbose=true -n1e6 > A < B
blackjack --decks=1 --player=stdio --verbose=true -n${1} > A < B

Načítá se…
Zrušit
Uložit