unocab 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +108 -0
  3. package/esm/_dnt.shims.d.ts +4 -0
  4. package/esm/_dnt.shims.js +62 -0
  5. package/esm/_dnt.test_shims.d.ts +7 -0
  6. package/esm/deps/deno.land/std@0.190.0/fmt/colors.d.ts +270 -0
  7. package/esm/deps/deno.land/std@0.190.0/testing/_diff.d.ts +26 -0
  8. package/esm/deps/deno.land/std@0.190.0/testing/_format.d.ts +1 -0
  9. package/esm/deps/deno.land/std@0.190.0/testing/asserts.d.ts +284 -0
  10. package/esm/deps/deno.land/x/zod@v3.21.4/ZodError.d.ts +163 -0
  11. package/esm/deps/deno.land/x/zod@v3.21.4/ZodError.js +148 -0
  12. package/esm/deps/deno.land/x/zod@v3.21.4/errors.d.ts +5 -0
  13. package/esm/deps/deno.land/x/zod@v3.21.4/errors.js +9 -0
  14. package/esm/deps/deno.land/x/zod@v3.21.4/external.d.ts +6 -0
  15. package/esm/deps/deno.land/x/zod@v3.21.4/external.js +6 -0
  16. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/enumUtil.d.ts +8 -0
  17. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/enumUtil.js +1 -0
  18. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/errorUtil.d.ts +9 -0
  19. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/errorUtil.js +5 -0
  20. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/parseUtil.d.ts +78 -0
  21. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/parseUtil.js +104 -0
  22. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/partialUtil.d.ts +8 -0
  23. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/partialUtil.js +1 -0
  24. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/typeAliases.d.ts +2 -0
  25. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/typeAliases.js +1 -0
  26. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/util.d.ts +68 -0
  27. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/util.js +138 -0
  28. package/esm/deps/deno.land/x/zod@v3.21.4/index.d.ts +4 -0
  29. package/esm/deps/deno.land/x/zod@v3.21.4/index.js +4 -0
  30. package/esm/deps/deno.land/x/zod@v3.21.4/locales/en.d.ts +3 -0
  31. package/esm/deps/deno.land/x/zod@v3.21.4/locales/en.js +127 -0
  32. package/esm/deps/deno.land/x/zod@v3.21.4/mod.d.ts +1 -0
  33. package/esm/deps/deno.land/x/zod@v3.21.4/mod.js +1 -0
  34. package/esm/deps/deno.land/x/zod@v3.21.4/types.d.ts +965 -0
  35. package/esm/deps/deno.land/x/zod@v3.21.4/types.js +3689 -0
  36. package/esm/errors.d.ts +72 -0
  37. package/esm/errors.js +39 -0
  38. package/esm/game.d.ts +868 -0
  39. package/esm/game.js +868 -0
  40. package/esm/mod.d.ts +3 -0
  41. package/esm/mod.js +3 -0
  42. package/esm/package.json +3 -0
  43. package/esm/tests/basic-tests.d.ts +8 -0
  44. package/esm/tests/draw-tests.d.ts +8 -0
  45. package/esm/tests/non-specific-tests.test.d.ts +1 -0
  46. package/esm/tests/rule-violation-tests.d.ts +8 -0
  47. package/esm/tests/specific-tests.test.d.ts +1 -0
  48. package/esm/tests/test-utils.d.ts +91 -0
  49. package/esm/tests/turn-tests.d.ts +8 -0
  50. package/esm/types.d.ts +2280 -0
  51. package/esm/types.js +152 -0
  52. package/esm/utils.d.ts +19 -0
  53. package/esm/utils.js +44 -0
  54. package/package.json +32 -0
  55. package/script/_dnt.shims.d.ts +4 -0
  56. package/script/_dnt.shims.js +66 -0
  57. package/script/_dnt.test_shims.d.ts +7 -0
  58. package/script/deps/deno.land/std@0.190.0/fmt/colors.d.ts +270 -0
  59. package/script/deps/deno.land/std@0.190.0/testing/_diff.d.ts +26 -0
  60. package/script/deps/deno.land/std@0.190.0/testing/_format.d.ts +1 -0
  61. package/script/deps/deno.land/std@0.190.0/testing/asserts.d.ts +284 -0
  62. package/script/deps/deno.land/x/zod@v3.21.4/ZodError.d.ts +163 -0
  63. package/script/deps/deno.land/x/zod@v3.21.4/ZodError.js +152 -0
  64. package/script/deps/deno.land/x/zod@v3.21.4/errors.d.ts +5 -0
  65. package/script/deps/deno.land/x/zod@v3.21.4/errors.js +17 -0
  66. package/script/deps/deno.land/x/zod@v3.21.4/external.d.ts +6 -0
  67. package/script/deps/deno.land/x/zod@v3.21.4/external.js +22 -0
  68. package/script/deps/deno.land/x/zod@v3.21.4/helpers/enumUtil.d.ts +8 -0
  69. package/script/deps/deno.land/x/zod@v3.21.4/helpers/enumUtil.js +2 -0
  70. package/script/deps/deno.land/x/zod@v3.21.4/helpers/errorUtil.d.ts +9 -0
  71. package/script/deps/deno.land/x/zod@v3.21.4/helpers/errorUtil.js +8 -0
  72. package/script/deps/deno.land/x/zod@v3.21.4/helpers/parseUtil.d.ts +78 -0
  73. package/script/deps/deno.land/x/zod@v3.21.4/helpers/parseUtil.js +119 -0
  74. package/script/deps/deno.land/x/zod@v3.21.4/helpers/partialUtil.d.ts +8 -0
  75. package/script/deps/deno.land/x/zod@v3.21.4/helpers/partialUtil.js +2 -0
  76. package/script/deps/deno.land/x/zod@v3.21.4/helpers/typeAliases.d.ts +2 -0
  77. package/script/deps/deno.land/x/zod@v3.21.4/helpers/typeAliases.js +2 -0
  78. package/script/deps/deno.land/x/zod@v3.21.4/helpers/util.d.ts +68 -0
  79. package/script/deps/deno.land/x/zod@v3.21.4/helpers/util.js +142 -0
  80. package/script/deps/deno.land/x/zod@v3.21.4/index.d.ts +4 -0
  81. package/script/deps/deno.land/x/zod@v3.21.4/index.js +33 -0
  82. package/script/deps/deno.land/x/zod@v3.21.4/locales/en.d.ts +3 -0
  83. package/script/deps/deno.land/x/zod@v3.21.4/locales/en.js +129 -0
  84. package/script/deps/deno.land/x/zod@v3.21.4/mod.d.ts +1 -0
  85. package/script/deps/deno.land/x/zod@v3.21.4/mod.js +17 -0
  86. package/script/deps/deno.land/x/zod@v3.21.4/types.d.ts +965 -0
  87. package/script/deps/deno.land/x/zod@v3.21.4/types.js +3739 -0
  88. package/script/errors.d.ts +72 -0
  89. package/script/errors.js +43 -0
  90. package/script/game.d.ts +868 -0
  91. package/script/game.js +895 -0
  92. package/script/mod.d.ts +3 -0
  93. package/script/mod.js +19 -0
  94. package/script/package.json +3 -0
  95. package/script/tests/basic-tests.d.ts +8 -0
  96. package/script/tests/draw-tests.d.ts +8 -0
  97. package/script/tests/non-specific-tests.test.d.ts +1 -0
  98. package/script/tests/rule-violation-tests.d.ts +8 -0
  99. package/script/tests/specific-tests.test.d.ts +1 -0
  100. package/script/tests/test-utils.d.ts +91 -0
  101. package/script/tests/turn-tests.d.ts +8 -0
  102. package/script/types.d.ts +2280 -0
  103. package/script/types.js +155 -0
  104. package/script/utils.d.ts +19 -0
  105. package/script/utils.js +50 -0
