-
Notifications
You must be signed in to change notification settings - Fork 0
/
skat-game-format
81 lines (65 loc) · 2.06 KB
/
skat-game-format
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
71
72
73
74
75
76
77
78
79
80
81
move format: <player-to-move> <action>
<player-to-move> :: w | 0 | 1 | 2 // w = "world", 0 = forehand
<action> ::
- initial deal: 3 x 10 + 2 cards (see below)
??.??.??.??.??.??.??.??.??.??|??.??.??.??.??.??.??.??.??.??|HJ.C9.SK.S8.S7.HT.DA.DK.D9.D7|??.??
- bids: numbers
- answers: y ("yes") or p ("pass")
- pick up skat or contract declaration:
s or <hand-game-type>[.<card>.<card>... in ouvert games]
- world provides skat: <card1>.<card2>
- discard cards and contract declaration:
<game-type>.<card1>.<card2>[.<card>.<card>... in ouvert games]
- cardplay: <card>
<card> :: <suit><rank> | ?? (=don't know)
<suit> :: C | S | H | D (clubs to diamonds)
<rank> :: A | K | Q | J | T | 9 | 8 | 7 (T = 10)
<game-type> :: (G | C | S | H | D | N) (type Grand .. Null)
[O] (ouvert)
[H] (hand, not given if O + trump game)
[S] (schneider announced, only in H games, not if O or Z)
[Z] (schwarz announced, only in H games)
examples: GO (grand ouvert)
NOH (null ouvert hand)
HH (hearts hand)
CHS (clubs hand schneider announced)
GHZ (grand hand schwarz announced)
C (clubs)
N (null)
<game-type> :: (G | C | S | H | D | N) (type Grand .. Null)
[O] (ouvert)
[H] (hand, not given if O + trump game)
[S] (schneider announced, only in H games)
[Z] (schwarz announced, only in H games)
examples: GO (grand ouvert)
NOH (null ouvert hand)
HH (hearts hand)
CHS (clubs hand schneider announced)
GHZ (grand hand schwarz announced)
sample null ouvert game (player view):
w ??.??.??.??.??.??.??.??.??.??|??.??.??.??.??.??.??.??.??.??|HJ.C9.SK.S8.S7.HT.DA.DK.D9.D7|??.??
1 18
0 y
1 20
0 y
1 p
2 22
0 y
2 23
0 y
2 24
0 y
2 27
0 p
2 s
w H9.H8
2 NO.C9.SK.D7.D9.DK.DA.H8.H9.HT.HJ.S7.S8 // NO + 2 discarded cards + 10 player cards
0 S9
1 SA
2 S7
1 HA
2 H8
0 HQ
1 H7
2 H9
0 DQ