File: utest1

package info (click to toggle)
poker-eval 134.0-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,544 kB
  • ctags: 1,587
  • sloc: ansic: 15,340; sh: 8,928; cs: 785; makefile: 276
file content (70 lines) | stat: -rwxr-xr-x 2,860 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/sh -x
#
# Copyright (C) 2004-2006
#           Michael Maurer <mjmaurer@yahoo.com>
#           Loic Dachary <loic@dachary.org>
#
#  This package is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; version 2 dated June, 1991.
#
#  This package is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this package; if not, write to the Free Software
#  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
#  MA 02110-1301, USA.
#
# $Id: utest1 1773 2006-10-12 11:34:41Z loic $
# utest1 -- unit tests for examples

#./pokenum -h Ac 7c - 5s 4s - Ks Kd
./pokenum -h Ac 7c - 5s 4s - Ks Kd -- 7h 2c 3h
./pokenum -h Ac 7c - 5s 4s - Ks Kd -- 7h 2c 3h / Ah

#./pokenum -h8 Ac 7c - 5s 4s - Ks Kd
./pokenum -h8 Ac 7c  5s 4s  Ks Kd -- 7h 2c 3h

#./pokenum -o As Kh Qs Jh - 8h 8d 7h 6d
./pokenum -o As Kh Qs Jh - 8h 8d 7h 6d -- 8s Ts Jc

#./pokenum -o8 As Kh Qs Jh - 8h 8d 7h 6d
./pokenum -o8 As Kh Qs Jh - 8h 8d 7h 6d -- 8s Ts Jc

./pokenum -7s As Ah Ts Th 8h 8d - Kc Qc Jc Td 3c 2d - Ac 2h 3h 3d 7s 7h
./pokenum -7s As Ah Ts Th 8h 8d - Kc Qc Jc Td 3c 2d - Ac 2h 3h 3d 7s 7h / 5c 6c 7c

./pokenum -7s8 As Ah Ts Th 8h 8d - Kc Qc Jc Td 3c 2d - Ac 2h 3h 3d 7s 7h
./pokenum -7s8 As Ah Ts Th 8h 8d - Kc Qc Jc Td 3c 2d - Ac 2h 3h 3d 7s 7h / 5c 6c 7c

./pokenum -7snsq As Ah Ts Th 8h 8d - Kc Qc Jc Td 3c 2d - Ac 2h 3h 3d 7s 7h
./pokenum -7snsq As Ah Ts Th 8h 8d - Kc Qc Jc Td 3c 2d - Ac 2h 3h 3d 7s 7h / 5c 6c 7c

./pokenum -r As 2s 3s 4s Kh - Th 9h 8h 7h 6h / Qd Jd Td 9d

./pokenum -5d As Xx / Qh Td 9s - 8h 7h 4h 3h / Ks
./pokenum -5d As Ac / Qh Td 9s - 8h 7h Xx 3h / Ks
./pokenum -5d As Ac / Qh Td 9s - 8h 7h 4h 3h / Ks
./pokenum -5d8 As Ac / Qh Td 9s - 8h 7h 4h 3h / Ks
./pokenum -5dnsq As Ac / Qh Td 9s - 8h 7h 4h 3h / Ks

./pokenum -l 5h 4h 3h 2h / 5s - 9s 8h 6d 4c / Kd
./pokenum -l 5h 4h 3h 2h / 5s - 9s 6d 4c Xx / Kd

./pokenum -l27 As 2s 3s 4s 5d - Ac 3c 4c 5c 6d
./pokenum -l27 5h 4h 3h 2h / 5s - 9s 8h 6d 4c / Kd

./pokenum -mc 10000 -h Ac 7c - 5s 4s - Ks Kd
./pokenum -mc 10000 -h Ac 7c - 5s 4s - Ks Kd -- 7h 2c 3h
./pokenum -mc 10000 -h8 Ac 7c - 5s 4s - Ks Kd
./pokenum -mc 10000 -o As Kh Qs Jh - 8h 8d 7h 6d
./pokenum -mc 10000 -o8 As Kh Qs Jh - 8h 8d 7h 6d
./pokenum -mc 10000 -7s As Ah Ts -  7c 6c 5c
./pokenum -mc 10000 -7s8 As Ah Ts - 7c 6c 5c
./pokenum -mc 10000 -7snsq As Ah Ts -  7c 6c 5c
./pokenum -mc 10000 -r As 2s 3s 4s Kh - Th 9h 8h 7h 6h / Qd Jd Td 9d
./pokenum -mc 10000 -l27 5h 4h 3h 2h / 5s - 9s 8h 6d 4c / Kd
./pokenum -mc 10000 -l27 5h 4h 3h / 5s Qd - 9s 8h 6d / Kd Ks