-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfreecell.c
executable file
·76 lines (63 loc) · 1.2 KB
/
freecell.c
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
/* freecell.c */
#include "script.h"
static void BuildPiles(struct Baize *const baize)
{
(void)baize;
}
static void StartGame(struct Baize *const baize)
{
(void)baize;
}
static void AfterMove(struct Baize *const baize)
{
(void)baize;
}
static const char* TailMoveError(struct Array *const tail)
{
(void)tail;
return (void*)0;
}
static const char* TailAppendError(struct Pile *const pile, struct Array *const tail)
{
(void)pile;
(void)tail;
return (void*)0;
}
static int PileUnsortedPairs(struct Pile *const pile)
{
(void)pile;
return 0;
}
static void TailTapped(struct Array *const tail)
{
(void)tail;
}
static void PileTapped(struct Pile *const pile)
{
(void)pile;
}
static int PercentComplete(struct Baize *const baize)
{
(void)baize;
return 0;
}
static const char* Wikipedia(void)
{
return "https://en.wikipedia.org/wiki/FreeCell";
}
static struct ScriptInterface freecellVtable = {
&BuildPiles,
&StartGame,
&AfterMove,
&TailMoveError,
&TailAppendError,
&PileUnsortedPairs,
&TailTapped,
&PileTapped,
&PercentComplete,
&Wikipedia,
};
struct ScriptInterface* GetFreecellInterface(void)
{
return &freecellVtable;
}