package/esm/types.d.ts ADDED
@@ -0,0 +1,2280 @@
1
+ import { z } from "./deps/deno.land/x/zod@v3.21.4/mod.js";
2
+ export declare const regularCards: z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>;
3
+ export type RegularCard = z.infer<typeof regularCards>;
4
+ export declare const colorSwitchingScs: z.ZodEnum<["plus-four", "color-chooser"]>;
5
+ export type ColorSwitchingScs = z.infer<typeof colorSwitchingScs>;
6
+ export declare const nonColorSwitchingScs: z.ZodEnum<["plus-two", "reverse", "skip"]>;
7
+ export type NonColorSwitchingScs = z.infer<typeof nonColorSwitchingScs>;
8
+ export declare const specialCards: z.ZodEnum<["plus-two", "reverse", "skip", "plus-four", "color-chooser"]>;
9
+ export type SpecialCard = z.infer<typeof specialCards>;
10
+ export declare const allCards: z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "plus-two", "reverse", "skip", "plus-four", "color-chooser"]>;
11
+ export type AllCards = z.infer<typeof allCards>;
12
+ export declare const cardColor: z.ZodEnum<["red", "blue", "green", "yellow"]>;
13
+ export type CardColor = z.infer<typeof cardColor>;
14
+ export declare const card: z.ZodUnion<[z.ZodObject<{
15
+ type: z.ZodUnion<[z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>, z.ZodEnum<["plus-two", "reverse", "skip"]>]>;
16
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
19
+ color: "red" | "blue" | "green" | "yellow";
20
+ }, {
21
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
22
+ color: "red" | "blue" | "green" | "yellow";
23
+ }>, z.ZodObject<{
24
+ type: z.ZodEnum<["plus-four", "color-chooser"]>;
25
+ color: z.ZodUndefined;
26
+ }, "strip", z.ZodTypeAny, {
27
+ type: "plus-four" | "color-chooser";
28
+ color?: undefined;
29
+ }, {
30
+ type: "plus-four" | "color-chooser";
31
+ color?: undefined;
32
+ }>]>;
33
+ export type Card = z.infer<typeof card>;
34
+ export declare const playerId: z.ZodString;
35
+ export type PlayerId = z.infer<typeof playerId>;
36
+ export declare const cardPlayedEvent: z.ZodObject<{
37
+ type: z.ZodLiteral<"card_played">;
38
+ by: z.ZodString;
39
+ card: z.ZodUnion<[z.ZodObject<{
40
+ type: z.ZodUnion<[z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>, z.ZodEnum<["plus-two", "reverse", "skip"]>]>;
41
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
44
+ color: "red" | "blue" | "green" | "yellow";
45
+ }, {
46
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
47
+ color: "red" | "blue" | "green" | "yellow";
48
+ }>, z.ZodObject<{
49
+ type: z.ZodEnum<["plus-four", "color-chooser"]>;
50
+ color: z.ZodUndefined;
51
+ }, "strip", z.ZodTypeAny, {
52
+ type: "plus-four" | "color-chooser";
53
+ color?: undefined;
54
+ }, {
55
+ type: "plus-four" | "color-chooser";
56
+ color?: undefined;
57
+ }>]>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ type: "card_played";
60
+ by: string;
61
+ card: {
62
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
63
+ color: "red" | "blue" | "green" | "yellow";
64
+ } | {
65
+ type: "plus-four" | "color-chooser";
66
+ color?: undefined;
67
+ };
68
+ }, {
69
+ type: "card_played";
70
+ by: string;
71
+ card: {
72
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
73
+ color: "red" | "blue" | "green" | "yellow";
74
+ } | {
75
+ type: "plus-four" | "color-chooser";
76
+ color?: undefined;
77
+ };
78
+ }>;
79
+ export type CardPlayedEvent = z.infer<typeof cardPlayedEvent>;
80
+ export declare const bluffCalledEvent: z.ZodObject<{
81
+ type: z.ZodLiteral<"bluff_called">;
82
+ by: z.ZodString;
83
+ }, "strip", z.ZodTypeAny, {
84
+ type: "bluff_called";
85
+ by: string;
86
+ }, {
87
+ type: "bluff_called";
88
+ by: string;
89
+ }>;
90
+ export type BluffCalledEvent = z.infer<typeof bluffCalledEvent>;
91
+ export declare const drawEvent: z.ZodObject<{
92
+ type: z.ZodLiteral<"draw">;
93
+ by: z.ZodString;
94
+ }, "strip", z.ZodTypeAny, {
95
+ type: "draw";
96
+ by: string;
97
+ }, {
98
+ type: "draw";
99
+ by: string;
100
+ }>;
101
+ export type DrawEvent = z.infer<typeof drawEvent>;
102
+ export declare const passEvent: z.ZodObject<{
103
+ type: z.ZodLiteral<"pass">;
104
+ by: z.ZodString;
105
+ }, "strip", z.ZodTypeAny, {
106
+ type: "pass";
107
+ by: string;
108
+ }, {
109
+ type: "pass";
110
+ by: string;
111
+ }>;
112
+ export type PassEvent = z.infer<typeof passEvent>;
113
+ export declare const chooseColorEvent: z.ZodObject<{
114
+ type: z.ZodLiteral<"choose-color">;
115
+ by: z.ZodString;
116
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
117
+ }, "strip", z.ZodTypeAny, {
118
+ type: "choose-color";
119
+ color: "red" | "blue" | "green" | "yellow";
120
+ by: string;
121
+ }, {
122
+ type: "choose-color";
123
+ color: "red" | "blue" | "green" | "yellow";
124
+ by: string;
125
+ }>;
126
+ export type ChooseColorEvent = z.infer<typeof chooseColorEvent>;
127
+ export declare const gameEvent: z.ZodUnion<[z.ZodObject<{
128
+ type: z.ZodLiteral<"card_played">;
129
+ by: z.ZodString;
130
+ card: z.ZodUnion<[z.ZodObject<{
131
+ type: z.ZodUnion<[z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>, z.ZodEnum<["plus-two", "reverse", "skip"]>]>;
132
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
133
+ }, "strip", z.ZodTypeAny, {
134
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
135
+ color: "red" | "blue" | "green" | "yellow";
136
+ }, {
137
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
138
+ color: "red" | "blue" | "green" | "yellow";
139
+ }>, z.ZodObject<{
140
+ type: z.ZodEnum<["plus-four", "color-chooser"]>;
141
+ color: z.ZodUndefined;
142
+ }, "strip", z.ZodTypeAny, {
143
+ type: "plus-four" | "color-chooser";
144
+ color?: undefined;
145
+ }, {
146
+ type: "plus-four" | "color-chooser";
147
+ color?: undefined;
148
+ }>]>;
149
+ }, "strip", z.ZodTypeAny, {
150
+ type: "card_played";
151
+ by: string;
152
+ card: {
153
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
154
+ color: "red" | "blue" | "green" | "yellow";
155
+ } | {
156
+ type: "plus-four" | "color-chooser";
157
+ color?: undefined;
158
+ };
159
+ }, {
160
+ type: "card_played";
161
+ by: string;
162
+ card: {
163
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
164
+ color: "red" | "blue" | "green" | "yellow";
165
+ } | {
166
+ type: "plus-four" | "color-chooser";
167
+ color?: undefined;
168
+ };
169
+ }>, z.ZodObject<{
170
+ type: z.ZodLiteral<"bluff_called">;
171
+ by: z.ZodString;
172
+ }, "strip", z.ZodTypeAny, {
173
+ type: "bluff_called";
174
+ by: string;
175
+ }, {
176
+ type: "bluff_called";
177
+ by: string;
178
+ }>, z.ZodObject<{
179
+ type: z.ZodLiteral<"choose-color">;
180
+ by: z.ZodString;
181
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
182
+ }, "strip", z.ZodTypeAny, {
183
+ type: "choose-color";
184
+ color: "red" | "blue" | "green" | "yellow";
185
+ by: string;
186
+ }, {
187
+ type: "choose-color";
188
+ color: "red" | "blue" | "green" | "yellow";
189
+ by: string;
190
+ }>, z.ZodObject<{
191
+ type: z.ZodLiteral<"draw">;
192
+ by: z.ZodString;
193
+ }, "strip", z.ZodTypeAny, {
194
+ type: "draw";
195
+ by: string;
196
+ }, {
197
+ type: "draw";
198
+ by: string;
199
+ }>, z.ZodObject<{
200
+ type: z.ZodLiteral<"pass">;
201
+ by: z.ZodString;
202
+ }, "strip", z.ZodTypeAny, {
203
+ type: "pass";
204
+ by: string;
205
+ }, {
206
+ type: "pass";
207
+ by: string;
208
+ }>]>;
209
+ export type GameEvent = z.infer<typeof gameEvent>;
210
+ export declare const infoEvent: z.ZodObject<{
211
+ type: z.ZodLiteral<"game_info">;
212
+ info: z.ZodUnion<[z.ZodObject<{
213
+ type: z.ZodLiteral<"bluff_called">;
214
+ by: z.ZodString;
215
+ }, "strip", z.ZodTypeAny, {
216
+ type: "bluff_called";
217
+ by: string;
218
+ }, {
219
+ type: "bluff_called";
220
+ by: string;
221
+ }>, z.ZodObject<{
222
+ type: z.ZodLiteral<"bluff_call_succeeded">;
223
+ by: z.ZodString;
224
+ of: z.ZodString;
225
+ }, "strip", z.ZodTypeAny, {
226
+ type: "bluff_call_succeeded";
227
+ by: string;
228
+ of: string;
229
+ }, {
230
+ type: "bluff_call_succeeded";
231
+ by: string;
232
+ of: string;
233
+ }>, z.ZodObject<{
234
+ type: z.ZodLiteral<"bluff_call_failed">;
235
+ by: z.ZodString;
236
+ of: z.ZodString;
237
+ }, "strip", z.ZodTypeAny, {
238
+ type: "bluff_call_failed";
239
+ by: string;
240
+ of: string;
241
+ }, {
242
+ type: "bluff_call_failed";
243
+ by: string;
244
+ of: string;
245
+ }>, z.ZodObject<{
246
+ type: z.ZodLiteral<"seed_changed">;
247
+ newSeed: z.ZodNumber;
248
+ }, "strip", z.ZodTypeAny, {
249
+ type: "seed_changed";
250
+ newSeed: number;
251
+ }, {
252
+ type: "seed_changed";
253
+ newSeed: number;
254
+ }>, z.ZodObject<{
255
+ type: z.ZodLiteral<"player_won">;
256
+ id: z.ZodString;
257
+ }, "strip", z.ZodTypeAny, {
258
+ type: "player_won";
259
+ id: string;
260
+ }, {
261
+ type: "player_won";
262
+ id: string;
263
+ }>, z.ZodObject<{
264
+ type: z.ZodLiteral<"game_ended">;
265
+ loser: z.ZodString;
266
+ }, "strip", z.ZodTypeAny, {
267
+ type: "game_ended";
268
+ loser: string;
269
+ }, {
270
+ type: "game_ended";
271
+ loser: string;
272
+ }>, z.ZodObject<{
273
+ type: z.ZodLiteral<"player_joined">;
274
+ id: z.ZodString;
275
+ }, "strip", z.ZodTypeAny, {
276
+ type: "player_joined";
277
+ id: string;
278
+ }, {
279
+ type: "player_joined";
280
+ id: string;
281
+ }>, z.ZodObject<{
282
+ type: z.ZodLiteral<"player_left">;
283
+ id: z.ZodString;
284
+ }, "strip", z.ZodTypeAny, {
285
+ type: "player_left";
286
+ id: string;
287
+ }, {
288
+ type: "player_left";
289
+ id: string;
290
+ }>, z.ZodObject<{
291
+ type: z.ZodLiteral<"pile_to_deck">;
292
+ }, "strip", z.ZodTypeAny, {
293
+ type: "pile_to_deck";
294
+ }, {
295
+ type: "pile_to_deck";
296
+ }>]>;
297
+ }, "strip", z.ZodTypeAny, {
298
+ type: "game_info";
299
+ info: {
300
+ type: "bluff_called";
301
+ by: string;
302
+ } | {
303
+ type: "bluff_call_succeeded";
304
+ by: string;
305
+ of: string;
306
+ } | {
307
+ type: "bluff_call_failed";
308
+ by: string;
309
+ of: string;
310
+ } | {
311
+ type: "seed_changed";
312
+ newSeed: number;
313
+ } | {
314
+ type: "player_won";
315
+ id: string;
316
+ } | {
317
+ type: "game_ended";
318
+ loser: string;
319
+ } | {
320
+ type: "player_joined";
321
+ id: string;
322
+ } | {
323
+ type: "player_left";
324
+ id: string;
325
+ } | {
326
+ type: "pile_to_deck";
327
+ };
328
+ }, {
329
+ type: "game_info";
330
+ info: {
331
+ type: "bluff_called";
332
+ by: string;
333
+ } | {
334
+ type: "bluff_call_succeeded";
335
+ by: string;
336
+ of: string;
337
+ } | {
338
+ type: "bluff_call_failed";
339
+ by: string;
340
+ of: string;
341
+ } | {
342
+ type: "seed_changed";
343
+ newSeed: number;
344
+ } | {
345
+ type: "player_won";
346
+ id: string;
347
+ } | {
348
+ type: "game_ended";
349
+ loser: string;
350
+ } | {
351
+ type: "player_joined";
352
+ id: string;
353
+ } | {
354
+ type: "player_left";
355
+ id: string;
356
+ } | {
357
+ type: "pile_to_deck";
358
+ };
359
+ }>;
360
+ export type InfoEvent = z.infer<typeof infoEvent>;
361
+ export declare const fullGameState: z.ZodObject<{
362
+ events: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
363
+ type: z.ZodLiteral<"card_played">;
364
+ by: z.ZodString;
365
+ card: z.ZodUnion<[z.ZodObject<{
366
+ type: z.ZodUnion<[z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>, z.ZodEnum<["plus-two", "reverse", "skip"]>]>;
367
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
368
+ }, "strip", z.ZodTypeAny, {
369
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
370
+ color: "red" | "blue" | "green" | "yellow";
371
+ }, {
372
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
373
+ color: "red" | "blue" | "green" | "yellow";
374
+ }>, z.ZodObject<{
375
+ type: z.ZodEnum<["plus-four", "color-chooser"]>;
376
+ color: z.ZodUndefined;
377
+ }, "strip", z.ZodTypeAny, {
378
+ type: "plus-four" | "color-chooser";
379
+ color?: undefined;
380
+ }, {
381
+ type: "plus-four" | "color-chooser";
382
+ color?: undefined;
383
+ }>]>;
384
+ }, "strip", z.ZodTypeAny, {
385
+ type: "card_played";
386
+ by: string;
387
+ card: {
388
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
389
+ color: "red" | "blue" | "green" | "yellow";
390
+ } | {
391
+ type: "plus-four" | "color-chooser";
392
+ color?: undefined;
393
+ };
394
+ }, {
395
+ type: "card_played";
396
+ by: string;
397
+ card: {
398
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
399
+ color: "red" | "blue" | "green" | "yellow";
400
+ } | {
401
+ type: "plus-four" | "color-chooser";
402
+ color?: undefined;
403
+ };
404
+ }>, z.ZodObject<{
405
+ type: z.ZodLiteral<"bluff_called">;
406
+ by: z.ZodString;
407
+ }, "strip", z.ZodTypeAny, {
408
+ type: "bluff_called";
409
+ by: string;
410
+ }, {
411
+ type: "bluff_called";
412
+ by: string;
413
+ }>, z.ZodObject<{
414
+ type: z.ZodLiteral<"choose-color">;
415
+ by: z.ZodString;
416
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
417
+ }, "strip", z.ZodTypeAny, {
418
+ type: "choose-color";
419
+ color: "red" | "blue" | "green" | "yellow";
420
+ by: string;
421
+ }, {
422
+ type: "choose-color";
423
+ color: "red" | "blue" | "green" | "yellow";
424
+ by: string;
425
+ }>, z.ZodObject<{
426
+ type: z.ZodLiteral<"draw">;
427
+ by: z.ZodString;
428
+ }, "strip", z.ZodTypeAny, {
429
+ type: "draw";
430
+ by: string;
431
+ }, {
432
+ type: "draw";
433
+ by: string;
434
+ }>, z.ZodObject<{
435
+ type: z.ZodLiteral<"pass">;
436
+ by: z.ZodString;
437
+ }, "strip", z.ZodTypeAny, {
438
+ type: "pass";
439
+ by: string;
440
+ }, {
441
+ type: "pass";
442
+ by: string;
443
+ }>]>, z.ZodObject<{
444
+ type: z.ZodLiteral<"game_info">;
445
+ info: z.ZodUnion<[z.ZodObject<{
446
+ type: z.ZodLiteral<"bluff_called">;
447
+ by: z.ZodString;
448
+ }, "strip", z.ZodTypeAny, {
449
+ type: "bluff_called";
450
+ by: string;
451
+ }, {
452
+ type: "bluff_called";
453
+ by: string;
454
+ }>, z.ZodObject<{
455
+ type: z.ZodLiteral<"bluff_call_succeeded">;
456
+ by: z.ZodString;
457
+ of: z.ZodString;
458
+ }, "strip", z.ZodTypeAny, {
459
+ type: "bluff_call_succeeded";
460
+ by: string;
461
+ of: string;
462
+ }, {
463
+ type: "bluff_call_succeeded";
464
+ by: string;
465
+ of: string;
466
+ }>, z.ZodObject<{
467
+ type: z.ZodLiteral<"bluff_call_failed">;
468
+ by: z.ZodString;
469
+ of: z.ZodString;
470
+ }, "strip", z.ZodTypeAny, {
471
+ type: "bluff_call_failed";
472
+ by: string;
473
+ of: string;
474
+ }, {
475
+ type: "bluff_call_failed";
476
+ by: string;
477
+ of: string;
478
+ }>, z.ZodObject<{
479
+ type: z.ZodLiteral<"seed_changed">;
480
+ newSeed: z.ZodNumber;
481
+ }, "strip", z.ZodTypeAny, {
482
+ type: "seed_changed";
483
+ newSeed: number;
484
+ }, {
485
+ type: "seed_changed";
486
+ newSeed: number;
487
+ }>, z.ZodObject<{
488
+ type: z.ZodLiteral<"player_won">;
489
+ id: z.ZodString;
490
+ }, "strip", z.ZodTypeAny, {
491
+ type: "player_won";
492
+ id: string;
493
+ }, {
494
+ type: "player_won";
495
+ id: string;
496
+ }>, z.ZodObject<{
497
+ type: z.ZodLiteral<"game_ended">;
498
+ loser: z.ZodString;
499
+ }, "strip", z.ZodTypeAny, {
500
+ type: "game_ended";
501
+ loser: string;
502
+ }, {
503
+ type: "game_ended";
504
+ loser: string;
505
+ }>, z.ZodObject<{
506
+ type: z.ZodLiteral<"player_joined">;
507
+ id: z.ZodString;
508
+ }, "strip", z.ZodTypeAny, {
509
+ type: "player_joined";
510
+ id: string;
511
+ }, {
512
+ type: "player_joined";
513
+ id: string;
514
+ }>, z.ZodObject<{
515
+ type: z.ZodLiteral<"player_left">;
516
+ id: z.ZodString;
517
+ }, "strip", z.ZodTypeAny, {
518
+ type: "player_left";
519
+ id: string;
520
+ }, {
521
+ type: "player_left";
522
+ id: string;
523
+ }>, z.ZodObject<{
524
+ type: z.ZodLiteral<"pile_to_deck">;
525
+ }, "strip", z.ZodTypeAny, {
526
+ type: "pile_to_deck";
527
+ }, {
528
+ type: "pile_to_deck";
529
+ }>]>;
530
+ }, "strip", z.ZodTypeAny, {
531
+ type: "game_info";
532
+ info: {
533
+ type: "bluff_called";
534
+ by: string;
535
+ } | {
536
+ type: "bluff_call_succeeded";
537
+ by: string;
538
+ of: string;
539
+ } | {
540
+ type: "bluff_call_failed";
541
+ by: string;
542
+ of: string;
543
+ } | {
544
+ type: "seed_changed";
545
+ newSeed: number;
546
+ } | {
547
+ type: "player_won";
548
+ id: string;
549
+ } | {
550
+ type: "game_ended";
551
+ loser: string;
552
+ } | {
553
+ type: "player_joined";
554
+ id: string;
555
+ } | {
556
+ type: "player_left";
557
+ id: string;
558
+ } | {
559
+ type: "pile_to_deck";
560
+ };
561
+ }, {
562
+ type: "game_info";
563
+ info: {
564
+ type: "bluff_called";
565
+ by: string;
566
+ } | {
567
+ type: "bluff_call_succeeded";
568
+ by: string;
569
+ of: string;
570
+ } | {
571
+ type: "bluff_call_failed";
572
+ by: string;
573
+ of: string;
574
+ } | {
575
+ type: "seed_changed";
576
+ newSeed: number;
577
+ } | {
578
+ type: "player_won";
579
+ id: string;
580
+ } | {
581
+ type: "game_ended";
582
+ loser: string;
583
+ } | {
584
+ type: "player_joined";
585
+ id: string;
586
+ } | {
587
+ type: "player_left";
588
+ id: string;
589
+ } | {
590
+ type: "pile_to_deck";
591
+ };
592
+ }>]>, "many">;
593
+ index: z.ZodNumber;
594
+ initialSeed: z.ZodNumber;
595
+ players: z.ZodArray<z.ZodString, "many">;
596
+ stackPlusTwos: z.ZodBoolean;
597
+ cache: z.ZodObject<{
598
+ hands: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
599
+ type: z.ZodUnion<[z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>, z.ZodEnum<["plus-two", "reverse", "skip"]>]>;
600
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
601
+ }, "strip", z.ZodTypeAny, {
602
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
603
+ color: "red" | "blue" | "green" | "yellow";
604
+ }, {
605
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
606
+ color: "red" | "blue" | "green" | "yellow";
607
+ }>, z.ZodObject<{
608
+ type: z.ZodEnum<["plus-four", "color-chooser"]>;
609
+ color: z.ZodUndefined;
610
+ }, "strip", z.ZodTypeAny, {
611
+ type: "plus-four" | "color-chooser";
612
+ color?: undefined;
613
+ }, {
614
+ type: "plus-four" | "color-chooser";
615
+ color?: undefined;
616
+ }>]>, "many">>;
617
+ deck: z.ZodArray<z.ZodUnion<[z.ZodObject<{
618
+ type: z.ZodUnion<[z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>, z.ZodEnum<["plus-two", "reverse", "skip"]>]>;
619
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
620
+ }, "strip", z.ZodTypeAny, {
621
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
622
+ color: "red" | "blue" | "green" | "yellow";
623
+ }, {
624
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
625
+ color: "red" | "blue" | "green" | "yellow";
626
+ }>, z.ZodObject<{
627
+ type: z.ZodEnum<["plus-four", "color-chooser"]>;
628
+ color: z.ZodUndefined;
629
+ }, "strip", z.ZodTypeAny, {
630
+ type: "plus-four" | "color-chooser";
631
+ color?: undefined;
632
+ }, {
633
+ type: "plus-four" | "color-chooser";
634
+ color?: undefined;
635
+ }>]>, "many">;
636
+ seed: z.ZodNumber;
637
+ stackedPlusTwos: z.ZodNumber;
638
+ turnStep: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<-1>]>;
639
+ ended: z.ZodBoolean;
640
+ pile: z.ZodArray<z.ZodUnion<[z.ZodObject<{
641
+ type: z.ZodUnion<[z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>, z.ZodEnum<["plus-two", "reverse", "skip"]>]>;
642
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
643
+ }, "strip", z.ZodTypeAny, {
644
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
645
+ color: "red" | "blue" | "green" | "yellow";
646
+ }, {
647
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
648
+ color: "red" | "blue" | "green" | "yellow";
649
+ }>, z.ZodObject<{
650
+ type: z.ZodEnum<["plus-four", "color-chooser"]>;
651
+ color: z.ZodUndefined;
652
+ }, "strip", z.ZodTypeAny, {
653
+ type: "plus-four" | "color-chooser";
654
+ color?: undefined;
655
+ }, {
656
+ type: "plus-four" | "color-chooser";
657
+ color?: undefined;
658
+ }>]>, "many">;
659
+ last3CardPlayOrColorChanges: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
660
+ type: z.ZodUnion<[z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>, z.ZodEnum<["plus-two", "reverse", "skip"]>]>;
661
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
662
+ }, "strip", z.ZodTypeAny, {
663
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
664
+ color: "red" | "blue" | "green" | "yellow";
665
+ }, {
666
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
667
+ color: "red" | "blue" | "green" | "yellow";
668
+ }>, z.ZodObject<{
669
+ type: z.ZodEnum<["plus-four", "color-chooser"]>;
670
+ color: z.ZodUndefined;
671
+ }, "strip", z.ZodTypeAny, {
672
+ type: "plus-four" | "color-chooser";
673
+ color?: undefined;
674
+ }, {
675
+ type: "plus-four" | "color-chooser";
676
+ color?: undefined;
677
+ }>]>, z.ZodEnum<["red", "blue", "green", "yellow"]>]>, "many">;
678
+ }, "strip", z.ZodTypeAny, {
679
+ hands: Record<string, ({
680
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
681
+ color: "red" | "blue" | "green" | "yellow";
682
+ } | {
683
+ type: "plus-four" | "color-chooser";
684
+ color?: undefined;
685
+ })[]>;
686
+ deck: ({
687
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
688
+ color: "red" | "blue" | "green" | "yellow";
689
+ } | {
690
+ type: "plus-four" | "color-chooser";
691
+ color?: undefined;
692
+ })[];
693
+ seed: number;
694
+ stackedPlusTwos: number;
695
+ turnStep: 1 | -1;
696
+ ended: boolean;
697
+ pile: ({
698
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
699
+ color: "red" | "blue" | "green" | "yellow";
700
+ } | {
701
+ type: "plus-four" | "color-chooser";
702
+ color?: undefined;
703
+ })[];
704
+ last3CardPlayOrColorChanges: ("red" | "blue" | "green" | "yellow" | {
705
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
706
+ color: "red" | "blue" | "green" | "yellow";
707
+ } | {
708
+ type: "plus-four" | "color-chooser";
709
+ color?: undefined;
710
+ })[];
711
+ }, {
712
+ hands: Record<string, ({
713
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
714
+ color: "red" | "blue" | "green" | "yellow";
715
+ } | {
716
+ type: "plus-four" | "color-chooser";
717
+ color?: undefined;
718
+ })[]>;
719
+ deck: ({
720
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
721
+ color: "red" | "blue" | "green" | "yellow";
722
+ } | {
723
+ type: "plus-four" | "color-chooser";
724
+ color?: undefined;
725
+ })[];
726
+ seed: number;
727
+ stackedPlusTwos: number;
728
+ turnStep: 1 | -1;
729
+ ended: boolean;
730
+ pile: ({
731
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
732
+ color: "red" | "blue" | "green" | "yellow";
733
+ } | {
734
+ type: "plus-four" | "color-chooser";
735
+ color?: undefined;
736
+ })[];
737
+ last3CardPlayOrColorChanges: ("red" | "blue" | "green" | "yellow" | {
738
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
739
+ color: "red" | "blue" | "green" | "yellow";
740
+ } | {
741
+ type: "plus-four" | "color-chooser";
742
+ color?: undefined;
743
+ })[];
744
+ }>;
745
+ shorthandMode: z.ZodLiteral<false>;
746
+ }, "strip", z.ZodTypeAny, {
747
+ shorthandMode: false;
748
+ events: ({
749
+ type: "card_played";
750
+ by: string;
751
+ card: {
752
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
753
+ color: "red" | "blue" | "green" | "yellow";
754
+ } | {
755
+ type: "plus-four" | "color-chooser";
756
+ color?: undefined;
757
+ };
758
+ } | {
759
+ type: "bluff_called";
760
+ by: string;
761
+ } | {
762
+ type: "draw";
763
+ by: string;
764
+ } | {
765
+ type: "pass";
766
+ by: string;
767
+ } | {
768
+ type: "choose-color";
769
+ color: "red" | "blue" | "green" | "yellow";
770
+ by: string;
771
+ } | {
772
+ type: "game_info";
773
+ info: {
774
+ type: "bluff_called";
775
+ by: string;
776
+ } | {
777
+ type: "bluff_call_succeeded";
778
+ by: string;
779
+ of: string;
780
+ } | {
781
+ type: "bluff_call_failed";
782
+ by: string;
783
+ of: string;
784
+ } | {
785
+ type: "seed_changed";
786
+ newSeed: number;
787
+ } | {
788
+ type: "player_won";
789
+ id: string;
790
+ } | {
791
+ type: "game_ended";
792
+ loser: string;
793
+ } | {
794
+ type: "player_joined";
795
+ id: string;
796
+ } | {
797
+ type: "player_left";
798
+ id: string;
799
+ } | {
800
+ type: "pile_to_deck";
801
+ };
802
+ })[];
803
+ index: number;
804
+ initialSeed: number;
805
+ players: string[];
806
+ stackPlusTwos: boolean;
807
+ cache: {
808
+ hands: Record<string, ({
809
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
810
+ color: "red" | "blue" | "green" | "yellow";
811
+ } | {
812
+ type: "plus-four" | "color-chooser";
813
+ color?: undefined;
814
+ })[]>;
815
+ deck: ({
816
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
817
+ color: "red" | "blue" | "green" | "yellow";
818
+ } | {
819
+ type: "plus-four" | "color-chooser";
820
+ color?: undefined;
821
+ })[];
822
+ seed: number;
823
+ stackedPlusTwos: number;
824
+ turnStep: 1 | -1;
825
+ ended: boolean;
826
+ pile: ({
827
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
828
+ color: "red" | "blue" | "green" | "yellow";
829
+ } | {
830
+ type: "plus-four" | "color-chooser";
831
+ color?: undefined;
832
+ })[];
833
+ last3CardPlayOrColorChanges: ("red" | "blue" | "green" | "yellow" | {
834
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
835
+ color: "red" | "blue" | "green" | "yellow";
836
+ } | {
837
+ type: "plus-four" | "color-chooser";
838
+ color?: undefined;
839
+ })[];
840
+ };
841
+ }, {
842
+ shorthandMode: false;
843
+ events: ({
844
+ type: "card_played";
845
+ by: string;
846
+ card: {
847
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
848
+ color: "red" | "blue" | "green" | "yellow";
849
+ } | {
850
+ type: "plus-four" | "color-chooser";
851
+ color?: undefined;
852
+ };
853
+ } | {
854
+ type: "bluff_called";
855
+ by: string;
856
+ } | {
857
+ type: "draw";
858
+ by: string;
859
+ } | {
860
+ type: "pass";
861
+ by: string;
862
+ } | {
863
+ type: "choose-color";
864
+ color: "red" | "blue" | "green" | "yellow";
865
+ by: string;
866
+ } | {
867
+ type: "game_info";
868
+ info: {
869
+ type: "bluff_called";
870
+ by: string;
871
+ } | {
872
+ type: "bluff_call_succeeded";
873
+ by: string;
874
+ of: string;
875
+ } | {
876
+ type: "bluff_call_failed";
877
+ by: string;
878
+ of: string;
879
+ } | {
880
+ type: "seed_changed";
881
+ newSeed: number;
882
+ } | {
883
+ type: "player_won";
884
+ id: string;
885
+ } | {
886
+ type: "game_ended";
887
+ loser: string;
888
+ } | {
889
+ type: "player_joined";
890
+ id: string;
891
+ } | {
892
+ type: "player_left";
893
+ id: string;
894
+ } | {
895
+ type: "pile_to_deck";
896
+ };
897
+ })[];
898
+ index: number;
899
+ initialSeed: number;
900
+ players: string[];
901
+ stackPlusTwos: boolean;
902
+ cache: {
903
+ hands: Record<string, ({
904
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
905
+ color: "red" | "blue" | "green" | "yellow";
906
+ } | {
907
+ type: "plus-four" | "color-chooser";
908
+ color?: undefined;
909
+ })[]>;
910
+ deck: ({
911
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
912
+ color: "red" | "blue" | "green" | "yellow";
913
+ } | {
914
+ type: "plus-four" | "color-chooser";
915
+ color?: undefined;
916
+ })[];
917
+ seed: number;
918
+ stackedPlusTwos: number;
919
+ turnStep: 1 | -1;
920
+ ended: boolean;
921
+ pile: ({
922
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
923
+ color: "red" | "blue" | "green" | "yellow";
924
+ } | {
925
+ type: "plus-four" | "color-chooser";
926
+ color?: undefined;
927
+ })[];
928
+ last3CardPlayOrColorChanges: ("red" | "blue" | "green" | "yellow" | {
929
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
930
+ color: "red" | "blue" | "green" | "yellow";
931
+ } | {
932
+ type: "plus-four" | "color-chooser";
933
+ color?: undefined;
934
+ })[];
935
+ };
936
+ }>;
937
+ export type FullGameState = z.infer<typeof fullGameState>;
938
+ export declare const shorthandGameState: z.ZodObject<{
939
+ events: z.ZodArray<z.ZodUnion<[z.ZodObject<{
940
+ type: z.ZodLiteral<"card_played">;
941
+ by: z.ZodString;
942
+ card: z.ZodUnion<[z.ZodObject<{
943
+ type: z.ZodUnion<[z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>, z.ZodEnum<["plus-two", "reverse", "skip"]>]>;
944
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
945
+ }, "strip", z.ZodTypeAny, {
946
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
947
+ color: "red" | "blue" | "green" | "yellow";
948
+ }, {
949
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
950
+ color: "red" | "blue" | "green" | "yellow";
951
+ }>, z.ZodObject<{
952
+ type: z.ZodEnum<["plus-four", "color-chooser"]>;
953
+ color: z.ZodUndefined;
954
+ }, "strip", z.ZodTypeAny, {
955
+ type: "plus-four" | "color-chooser";
956
+ color?: undefined;
957
+ }, {
958
+ type: "plus-four" | "color-chooser";
959
+ color?: undefined;
960
+ }>]>;
961
+ }, "strip", z.ZodTypeAny, {
962
+ type: "card_played";
963
+ by: string;
964
+ card: {
965
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
966
+ color: "red" | "blue" | "green" | "yellow";
967
+ } | {
968
+ type: "plus-four" | "color-chooser";
969
+ color?: undefined;
970
+ };
971
+ }, {
972
+ type: "card_played";
973
+ by: string;
974
+ card: {
975
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
976
+ color: "red" | "blue" | "green" | "yellow";
977
+ } | {
978
+ type: "plus-four" | "color-chooser";
979
+ color?: undefined;
980
+ };
981
+ }>, z.ZodObject<{
982
+ type: z.ZodLiteral<"bluff_called">;
983
+ by: z.ZodString;
984
+ }, "strip", z.ZodTypeAny, {
985
+ type: "bluff_called";
986
+ by: string;
987
+ }, {
988
+ type: "bluff_called";
989
+ by: string;
990
+ }>, z.ZodObject<{
991
+ type: z.ZodLiteral<"choose-color">;
992
+ by: z.ZodString;
993
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
994
+ }, "strip", z.ZodTypeAny, {
995
+ type: "choose-color";
996
+ color: "red" | "blue" | "green" | "yellow";
997
+ by: string;
998
+ }, {
999
+ type: "choose-color";
1000
+ color: "red" | "blue" | "green" | "yellow";
1001
+ by: string;
1002
+ }>, z.ZodObject<{
1003
+ type: z.ZodLiteral<"draw">;
1004
+ by: z.ZodString;
1005
+ }, "strip", z.ZodTypeAny, {
1006
+ type: "draw";
1007
+ by: string;
1008
+ }, {
1009
+ type: "draw";
1010
+ by: string;
1011
+ }>, z.ZodObject<{
1012
+ type: z.ZodLiteral<"pass">;
1013
+ by: z.ZodString;
1014
+ }, "strip", z.ZodTypeAny, {
1015
+ type: "pass";
1016
+ by: string;
1017
+ }, {
1018
+ type: "pass";
1019
+ by: string;
1020
+ }>]>, "many">;
1021
+ index: z.ZodNumber;
1022
+ initialSeed: z.ZodNumber;
1023
+ players: z.ZodArray<z.ZodString, "many">;
1024
+ stackPlusTwos: z.ZodBoolean;
1025
+ cache: z.ZodObject<{
1026
+ hands: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
1027
+ type: z.ZodUnion<[z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>, z.ZodEnum<["plus-two", "reverse", "skip"]>]>;
1028
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
1029
+ }, "strip", z.ZodTypeAny, {
1030
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1031
+ color: "red" | "blue" | "green" | "yellow";
1032
+ }, {
1033
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1034
+ color: "red" | "blue" | "green" | "yellow";
1035
+ }>, z.ZodObject<{
1036
+ type: z.ZodEnum<["plus-four", "color-chooser"]>;
1037
+ color: z.ZodUndefined;
1038
+ }, "strip", z.ZodTypeAny, {
1039
+ type: "plus-four" | "color-chooser";
1040
+ color?: undefined;
1041
+ }, {
1042
+ type: "plus-four" | "color-chooser";
1043
+ color?: undefined;
1044
+ }>]>, "many">>;
1045
+ deck: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1046
+ type: z.ZodUnion<[z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>, z.ZodEnum<["plus-two", "reverse", "skip"]>]>;
1047
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
1048
+ }, "strip", z.ZodTypeAny, {
1049
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1050
+ color: "red" | "blue" | "green" | "yellow";
1051
+ }, {
1052
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1053
+ color: "red" | "blue" | "green" | "yellow";
1054
+ }>, z.ZodObject<{
1055
+ type: z.ZodEnum<["plus-four", "color-chooser"]>;
1056
+ color: z.ZodUndefined;
1057
+ }, "strip", z.ZodTypeAny, {
1058
+ type: "plus-four" | "color-chooser";
1059
+ color?: undefined;
1060
+ }, {
1061
+ type: "plus-four" | "color-chooser";
1062
+ color?: undefined;
1063
+ }>]>, "many">;
1064
+ seed: z.ZodNumber;
1065
+ stackedPlusTwos: z.ZodNumber;
1066
+ turnStep: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<-1>]>;
1067
+ ended: z.ZodBoolean;
1068
+ pile: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1069
+ type: z.ZodUnion<[z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>, z.ZodEnum<["plus-two", "reverse", "skip"]>]>;
1070
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
1071
+ }, "strip", z.ZodTypeAny, {
1072
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1073
+ color: "red" | "blue" | "green" | "yellow";
1074
+ }, {
1075
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1076
+ color: "red" | "blue" | "green" | "yellow";
1077
+ }>, z.ZodObject<{
1078
+ type: z.ZodEnum<["plus-four", "color-chooser"]>;
1079
+ color: z.ZodUndefined;
1080
+ }, "strip", z.ZodTypeAny, {
1081
+ type: "plus-four" | "color-chooser";
1082
+ color?: undefined;
1083
+ }, {
1084
+ type: "plus-four" | "color-chooser";
1085
+ color?: undefined;
1086
+ }>]>, "many">;
1087
+ last3CardPlayOrColorChanges: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
1088
+ type: z.ZodUnion<[z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>, z.ZodEnum<["plus-two", "reverse", "skip"]>]>;
1089
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
1090
+ }, "strip", z.ZodTypeAny, {
1091
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1092
+ color: "red" | "blue" | "green" | "yellow";
1093
+ }, {
1094
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1095
+ color: "red" | "blue" | "green" | "yellow";
1096
+ }>, z.ZodObject<{
1097
+ type: z.ZodEnum<["plus-four", "color-chooser"]>;
1098
+ color: z.ZodUndefined;
1099
+ }, "strip", z.ZodTypeAny, {
1100
+ type: "plus-four" | "color-chooser";
1101
+ color?: undefined;
1102
+ }, {
1103
+ type: "plus-four" | "color-chooser";
1104
+ color?: undefined;
1105
+ }>]>, z.ZodEnum<["red", "blue", "green", "yellow"]>]>, "many">;
1106
+ }, "strip", z.ZodTypeAny, {
1107
+ hands: Record<string, ({
1108
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1109
+ color: "red" | "blue" | "green" | "yellow";
1110
+ } | {
1111
+ type: "plus-four" | "color-chooser";
1112
+ color?: undefined;
1113
+ })[]>;
1114
+ deck: ({
1115
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1116
+ color: "red" | "blue" | "green" | "yellow";
1117
+ } | {
1118
+ type: "plus-four" | "color-chooser";
1119
+ color?: undefined;
1120
+ })[];
1121
+ seed: number;
1122
+ stackedPlusTwos: number;
1123
+ turnStep: 1 | -1;
1124
+ ended: boolean;
1125
+ pile: ({
1126
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1127
+ color: "red" | "blue" | "green" | "yellow";
1128
+ } | {
1129
+ type: "plus-four" | "color-chooser";
1130
+ color?: undefined;
1131
+ })[];
1132
+ last3CardPlayOrColorChanges: ("red" | "blue" | "green" | "yellow" | {
1133
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1134
+ color: "red" | "blue" | "green" | "yellow";
1135
+ } | {
1136
+ type: "plus-four" | "color-chooser";
1137
+ color?: undefined;
1138
+ })[];
1139
+ }, {
1140
+ hands: Record<string, ({
1141
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1142
+ color: "red" | "blue" | "green" | "yellow";
1143
+ } | {
1144
+ type: "plus-four" | "color-chooser";
1145
+ color?: undefined;
1146
+ })[]>;
1147
+ deck: ({
1148
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1149
+ color: "red" | "blue" | "green" | "yellow";
1150
+ } | {
1151
+ type: "plus-four" | "color-chooser";
1152
+ color?: undefined;
1153
+ })[];
1154
+ seed: number;
1155
+ stackedPlusTwos: number;
1156
+ turnStep: 1 | -1;
1157
+ ended: boolean;
1158
+ pile: ({
1159
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1160
+ color: "red" | "blue" | "green" | "yellow";
1161
+ } | {
1162
+ type: "plus-four" | "color-chooser";
1163
+ color?: undefined;
1164
+ })[];
1165
+ last3CardPlayOrColorChanges: ("red" | "blue" | "green" | "yellow" | {
1166
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1167
+ color: "red" | "blue" | "green" | "yellow";
1168
+ } | {
1169
+ type: "plus-four" | "color-chooser";
1170
+ color?: undefined;
1171
+ })[];
1172
+ }>;
1173
+ shorthandMode: z.ZodLiteral<true>;
1174
+ }, "strip", z.ZodTypeAny, {
1175
+ shorthandMode: true;
1176
+ events: ({
1177
+ type: "card_played";
1178
+ by: string;
1179
+ card: {
1180
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1181
+ color: "red" | "blue" | "green" | "yellow";
1182
+ } | {
1183
+ type: "plus-four" | "color-chooser";
1184
+ color?: undefined;
1185
+ };
1186
+ } | {
1187
+ type: "bluff_called";
1188
+ by: string;
1189
+ } | {
1190
+ type: "draw";
1191
+ by: string;
1192
+ } | {
1193
+ type: "pass";
1194
+ by: string;
1195
+ } | {
1196
+ type: "choose-color";
1197
+ color: "red" | "blue" | "green" | "yellow";
1198
+ by: string;
1199
+ })[];
1200
+ index: number;
1201
+ initialSeed: number;
1202
+ players: string[];
1203
+ stackPlusTwos: boolean;
1204
+ cache: {
1205
+ hands: Record<string, ({
1206
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1207
+ color: "red" | "blue" | "green" | "yellow";
1208
+ } | {
1209
+ type: "plus-four" | "color-chooser";
1210
+ color?: undefined;
1211
+ })[]>;
1212
+ deck: ({
1213
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1214
+ color: "red" | "blue" | "green" | "yellow";
1215
+ } | {
1216
+ type: "plus-four" | "color-chooser";
1217
+ color?: undefined;
1218
+ })[];
1219
+ seed: number;
1220
+ stackedPlusTwos: number;
1221
+ turnStep: 1 | -1;
1222
+ ended: boolean;
1223
+ pile: ({
1224
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1225
+ color: "red" | "blue" | "green" | "yellow";
1226
+ } | {
1227
+ type: "plus-four" | "color-chooser";
1228
+ color?: undefined;
1229
+ })[];
1230
+ last3CardPlayOrColorChanges: ("red" | "blue" | "green" | "yellow" | {
1231
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1232
+ color: "red" | "blue" | "green" | "yellow";
1233
+ } | {
1234
+ type: "plus-four" | "color-chooser";
1235
+ color?: undefined;
1236
+ })[];
1237
+ };
1238
+ }, {
1239
+ shorthandMode: true;
1240
+ events: ({
1241
+ type: "card_played";
1242
+ by: string;
1243
+ card: {
1244
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1245
+ color: "red" | "blue" | "green" | "yellow";
1246
+ } | {
1247
+ type: "plus-four" | "color-chooser";
1248
+ color?: undefined;
1249
+ };
1250
+ } | {
1251
+ type: "bluff_called";
1252
+ by: string;
1253
+ } | {
1254
+ type: "draw";
1255
+ by: string;
1256
+ } | {
1257
+ type: "pass";
1258
+ by: string;
1259
+ } | {
1260
+ type: "choose-color";
1261
+ color: "red" | "blue" | "green" | "yellow";
1262
+ by: string;
1263
+ })[];
1264
+ index: number;
1265
+ initialSeed: number;
1266
+ players: string[];
1267
+ stackPlusTwos: boolean;
1268
+ cache: {
1269
+ hands: Record<string, ({
1270
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1271
+ color: "red" | "blue" | "green" | "yellow";
1272
+ } | {
1273
+ type: "plus-four" | "color-chooser";
1274
+ color?: undefined;
1275
+ })[]>;
1276
+ deck: ({
1277
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1278
+ color: "red" | "blue" | "green" | "yellow";
1279
+ } | {
1280
+ type: "plus-four" | "color-chooser";
1281
+ color?: undefined;
1282
+ })[];
1283
+ seed: number;
1284
+ stackedPlusTwos: number;
1285
+ turnStep: 1 | -1;
1286
+ ended: boolean;
1287
+ pile: ({
1288
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1289
+ color: "red" | "blue" | "green" | "yellow";
1290
+ } | {
1291
+ type: "plus-four" | "color-chooser";
1292
+ color?: undefined;
1293
+ })[];
1294
+ last3CardPlayOrColorChanges: ("red" | "blue" | "green" | "yellow" | {
1295
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1296
+ color: "red" | "blue" | "green" | "yellow";
1297
+ } | {
1298
+ type: "plus-four" | "color-chooser";
1299
+ color?: undefined;
1300
+ })[];
1301
+ };
1302
+ }>;
1303
+ export type ShorthandGameState = z.infer<typeof shorthandGameState>;
1304
+ export declare const gameState: z.ZodUnion<[z.ZodObject<{
1305
+ events: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
1306
+ type: z.ZodLiteral<"card_played">;
1307
+ by: z.ZodString;
1308
+ card: z.ZodUnion<[z.ZodObject<{
1309
+ type: z.ZodUnion<[z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>, z.ZodEnum<["plus-two", "reverse", "skip"]>]>;
1310
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
1311
+ }, "strip", z.ZodTypeAny, {
1312
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1313
+ color: "red" | "blue" | "green" | "yellow";
1314
+ }, {
1315
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1316
+ color: "red" | "blue" | "green" | "yellow";
1317
+ }>, z.ZodObject<{
1318
+ type: z.ZodEnum<["plus-four", "color-chooser"]>;
1319
+ color: z.ZodUndefined;
1320
+ }, "strip", z.ZodTypeAny, {
1321
+ type: "plus-four" | "color-chooser";
1322
+ color?: undefined;
1323
+ }, {
1324
+ type: "plus-four" | "color-chooser";
1325
+ color?: undefined;
1326
+ }>]>;
1327
+ }, "strip", z.ZodTypeAny, {
1328
+ type: "card_played";
1329
+ by: string;
1330
+ card: {
1331
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1332
+ color: "red" | "blue" | "green" | "yellow";
1333
+ } | {
1334
+ type: "plus-four" | "color-chooser";
1335
+ color?: undefined;
1336
+ };
1337
+ }, {
1338
+ type: "card_played";
1339
+ by: string;
1340
+ card: {
1341
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1342
+ color: "red" | "blue" | "green" | "yellow";
1343
+ } | {
1344
+ type: "plus-four" | "color-chooser";
1345
+ color?: undefined;
1346
+ };
1347
+ }>, z.ZodObject<{
1348
+ type: z.ZodLiteral<"bluff_called">;
1349
+ by: z.ZodString;
1350
+ }, "strip", z.ZodTypeAny, {
1351
+ type: "bluff_called";
1352
+ by: string;
1353
+ }, {
1354
+ type: "bluff_called";
1355
+ by: string;
1356
+ }>, z.ZodObject<{
1357
+ type: z.ZodLiteral<"choose-color">;
1358
+ by: z.ZodString;
1359
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
1360
+ }, "strip", z.ZodTypeAny, {
1361
+ type: "choose-color";
1362
+ color: "red" | "blue" | "green" | "yellow";
1363
+ by: string;
1364
+ }, {
1365
+ type: "choose-color";
1366
+ color: "red" | "blue" | "green" | "yellow";
1367
+ by: string;
1368
+ }>, z.ZodObject<{
1369
+ type: z.ZodLiteral<"draw">;
1370
+ by: z.ZodString;
1371
+ }, "strip", z.ZodTypeAny, {
1372
+ type: "draw";
1373
+ by: string;
1374
+ }, {
1375
+ type: "draw";
1376
+ by: string;
1377
+ }>, z.ZodObject<{
1378
+ type: z.ZodLiteral<"pass">;
1379
+ by: z.ZodString;
1380
+ }, "strip", z.ZodTypeAny, {
1381
+ type: "pass";
1382
+ by: string;
1383
+ }, {
1384
+ type: "pass";
1385
+ by: string;
1386
+ }>]>, z.ZodObject<{
1387
+ type: z.ZodLiteral<"game_info">;
1388
+ info: z.ZodUnion<[z.ZodObject<{
1389
+ type: z.ZodLiteral<"bluff_called">;
1390
+ by: z.ZodString;
1391
+ }, "strip", z.ZodTypeAny, {
1392
+ type: "bluff_called";
1393
+ by: string;
1394
+ }, {
1395
+ type: "bluff_called";
1396
+ by: string;
1397
+ }>, z.ZodObject<{
1398
+ type: z.ZodLiteral<"bluff_call_succeeded">;
1399
+ by: z.ZodString;
1400
+ of: z.ZodString;
1401
+ }, "strip", z.ZodTypeAny, {
1402
+ type: "bluff_call_succeeded";
1403
+ by: string;
1404
+ of: string;
1405
+ }, {
1406
+ type: "bluff_call_succeeded";
1407
+ by: string;
1408
+ of: string;
1409
+ }>, z.ZodObject<{
1410
+ type: z.ZodLiteral<"bluff_call_failed">;
1411
+ by: z.ZodString;
1412
+ of: z.ZodString;
1413
+ }, "strip", z.ZodTypeAny, {
1414
+ type: "bluff_call_failed";
1415
+ by: string;
1416
+ of: string;
1417
+ }, {
1418
+ type: "bluff_call_failed";
1419
+ by: string;
1420
+ of: string;
1421
+ }>, z.ZodObject<{
1422
+ type: z.ZodLiteral<"seed_changed">;
1423
+ newSeed: z.ZodNumber;
1424
+ }, "strip", z.ZodTypeAny, {
1425
+ type: "seed_changed";
1426
+ newSeed: number;
1427
+ }, {
1428
+ type: "seed_changed";
1429
+ newSeed: number;
1430
+ }>, z.ZodObject<{
1431
+ type: z.ZodLiteral<"player_won">;
1432
+ id: z.ZodString;
1433
+ }, "strip", z.ZodTypeAny, {
1434
+ type: "player_won";
1435
+ id: string;
1436
+ }, {
1437
+ type: "player_won";
1438
+ id: string;
1439
+ }>, z.ZodObject<{
1440
+ type: z.ZodLiteral<"game_ended">;
1441
+ loser: z.ZodString;
1442
+ }, "strip", z.ZodTypeAny, {
1443
+ type: "game_ended";
1444
+ loser: string;
1445
+ }, {
1446
+ type: "game_ended";
1447
+ loser: string;
1448
+ }>, z.ZodObject<{
1449
+ type: z.ZodLiteral<"player_joined">;
1450
+ id: z.ZodString;
1451
+ }, "strip", z.ZodTypeAny, {
1452
+ type: "player_joined";
1453
+ id: string;
1454
+ }, {
1455
+ type: "player_joined";
1456
+ id: string;
1457
+ }>, z.ZodObject<{
1458
+ type: z.ZodLiteral<"player_left">;
1459
+ id: z.ZodString;
1460
+ }, "strip", z.ZodTypeAny, {
1461
+ type: "player_left";
1462
+ id: string;
1463
+ }, {
1464
+ type: "player_left";
1465
+ id: string;
1466
+ }>, z.ZodObject<{
1467
+ type: z.ZodLiteral<"pile_to_deck">;
1468
+ }, "strip", z.ZodTypeAny, {
1469
+ type: "pile_to_deck";
1470
+ }, {
1471
+ type: "pile_to_deck";
1472
+ }>]>;
1473
+ }, "strip", z.ZodTypeAny, {
1474
+ type: "game_info";
1475
+ info: {
1476
+ type: "bluff_called";
1477
+ by: string;
1478
+ } | {
1479
+ type: "bluff_call_succeeded";
1480
+ by: string;
1481
+ of: string;
1482
+ } | {
1483
+ type: "bluff_call_failed";
1484
+ by: string;
1485
+ of: string;
1486
+ } | {
1487
+ type: "seed_changed";
1488
+ newSeed: number;
1489
+ } | {
1490
+ type: "player_won";
1491
+ id: string;
1492
+ } | {
1493
+ type: "game_ended";
1494
+ loser: string;
1495
+ } | {
1496
+ type: "player_joined";
1497
+ id: string;
1498
+ } | {
1499
+ type: "player_left";
1500
+ id: string;
1501
+ } | {
1502
+ type: "pile_to_deck";
1503
+ };
1504
+ }, {
1505
+ type: "game_info";
1506
+ info: {
1507
+ type: "bluff_called";
1508
+ by: string;
1509
+ } | {
1510
+ type: "bluff_call_succeeded";
1511
+ by: string;
1512
+ of: string;
1513
+ } | {
1514
+ type: "bluff_call_failed";
1515
+ by: string;
1516
+ of: string;
1517
+ } | {
1518
+ type: "seed_changed";
1519
+ newSeed: number;
1520
+ } | {
1521
+ type: "player_won";
1522
+ id: string;
1523
+ } | {
1524
+ type: "game_ended";
1525
+ loser: string;
1526
+ } | {
1527
+ type: "player_joined";
1528
+ id: string;
1529
+ } | {
1530
+ type: "player_left";
1531
+ id: string;
1532
+ } | {
1533
+ type: "pile_to_deck";
1534
+ };
1535
+ }>]>, "many">;
1536
+ index: z.ZodNumber;
1537
+ initialSeed: z.ZodNumber;
1538
+ players: z.ZodArray<z.ZodString, "many">;
1539
+ stackPlusTwos: z.ZodBoolean;
1540
+ cache: z.ZodObject<{
1541
+ hands: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
1542
+ type: z.ZodUnion<[z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>, z.ZodEnum<["plus-two", "reverse", "skip"]>]>;
1543
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
1544
+ }, "strip", z.ZodTypeAny, {
1545
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1546
+ color: "red" | "blue" | "green" | "yellow";
1547
+ }, {
1548
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1549
+ color: "red" | "blue" | "green" | "yellow";
1550
+ }>, z.ZodObject<{
1551
+ type: z.ZodEnum<["plus-four", "color-chooser"]>;
1552
+ color: z.ZodUndefined;
1553
+ }, "strip", z.ZodTypeAny, {
1554
+ type: "plus-four" | "color-chooser";
1555
+ color?: undefined;
1556
+ }, {
1557
+ type: "plus-four" | "color-chooser";
1558
+ color?: undefined;
1559
+ }>]>, "many">>;
1560
+ deck: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1561
+ type: z.ZodUnion<[z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>, z.ZodEnum<["plus-two", "reverse", "skip"]>]>;
1562
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
1563
+ }, "strip", z.ZodTypeAny, {
1564
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1565
+ color: "red" | "blue" | "green" | "yellow";
1566
+ }, {
1567
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1568
+ color: "red" | "blue" | "green" | "yellow";
1569
+ }>, z.ZodObject<{
1570
+ type: z.ZodEnum<["plus-four", "color-chooser"]>;
1571
+ color: z.ZodUndefined;
1572
+ }, "strip", z.ZodTypeAny, {
1573
+ type: "plus-four" | "color-chooser";
1574
+ color?: undefined;
1575
+ }, {
1576
+ type: "plus-four" | "color-chooser";
1577
+ color?: undefined;
1578
+ }>]>, "many">;
1579
+ seed: z.ZodNumber;
1580
+ stackedPlusTwos: z.ZodNumber;
1581
+ turnStep: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<-1>]>;
1582
+ ended: z.ZodBoolean;
1583
+ pile: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1584
+ type: z.ZodUnion<[z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>, z.ZodEnum<["plus-two", "reverse", "skip"]>]>;
1585
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
1586
+ }, "strip", z.ZodTypeAny, {
1587
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1588
+ color: "red" | "blue" | "green" | "yellow";
1589
+ }, {
1590
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1591
+ color: "red" | "blue" | "green" | "yellow";
1592
+ }>, z.ZodObject<{
1593
+ type: z.ZodEnum<["plus-four", "color-chooser"]>;
1594
+ color: z.ZodUndefined;
1595
+ }, "strip", z.ZodTypeAny, {
1596
+ type: "plus-four" | "color-chooser";
1597
+ color?: undefined;
1598
+ }, {
1599
+ type: "plus-four" | "color-chooser";
1600
+ color?: undefined;
1601
+ }>]>, "many">;
1602
+ last3CardPlayOrColorChanges: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
1603
+ type: z.ZodUnion<[z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>, z.ZodEnum<["plus-two", "reverse", "skip"]>]>;
1604
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
1605
+ }, "strip", z.ZodTypeAny, {
1606
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1607
+ color: "red" | "blue" | "green" | "yellow";
1608
+ }, {
1609
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1610
+ color: "red" | "blue" | "green" | "yellow";
1611
+ }>, z.ZodObject<{
1612
+ type: z.ZodEnum<["plus-four", "color-chooser"]>;
1613
+ color: z.ZodUndefined;
1614
+ }, "strip", z.ZodTypeAny, {
1615
+ type: "plus-four" | "color-chooser";
1616
+ color?: undefined;
1617
+ }, {
1618
+ type: "plus-four" | "color-chooser";
1619
+ color?: undefined;
1620
+ }>]>, z.ZodEnum<["red", "blue", "green", "yellow"]>]>, "many">;
1621
+ }, "strip", z.ZodTypeAny, {
1622
+ hands: Record<string, ({
1623
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1624
+ color: "red" | "blue" | "green" | "yellow";
1625
+ } | {
1626
+ type: "plus-four" | "color-chooser";
1627
+ color?: undefined;
1628
+ })[]>;
1629
+ deck: ({
1630
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1631
+ color: "red" | "blue" | "green" | "yellow";
1632
+ } | {
1633
+ type: "plus-four" | "color-chooser";
1634
+ color?: undefined;
1635
+ })[];
1636
+ seed: number;
1637
+ stackedPlusTwos: number;
1638
+ turnStep: 1 | -1;
1639
+ ended: boolean;
1640
+ pile: ({
1641
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1642
+ color: "red" | "blue" | "green" | "yellow";
1643
+ } | {
1644
+ type: "plus-four" | "color-chooser";
1645
+ color?: undefined;
1646
+ })[];
1647
+ last3CardPlayOrColorChanges: ("red" | "blue" | "green" | "yellow" | {
1648
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1649
+ color: "red" | "blue" | "green" | "yellow";
1650
+ } | {
1651
+ type: "plus-four" | "color-chooser";
1652
+ color?: undefined;
1653
+ })[];
1654
+ }, {
1655
+ hands: Record<string, ({
1656
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1657
+ color: "red" | "blue" | "green" | "yellow";
1658
+ } | {
1659
+ type: "plus-four" | "color-chooser";
1660
+ color?: undefined;
1661
+ })[]>;
1662
+ deck: ({
1663
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1664
+ color: "red" | "blue" | "green" | "yellow";
1665
+ } | {
1666
+ type: "plus-four" | "color-chooser";
1667
+ color?: undefined;
1668
+ })[];
1669
+ seed: number;
1670
+ stackedPlusTwos: number;
1671
+ turnStep: 1 | -1;
1672
+ ended: boolean;
1673
+ pile: ({
1674
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1675
+ color: "red" | "blue" | "green" | "yellow";
1676
+ } | {
1677
+ type: "plus-four" | "color-chooser";
1678
+ color?: undefined;
1679
+ })[];
1680
+ last3CardPlayOrColorChanges: ("red" | "blue" | "green" | "yellow" | {
1681
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1682
+ color: "red" | "blue" | "green" | "yellow";
1683
+ } | {
1684
+ type: "plus-four" | "color-chooser";
1685
+ color?: undefined;
1686
+ })[];
1687
+ }>;
1688
+ shorthandMode: z.ZodLiteral<false>;
1689
+ }, "strip", z.ZodTypeAny, {
1690
+ shorthandMode: false;
1691
+ events: ({
1692
+ type: "card_played";
1693
+ by: string;
1694
+ card: {
1695
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1696
+ color: "red" | "blue" | "green" | "yellow";
1697
+ } | {
1698
+ type: "plus-four" | "color-chooser";
1699
+ color?: undefined;
1700
+ };
1701
+ } | {
1702
+ type: "bluff_called";
1703
+ by: string;
1704
+ } | {
1705
+ type: "draw";
1706
+ by: string;
1707
+ } | {
1708
+ type: "pass";
1709
+ by: string;
1710
+ } | {
1711
+ type: "choose-color";
1712
+ color: "red" | "blue" | "green" | "yellow";
1713
+ by: string;
1714
+ } | {
1715
+ type: "game_info";
1716
+ info: {
1717
+ type: "bluff_called";
1718
+ by: string;
1719
+ } | {
1720
+ type: "bluff_call_succeeded";
1721
+ by: string;
1722
+ of: string;
1723
+ } | {
1724
+ type: "bluff_call_failed";
1725
+ by: string;
1726
+ of: string;
1727
+ } | {
1728
+ type: "seed_changed";
1729
+ newSeed: number;
1730
+ } | {
1731
+ type: "player_won";
1732
+ id: string;
1733
+ } | {
1734
+ type: "game_ended";
1735
+ loser: string;
1736
+ } | {
1737
+ type: "player_joined";
1738
+ id: string;
1739
+ } | {
1740
+ type: "player_left";
1741
+ id: string;
1742
+ } | {
1743
+ type: "pile_to_deck";
1744
+ };
1745
+ })[];
1746
+ index: number;
1747
+ initialSeed: number;
1748
+ players: string[];
1749
+ stackPlusTwos: boolean;
1750
+ cache: {
1751
+ hands: Record<string, ({
1752
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1753
+ color: "red" | "blue" | "green" | "yellow";
1754
+ } | {
1755
+ type: "plus-four" | "color-chooser";
1756
+ color?: undefined;
1757
+ })[]>;
1758
+ deck: ({
1759
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1760
+ color: "red" | "blue" | "green" | "yellow";
1761
+ } | {
1762
+ type: "plus-four" | "color-chooser";
1763
+ color?: undefined;
1764
+ })[];
1765
+ seed: number;
1766
+ stackedPlusTwos: number;
1767
+ turnStep: 1 | -1;
1768
+ ended: boolean;
1769
+ pile: ({
1770
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1771
+ color: "red" | "blue" | "green" | "yellow";
1772
+ } | {
1773
+ type: "plus-four" | "color-chooser";
1774
+ color?: undefined;
1775
+ })[];
1776
+ last3CardPlayOrColorChanges: ("red" | "blue" | "green" | "yellow" | {
1777
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1778
+ color: "red" | "blue" | "green" | "yellow";
1779
+ } | {
1780
+ type: "plus-four" | "color-chooser";
1781
+ color?: undefined;
1782
+ })[];
1783
+ };
1784
+ }, {
1785
+ shorthandMode: false;
1786
+ events: ({
1787
+ type: "card_played";
1788
+ by: string;
1789
+ card: {
1790
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1791
+ color: "red" | "blue" | "green" | "yellow";
1792
+ } | {
1793
+ type: "plus-four" | "color-chooser";
1794
+ color?: undefined;
1795
+ };
1796
+ } | {
1797
+ type: "bluff_called";
1798
+ by: string;
1799
+ } | {
1800
+ type: "draw";
1801
+ by: string;
1802
+ } | {
1803
+ type: "pass";
1804
+ by: string;
1805
+ } | {
1806
+ type: "choose-color";
1807
+ color: "red" | "blue" | "green" | "yellow";
1808
+ by: string;
1809
+ } | {
1810
+ type: "game_info";
1811
+ info: {
1812
+ type: "bluff_called";
1813
+ by: string;
1814
+ } | {
1815
+ type: "bluff_call_succeeded";
1816
+ by: string;
1817
+ of: string;
1818
+ } | {
1819
+ type: "bluff_call_failed";
1820
+ by: string;
1821
+ of: string;
1822
+ } | {
1823
+ type: "seed_changed";
1824
+ newSeed: number;
1825
+ } | {
1826
+ type: "player_won";
1827
+ id: string;
1828
+ } | {
1829
+ type: "game_ended";
1830
+ loser: string;
1831
+ } | {
1832
+ type: "player_joined";
1833
+ id: string;
1834
+ } | {
1835
+ type: "player_left";
1836
+ id: string;
1837
+ } | {
1838
+ type: "pile_to_deck";
1839
+ };
1840
+ })[];
1841
+ index: number;
1842
+ initialSeed: number;
1843
+ players: string[];
1844
+ stackPlusTwos: boolean;
1845
+ cache: {
1846
+ hands: Record<string, ({
1847
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1848
+ color: "red" | "blue" | "green" | "yellow";
1849
+ } | {
1850
+ type: "plus-four" | "color-chooser";
1851
+ color?: undefined;
1852
+ })[]>;
1853
+ deck: ({
1854
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1855
+ color: "red" | "blue" | "green" | "yellow";
1856
+ } | {
1857
+ type: "plus-four" | "color-chooser";
1858
+ color?: undefined;
1859
+ })[];
1860
+ seed: number;
1861
+ stackedPlusTwos: number;
1862
+ turnStep: 1 | -1;
1863
+ ended: boolean;
1864
+ pile: ({
1865
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1866
+ color: "red" | "blue" | "green" | "yellow";
1867
+ } | {
1868
+ type: "plus-four" | "color-chooser";
1869
+ color?: undefined;
1870
+ })[];
1871
+ last3CardPlayOrColorChanges: ("red" | "blue" | "green" | "yellow" | {
1872
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1873
+ color: "red" | "blue" | "green" | "yellow";
1874
+ } | {
1875
+ type: "plus-four" | "color-chooser";
1876
+ color?: undefined;
1877
+ })[];
1878
+ };
1879
+ }>, z.ZodObject<{
1880
+ events: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1881
+ type: z.ZodLiteral<"card_played">;
1882
+ by: z.ZodString;
1883
+ card: z.ZodUnion<[z.ZodObject<{
1884
+ type: z.ZodUnion<[z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>, z.ZodEnum<["plus-two", "reverse", "skip"]>]>;
1885
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
1886
+ }, "strip", z.ZodTypeAny, {
1887
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1888
+ color: "red" | "blue" | "green" | "yellow";
1889
+ }, {
1890
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1891
+ color: "red" | "blue" | "green" | "yellow";
1892
+ }>, z.ZodObject<{
1893
+ type: z.ZodEnum<["plus-four", "color-chooser"]>;
1894
+ color: z.ZodUndefined;
1895
+ }, "strip", z.ZodTypeAny, {
1896
+ type: "plus-four" | "color-chooser";
1897
+ color?: undefined;
1898
+ }, {
1899
+ type: "plus-four" | "color-chooser";
1900
+ color?: undefined;
1901
+ }>]>;
1902
+ }, "strip", z.ZodTypeAny, {
1903
+ type: "card_played";
1904
+ by: string;
1905
+ card: {
1906
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1907
+ color: "red" | "blue" | "green" | "yellow";
1908
+ } | {
1909
+ type: "plus-four" | "color-chooser";
1910
+ color?: undefined;
1911
+ };
1912
+ }, {
1913
+ type: "card_played";
1914
+ by: string;
1915
+ card: {
1916
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1917
+ color: "red" | "blue" | "green" | "yellow";
1918
+ } | {
1919
+ type: "plus-four" | "color-chooser";
1920
+ color?: undefined;
1921
+ };
1922
+ }>, z.ZodObject<{
1923
+ type: z.ZodLiteral<"bluff_called">;
1924
+ by: z.ZodString;
1925
+ }, "strip", z.ZodTypeAny, {
1926
+ type: "bluff_called";
1927
+ by: string;
1928
+ }, {
1929
+ type: "bluff_called";
1930
+ by: string;
1931
+ }>, z.ZodObject<{
1932
+ type: z.ZodLiteral<"choose-color">;
1933
+ by: z.ZodString;
1934
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
1935
+ }, "strip", z.ZodTypeAny, {
1936
+ type: "choose-color";
1937
+ color: "red" | "blue" | "green" | "yellow";
1938
+ by: string;
1939
+ }, {
1940
+ type: "choose-color";
1941
+ color: "red" | "blue" | "green" | "yellow";
1942
+ by: string;
1943
+ }>, z.ZodObject<{
1944
+ type: z.ZodLiteral<"draw">;
1945
+ by: z.ZodString;
1946
+ }, "strip", z.ZodTypeAny, {
1947
+ type: "draw";
1948
+ by: string;
1949
+ }, {
1950
+ type: "draw";
1951
+ by: string;
1952
+ }>, z.ZodObject<{
1953
+ type: z.ZodLiteral<"pass">;
1954
+ by: z.ZodString;
1955
+ }, "strip", z.ZodTypeAny, {
1956
+ type: "pass";
1957
+ by: string;
1958
+ }, {
1959
+ type: "pass";
1960
+ by: string;
1961
+ }>]>, "many">;
1962
+ index: z.ZodNumber;
1963
+ initialSeed: z.ZodNumber;
1964
+ players: z.ZodArray<z.ZodString, "many">;
1965
+ stackPlusTwos: z.ZodBoolean;
1966
+ cache: z.ZodObject<{
1967
+ hands: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
1968
+ type: z.ZodUnion<[z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>, z.ZodEnum<["plus-two", "reverse", "skip"]>]>;
1969
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
1970
+ }, "strip", z.ZodTypeAny, {
1971
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1972
+ color: "red" | "blue" | "green" | "yellow";
1973
+ }, {
1974
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1975
+ color: "red" | "blue" | "green" | "yellow";
1976
+ }>, z.ZodObject<{
1977
+ type: z.ZodEnum<["plus-four", "color-chooser"]>;
1978
+ color: z.ZodUndefined;
1979
+ }, "strip", z.ZodTypeAny, {
1980
+ type: "plus-four" | "color-chooser";
1981
+ color?: undefined;
1982
+ }, {
1983
+ type: "plus-four" | "color-chooser";
1984
+ color?: undefined;
1985
+ }>]>, "many">>;
1986
+ deck: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1987
+ type: z.ZodUnion<[z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>, z.ZodEnum<["plus-two", "reverse", "skip"]>]>;
1988
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
1989
+ }, "strip", z.ZodTypeAny, {
1990
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1991
+ color: "red" | "blue" | "green" | "yellow";
1992
+ }, {
1993
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
1994
+ color: "red" | "blue" | "green" | "yellow";
1995
+ }>, z.ZodObject<{
1996
+ type: z.ZodEnum<["plus-four", "color-chooser"]>;
1997
+ color: z.ZodUndefined;
1998
+ }, "strip", z.ZodTypeAny, {
1999
+ type: "plus-four" | "color-chooser";
2000
+ color?: undefined;
2001
+ }, {
2002
+ type: "plus-four" | "color-chooser";
2003
+ color?: undefined;
2004
+ }>]>, "many">;
2005
+ seed: z.ZodNumber;
2006
+ stackedPlusTwos: z.ZodNumber;
2007
+ turnStep: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<-1>]>;
2008
+ ended: z.ZodBoolean;
2009
+ pile: z.ZodArray<z.ZodUnion<[z.ZodObject<{
2010
+ type: z.ZodUnion<[z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>, z.ZodEnum<["plus-two", "reverse", "skip"]>]>;
2011
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
2012
+ }, "strip", z.ZodTypeAny, {
2013
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
2014
+ color: "red" | "blue" | "green" | "yellow";
2015
+ }, {
2016
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
2017
+ color: "red" | "blue" | "green" | "yellow";
2018
+ }>, z.ZodObject<{
2019
+ type: z.ZodEnum<["plus-four", "color-chooser"]>;
2020
+ color: z.ZodUndefined;
2021
+ }, "strip", z.ZodTypeAny, {
2022
+ type: "plus-four" | "color-chooser";
2023
+ color?: undefined;
2024
+ }, {
2025
+ type: "plus-four" | "color-chooser";
2026
+ color?: undefined;
2027
+ }>]>, "many">;
2028
+ last3CardPlayOrColorChanges: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2029
+ type: z.ZodUnion<[z.ZodEnum<["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]>, z.ZodEnum<["plus-two", "reverse", "skip"]>]>;
2030
+ color: z.ZodEnum<["red", "blue", "green", "yellow"]>;
2031
+ }, "strip", z.ZodTypeAny, {
2032
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
2033
+ color: "red" | "blue" | "green" | "yellow";
2034
+ }, {
2035
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
2036
+ color: "red" | "blue" | "green" | "yellow";
2037
+ }>, z.ZodObject<{
2038
+ type: z.ZodEnum<["plus-four", "color-chooser"]>;
2039
+ color: z.ZodUndefined;
2040
+ }, "strip", z.ZodTypeAny, {
2041
+ type: "plus-four" | "color-chooser";
2042
+ color?: undefined;
2043
+ }, {
2044
+ type: "plus-four" | "color-chooser";
2045
+ color?: undefined;
2046
+ }>]>, z.ZodEnum<["red", "blue", "green", "yellow"]>]>, "many">;
2047
+ }, "strip", z.ZodTypeAny, {
2048
+ hands: Record<string, ({
2049
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
2050
+ color: "red" | "blue" | "green" | "yellow";
2051
+ } | {
2052
+ type: "plus-four" | "color-chooser";
2053
+ color?: undefined;
2054
+ })[]>;
2055
+ deck: ({
2056
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
2057
+ color: "red" | "blue" | "green" | "yellow";
2058
+ } | {
2059
+ type: "plus-four" | "color-chooser";
2060
+ color?: undefined;
2061
+ })[];
2062
+ seed: number;
2063
+ stackedPlusTwos: number;
2064
+ turnStep: 1 | -1;
2065
+ ended: boolean;
2066
+ pile: ({
2067
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
2068
+ color: "red" | "blue" | "green" | "yellow";
2069
+ } | {
2070
+ type: "plus-four" | "color-chooser";
2071
+ color?: undefined;
2072
+ })[];
2073
+ last3CardPlayOrColorChanges: ("red" | "blue" | "green" | "yellow" | {
2074
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
2075
+ color: "red" | "blue" | "green" | "yellow";
2076
+ } | {
2077
+ type: "plus-four" | "color-chooser";
2078
+ color?: undefined;
2079
+ })[];
2080
+ }, {
2081
+ hands: Record<string, ({
2082
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
2083
+ color: "red" | "blue" | "green" | "yellow";
2084
+ } | {
2085
+ type: "plus-four" | "color-chooser";
2086
+ color?: undefined;
2087
+ })[]>;
2088
+ deck: ({
2089
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
2090
+ color: "red" | "blue" | "green" | "yellow";
2091
+ } | {
2092
+ type: "plus-four" | "color-chooser";
2093
+ color?: undefined;
2094
+ })[];
2095
+ seed: number;
2096
+ stackedPlusTwos: number;
2097
+ turnStep: 1 | -1;
2098
+ ended: boolean;
2099
+ pile: ({
2100
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
2101
+ color: "red" | "blue" | "green" | "yellow";
2102
+ } | {
2103
+ type: "plus-four" | "color-chooser";
2104
+ color?: undefined;
2105
+ })[];
2106
+ last3CardPlayOrColorChanges: ("red" | "blue" | "green" | "yellow" | {
2107
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
2108
+ color: "red" | "blue" | "green" | "yellow";
2109
+ } | {
2110
+ type: "plus-four" | "color-chooser";
2111
+ color?: undefined;
2112
+ })[];
2113
+ }>;
2114
+ shorthandMode: z.ZodLiteral<true>;
2115
+ }, "strip", z.ZodTypeAny, {
2116
+ shorthandMode: true;
2117
+ events: ({
2118
+ type: "card_played";
2119
+ by: string;
2120
+ card: {
2121
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
2122
+ color: "red" | "blue" | "green" | "yellow";
2123
+ } | {
2124
+ type: "plus-four" | "color-chooser";
2125
+ color?: undefined;
2126
+ };
2127
+ } | {
2128
+ type: "bluff_called";
2129
+ by: string;
2130
+ } | {
2131
+ type: "draw";
2132
+ by: string;
2133
+ } | {
2134
+ type: "pass";
2135
+ by: string;
2136
+ } | {
2137
+ type: "choose-color";
2138
+ color: "red" | "blue" | "green" | "yellow";
2139
+ by: string;
2140
+ })[];
2141
+ index: number;
2142
+ initialSeed: number;
2143
+ players: string[];
2144
+ stackPlusTwos: boolean;
2145
+ cache: {
2146
+ hands: Record<string, ({
2147
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
2148
+ color: "red" | "blue" | "green" | "yellow";
2149
+ } | {
2150
+ type: "plus-four" | "color-chooser";
2151
+ color?: undefined;
2152
+ })[]>;
2153
+ deck: ({
2154
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
2155
+ color: "red" | "blue" | "green" | "yellow";
2156
+ } | {
2157
+ type: "plus-four" | "color-chooser";
2158
+ color?: undefined;
2159
+ })[];
2160
+ seed: number;
2161
+ stackedPlusTwos: number;
2162
+ turnStep: 1 | -1;
2163
+ ended: boolean;
2164
+ pile: ({
2165
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
2166
+ color: "red" | "blue" | "green" | "yellow";
2167
+ } | {
2168
+ type: "plus-four" | "color-chooser";
2169
+ color?: undefined;
2170
+ })[];
2171
+ last3CardPlayOrColorChanges: ("red" | "blue" | "green" | "yellow" | {
2172
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
2173
+ color: "red" | "blue" | "green" | "yellow";
2174
+ } | {
2175
+ type: "plus-four" | "color-chooser";
2176
+ color?: undefined;
2177
+ })[];
2178
+ };
2179
+ }, {
2180
+ shorthandMode: true;
2181
+ events: ({
2182
+ type: "card_played";
2183
+ by: string;
2184
+ card: {
2185
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
2186
+ color: "red" | "blue" | "green" | "yellow";
2187
+ } | {
2188
+ type: "plus-four" | "color-chooser";
2189
+ color?: undefined;
2190
+ };
2191
+ } | {
2192
+ type: "bluff_called";
2193
+ by: string;
2194
+ } | {
2195
+ type: "draw";
2196
+ by: string;
2197
+ } | {
2198
+ type: "pass";
2199
+ by: string;
2200
+ } | {
2201
+ type: "choose-color";
2202
+ color: "red" | "blue" | "green" | "yellow";
2203
+ by: string;
2204
+ })[];
2205
+ index: number;
2206
+ initialSeed: number;
2207
+ players: string[];
2208
+ stackPlusTwos: boolean;
2209
+ cache: {
2210
+ hands: Record<string, ({
2211
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
2212
+ color: "red" | "blue" | "green" | "yellow";
2213
+ } | {
2214
+ type: "plus-four" | "color-chooser";
2215
+ color?: undefined;
2216
+ })[]>;
2217
+ deck: ({
2218
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
2219
+ color: "red" | "blue" | "green" | "yellow";
2220
+ } | {
2221
+ type: "plus-four" | "color-chooser";
2222
+ color?: undefined;
2223
+ })[];
2224
+ seed: number;
2225
+ stackedPlusTwos: number;
2226
+ turnStep: 1 | -1;
2227
+ ended: boolean;
2228
+ pile: ({
2229
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
2230
+ color: "red" | "blue" | "green" | "yellow";
2231
+ } | {
2232
+ type: "plus-four" | "color-chooser";
2233
+ color?: undefined;
2234
+ })[];
2235
+ last3CardPlayOrColorChanges: ("red" | "blue" | "green" | "yellow" | {
2236
+ type: "reverse" | "zero" | "one" | "two" | "three" | "four" | "five" | "six" | "seven" | "eight" | "nine" | "plus-two" | "skip";
2237
+ color: "red" | "blue" | "green" | "yellow";
2238
+ } | {
2239
+ type: "plus-four" | "color-chooser";
2240
+ color?: undefined;
2241
+ })[];
2242
+ };
2243
+ }>]>;
2244
+ export type GameState = z.infer<typeof gameState>;
2245
+ export type ProcessEventResult = {
2246
+ type: "card_played";
2247
+ card: Card;
2248
+ formatted: string;
2249
+ } | {
2250
+ type: "player_win_game_end";
2251
+ won: string;
2252
+ lost: string;
2253
+ formatted: string;
2254
+ } | {
2255
+ type: "player_win";
2256
+ won: string;
2257
+ formatted: string;
2258
+ } | {
2259
+ type: "drawing_cards";
2260
+ cards: Card[];
2261
+ count: number;
2262
+ formatted: string;
2263
+ } | {
2264
+ type: "turn_passed";
2265
+ formatted: string;
2266
+ } | {
2267
+ type: "bluff_call_succeeded";
2268
+ by: string;
2269
+ of: string;
2270
+ formatted: string;
2271
+ } | {
2272
+ type: "bluff_call_failed";
2273
+ by: string;
2274
+ of: string;
2275
+ formatted: string;
2276
+ } | {
2277
+ type: "color_changed";
2278
+ to: string;
2279
+ formatted: string;
2280
+ };