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
//! `RankedOrder` example.
//!
//! Here we're getting ready for a turn, determining turn order for a large party.
//!
//! The `npc_generator` module uses a bunch of `RefillingPool`s to create a party with
//! randomized names and stats.
//!
//! The `initiative` closure is used to rank the characters for the turn using
//! a `DescendingOrder` (which is a `RankedOrder<_,_,Descending>`). They then
//! "take their turns" by popping from the order and calling their Npc::take_turn() method.
use Die;
use GameResult;
use DescendingOrder;
use ;
const PARTY_SIZE: usize = 30;