-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
59 lines (52 loc) · 1.21 KB
/
README
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
GameState:
x PlayerCards
x Player
y Stacks (dict)
Trash
List of (Action, Buys, Coins) for each player
Whose turn it is
PlayerCards:
Deck ~ (dictionary of cards, # cards, dictionary of known cards)
Hand ~ ""
Discard ~ ""
Currently In Play ~ ""
functions:
draw x cards
merge discard deck
trash cards
add cards to discard
...
Cards:
features of coins, victory points, name, function act, function react
(passed in to constructor)
- action function( gameState )
may prompt players for input, reactions, etc.
Player:
chooseInput(gameState, set inputs, actionSimulator)
actionSimulator simulates finishing the whole action
returns one of the possible inputs
playActionPhase(gameState...)
buyCards(gameState...)
heuristic knowledge base
InputClass:
(functions in terms of gamestate, and picks out input relevant to action)
pickTf
pickHandset
etc
Engine
Basically iterate while the game has not ended, and iterate over players actions, buys
Cards done (tentatively):
Adventurer
Copper
CouncilRoom
Duchy
Estate
Festival
Gold
Laboratory
Market
Province
Silver
Smithy
Village
Woodcutter