-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayer.mli
91 lines (69 loc) · 2.91 KB
/
player.mli
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
82
83
type player
type t = player
type dev =
| Knight
| Year
| Monopoly
| Victory
| Road
type piece = | City | Settlement | Road
type resource = | Ore | Wheat | Wool | Brick | Lumber
val cheat_augment_resources : player -> player
val roll : unit -> int
val initialize_player : player
val resources_to_tuple : player -> (int * int * int * int * int)
val bulk_add_resources : player -> (resource * int) list -> player
val bulk_remove_resources : player -> (resource * int) list -> player
val add_resource_n : int -> player -> resource -> player
val remove_resource_n : int -> player -> resource -> player
val get_num_resource : player -> resource -> int
val knights_to_tuple : player -> (int * int)
val add_knight : player -> player
val play_knight : player -> player
val dev_to_tuple : player -> (int * int * int * int)
val has_resources_dev : player -> bool
val add_dev : dev -> player -> player
val play_dev : dev -> player -> player
val add_dev_card_played_already : player -> player
val reset_dev_played : player -> player (* DEPRECATED *)
val reset_dev_current : player -> player
val string_to_dev : string -> dev
val has_dev : dev -> player -> bool
val num_knights : player -> int
val has_dev_played : player -> bool
val is_longest_road : player -> bool
val is_largest_army : player -> bool
val set_longest_road : player -> bool -> player
val set_largest_army : player -> bool -> player
val get_length_road : player -> int
val set_length_road : player -> int -> player
val get_victory_points : player -> int
val set_victory_points : player -> int -> player
val check_victory : player -> bool
val can_build_road : player -> bool
val has_resources_road : player -> bool
val can_build_settlement : player -> bool
val has_resources_settlement : player -> bool
val can_build_city : player -> bool
val has_resources_city : player -> bool
val pieces_to_list : player -> int list
val add_piece : player -> piece -> player
val add_piece_pregame : player -> piece -> player
val remove_piece : player -> piece -> player
val get_robber : player -> bool
val set_robber : player -> bool -> player
val halve_hand : player -> player
val randomly_remove_cards : int -> player -> player
val robber_choose_random_card : player -> resource option
val check_tradeable_n : int -> player -> resource -> bool
val trade_resources_n : int -> int -> player -> resource -> resource -> player
val check_tradeable_4 : player -> resource -> bool
val trade_resources_4 : player -> resource -> resource -> player
val check_tradeable_3 : player -> resource -> bool
val trade_resources_3 : player -> resource -> resource -> player
val check_tradeable_2 : player -> resource -> bool
val trade_resources_2 : player -> resource -> resource -> player
val can_remove_resource : int -> string -> player -> bool
val string_to_resource : string -> resource
val player_trade_resources : player -> string -> int -> string -> int -> player
val print_string_of_player_info : player -> unit