@anonymous/

EcstaticShamefulComputation

Nodejs

No description

fork
loading
Files
  • index.js
  • data
  • entry.js
  • lib.js
  • package-lock.json
  • raffle.js
  • results.md
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const { print } =
  require ("./lib")

const { fromFile } =
  require ("./entry")

const { raffle, stats } =
  require ("./raffle")

const [ disqualified, qualified ] =
  fromFile ("./data")

// provided by @discobot
const roll =
  [ 7, 14, 13, 8, 3, 2, 3, 16 ]

const winners =
  raffle (qualified, roll)

print (`disqualified (${disqualified.length})`, disqualified)
print (`qualified (${qualified.length})`, qualified .map (t => t.name))
print (`winners (${winners.length})`, winners)