-
Notifications
You must be signed in to change notification settings - Fork 0
/
seed_data_games.js
596 lines (569 loc) · 20.9 KB
/
seed_data_games.js
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
const mongoose = require('mongoose');
const db = require('./config/keys').mongoURI;
const { schema } = require('./models/Game');
const User = require('./models/User');
const Group = require('./models/Group');
const Game = require('./models/Game');
// Game _id set to fixed value
// Game userCreator set to fixed value (id for Unshelvd account)
mongoose
.connect(db, { useNewUrlParser: true })
.then(() => console.log("Connected to MongoDB successfully"))
.then(() => loadCounter())
.catch(err => console.log(err));
const gamesTest = [
new Game(
{
_id: '623b4c050222f83386e47760',
name: 'Dragoon',
image: 'https://cf.geekdo-images.com/yXBV30yleOlJyY12tF6_ew__imagepagezoom/img/bXvKFuYxRIexKegX05UkVH9UNbw=/fit-in/1200x900/filters:no_upscale():strip_icc()/pic4200390.png',
playerCount: {
min: 2,
max: 4
},
category: [
'Board Game', 'Strategy'
],
gameType: [
"Unplugged"
],
description: 'You and your fellow dragons have lived peacefully on your island...until now. The invasion of humans has awakened your instincts to dominate and hoard as much gold as you can get your claws on! Instructions: https://static1.squarespace.com/static/53090200e4b032b4d4b015a8/t/5805ab3fb3db2bc91573f288/1476766541675/Dragoon_instructions.pdf',
userCreator: '623b4d3143f29e517e625064'
}
),
new Game(
{
_id: '62346dc0e58d7eaa48659746',
name: 'Crazy Eights',
image: 'https://github.com/Bill-the-dev/Unshelvd_MERN/blob/main/z-images/playing-cards-3.png?raw=true',
playerCount: {
min: 2,
max: 8
},
category: [
"Playing Cards"
],
gameType: [
"Unplugged"
],
description: 'Crazy Eights first known in the 1930s and was called Eights. In the 1940s the name became Crazy Eights after the military designation for the discharge of mentally unstable soldiers, Section 8. Crazy Eights is a card shedding game where one card is usually played at a time. There are many variations of the game, and Crazy Eights is also known as Craits, Last One, Mau-Mau, Pesten, Rockaway, Swedish Rummy, Switch, Last Card, Screw Your Neighbour, Püskiyon and Tschausepp. Bartok, Mao, Quango, Zar, and Taki are more extreme variations. Connected Play: https://www.trapapps.com/web/044/site/game/crazyeights Instructions: https://www.pagat.com/eights/crazy8s.html',
userCreator: '623b4d3143f29e517e625064'
}
),
new Game(
{
_id: '62346dc0e58d7eaa48659748',
name: 'Wingspan',
image: 'https://raw.githubusercontent.com/Bill-the-dev/Unshelvd_MERN/main/z-images/bg-wingspan.webp',
playerCount: {
min: 1,
max: 5
},
category: [
'Board Game', 'Strategy'
],
gameType: [
'Unplugged'
],
description: 'Wingspan is a competitive, medium-weight, card-driven, engine-building board game from Stonemaier Games. It\'s designed by Elizabeth Hargrave and features over 170 birds illustrated by Beth Sobel, Natalia Rojas, and Ana Maria Martinez.',
userCreator: '623b4d3143f29e517e625064'
}
),
new Game(
{
_id: '62346dc0e58d7eaa48659749',
name: 'Onitama',
image: 'https://raw.githubusercontent.com/Bill-the-dev/Unshelvd_MERN/main/z-images/bg-onitama.webp',
playerCount: {
min: 2,
max: 2
},
category: [
'Board Game', 'Strategy'
],
gameType: [
'Unplugged', 'Online'
],
description: 'Onitama is a two-player, perfect information abstract game with a random starting set-up. On a 5x5 board, both players start with five pawns on their side, with the main pawn in the middle.',
userCreator: '623b4d3143f29e517e625064'
}
),
new Game(
{
_id: '62346dc0e58d7eaa4865974a',
name: 'Codenames',
image: 'https://raw.githubusercontent.com/Bill-the-dev/Unshelvd_MERN/main/z-images/bg-codenames.webp',
playerCount: {
min: 2,
max: 8
},
category: [
'Board Game', 'Party', 'Word', 'Puzzle', 'Quick', 'Team Play', 'Deduction'
],
gameType: [
'Unplugged'
],
description: 'Codenames is an easy deduction party game. The game is divided into red and blue, each side has a team leader, the team leader\'s goal is to lead their team to the final victory.The two rival spymasters know the secret identities of 25 agents.Their teammates know the agents only by their CODENAMES. Connected Play: https://codenames.game/ Instructions: https://czechgames.com/en/codenames/video/',
userCreator: '623b4d3143f29e517e625064'
}
),
new Game(
{
_id: '62346dc0e58d7eaa4865974b',
name: 'Scrabble',
image: 'https://raw.githubusercontent.com/Bill-the-dev/Unshelvd_MERN/main/z-images/bg-scrabble.webp',
playerCount: {
min: 2,
max: 4
},
category: [
'Board Game', 'Word', 'Tile'
],
gameType: [
'Connected', 'Unplugged'
],
description: 'Scrabble is a word game in which two to four players score points by placing tiles, each bearing a single letter, onto a game board divided into a 15×15 grid of squares. The tiles must form words that, in crossword fashion, read left to right in rows or downward in columns, and be included in a standard dictionary or lexicon. Connected Play: https://www.lexulous.com/',
userCreator: '623b4d3143f29e517e625064'
}
),
new Game(
{
_id: '62346dc0e58d7eaa4865974c',
name: 'Spoons',
image: 'https://github.com/Bill-the-dev/Unshelvd_MERN/blob/main/z-images/playing-cards-3.png?raw=true',
playerCount: {
min: 3,
max: 1000
},
category: [
'Playing Cards', 'Party', 'Quick'
],
gameType: [
'Unplugged'
],
description: 'Dig into this fast paced card swapping game!',
userCreator: '623b4d3143f29e517e625064'
},
),
new Game(
{
_id: '62346dc0e58d7eaa4865974d',
name: 'Catan',
image: 'https://raw.githubusercontent.com/Bill-the-dev/Unshelvd_MERN/main/z-images/bg-catan.webp',
playerCount: {
min: 3,
max: 4
},
category: [
'Board Game', 'Party', 'Strategy', 'Dice'
],
gameType: [
'Unplugged'
],
description: 'Players take on the roles of settlers, each attempting to build and develop holdings while trading and acquiring resources. Players gain victory points as their settlements grow; the first to reach a set number of victory points, typically 10, wins.',
userCreator: '623b4d3143f29e517e625064'
}
),
new Game(
{
_id: '62346dc0e58d7eaa4865974e',
name: 'Bananagrams',
image: 'https://raw.githubusercontent.com/Bill-the-dev/Unshelvd_MERN/main/z-images/bg-bananagrams.jpeg',
playerCount: {
min: 2,
max: 8
},
category: [
'Tile', 'Word', 'Quick'
],
gameType: [
'Unplugged'
],
description: "Bananagrams is a word game wherein lettered tiles are used to spell words. Gameplay involves arranging one's tiles into a grid of connected words faster than one's opponents. The object of the game is to be the first to complete a word grid after the pool of tiles has been exhausted.",
userCreator: '623b4d3143f29e517e625064'
}
),
new Game(
{
_id: '62346dc0e58d7eaa4865974f',
name: 'Ticket to Ride',
image: 'https://raw.githubusercontent.com/Bill-the-dev/Unshelvd_MERN/main/z-images/bg-ticket-to-ride.jpeg',
playerCount: {
min: 2,
max: 5
},
category: [
'Board Game', 'Strategy'
],
gameType: [
'Unplugged'
],
description: "Ticket to Ride is a cross-country train adventure in which players collect and play matching train cards to claim railway routes connecting cities throughout North America.The longer the routes, the more points they earn. Additional points come to those who can fulfill their Destination Tickets by connecting two distant cities, and to the player who builds the longest continuous railway.",
userCreator: '623b4d3143f29e517e625064'
}
),
new Game(
{
_id: '62346dc0e58d7eaa48659750',
name: 'Cards Against Humanity',
image: 'https://raw.githubusercontent.com/Bill-the-dev/Unshelvd_MERN/main/z-images/bg-cards-against-humanity.webp',
playerCount: {
min: 4,
max: 20
},
category: [
'Board Game', 'Party'
],
gameType: [
'Unplugged'
],
description: "Cards Against Humanity is a party game for horrible people. The game is simple. Each round, one player asks a question from a black card, and everyone else answers with their funniest white card.",
userCreator: '623b4d3143f29e517e625064'
}
),
new Game(
{
_id: '62346dc0e58d7eaa48659751',
name: 'Rummikub',
image: 'https://raw.githubusercontent.com/Bill-the-dev/Unshelvd_MERN/main/z-images/bg-rummikub.webp',
playerCount: {
min: 2,
max: 4
},
category: [
'Tile', 'Puzzle'
],
gameType: [
'Unplugged'
],
description: "Rummikub is a tile-based game combining elements of the card game rummy and mahjong. Players take turns putting down tiles from their racks into sets (groups or runs) of at least three, drawing a tile if they cannot play. The first player to use all their tiles scores a positive score based on the total of the other players' hands, while the losers get negative scores. An important feature of the game is that players can work with the tiles that have already been played.",
userCreator: '623b4d3143f29e517e625064'
}
),
new Game(
{
_id: '62346dc0e58d7eaa48659752',
name: 'Sushi Go Party!',
image: 'https://raw.githubusercontent.com/Bill-the-dev/Unshelvd_MERN/main/z-images/bg-sushi-go-party.png',
playerCount: {
min: 2,
max: 8
},
category: [
'Board Game', 'Party', 'Strategy'
],
gameType: [
'Unplugged'
],
description: "It's a party platter of Mega Maki, Super sashimi, and endless edamame in this expanded version of the best-selling card game. You still earn points by picking winning sushi combos, but now you can customize each game by choosing a La carte from a menu of more than 20 delectable dishes. What's more, up to 8 players can join in on the sushi-feast let the good times roll!",
userCreator: '623b4d3143f29e517e625064'
}
),
new Game(
{
_id: '62346dc0e58d7eaa48659753',
name: 'Jenga',
image: 'https://raw.githubusercontent.com/Bill-the-dev/Unshelvd_MERN/main/z-images/bg-jenga.jpeg',
playerCount: {
min: 2,
max: 20
},
category: [
'Tile', 'Party'
],
gameType: [
'Unplugged'
],
description: "Players take turns removing one block from within the tower and placing it back on the top. Cross your fingers and hold your breath as the tower grows taller and more unstable with every move. See how many rounds you can go before the tower comes crashing down. The last person to successfully place a block before the tower tumbles is considered the winner.",
userCreator: '623b4d3143f29e517e625064'
}
),
new Game(
{
_id: '62346dc0e58d7eaa48659754',
name: 'Uno',
image: 'https://raw.githubusercontent.com/Bill-the-dev/Unshelvd_MERN/main/z-images/bg-uno.avif',
playerCount: {
min: 2,
max: 20
},
category: [
'Playing Cards', 'Party', 'Quick'
],
gameType: [
'Unplugged'
],
description: "Players take turns matching a card in their hand with the current card shown on top of the deck either by color or number. Before playing your next to last card, you must say 'UNO'. The first player to play all of the cards in their hand in each round scores points for the cards their opponents are left holding. The first player to score 500 points wins the game.",
userCreator: '623b4d3143f29e517e625064'
}
),
new Game(
{
_id: '62346dc0e58d7eaa48659755',
name: 'Clue',
image: 'https://raw.githubusercontent.com/Bill-the-dev/Unshelvd_MERN/main/z-images/bg-clue.jpeg',
playerCount: {
min: 3,
max: 6
},
category: [
'Board Game', 'Deduction'
],
gameType: [
'Unplugged'
],
description: "Clue is a murder mystery game where the object of the game is to determine who murdered the game's victim, where the crime took place, and which weapon was used. Each player assumes the role of one of the six suspects and attempts to deduce the correct answer by strategically moving around a game board representing the rooms of a mansion and collecting clues about the circumstances of the murder from the other players.",
userCreator: '623b4d3143f29e517e625064'
}
),
new Game(
{
_id: '62346dc0e58d7eaa48659756',
name: 'Monopoly',
image: 'https://raw.githubusercontent.com/Bill-the-dev/Unshelvd_MERN/main/z-images/bg-monopoly.jpeg',
playerCount: {
min: 2,
max: 8
},
category: [
'Board Game', 'Strategy', 'Dice'
],
gameType: [
'Unplugged'
],
description: "Monopoly is a multi-player economics-themed board game. In the game, players roll two dice to move around the game board, buying and trading properties, and developing them with houses and hotels. Players collect rent from their opponents, with the goal being to drive them into bankruptcy.",
userCreator: '623b4d3143f29e517e625064'
}
),
new Game(
{
_id: '62346dc0e58d7eaa48659757',
name: 'Sequence',
image: 'https://raw.githubusercontent.com/Bill-the-dev/Unshelvd_MERN/main/z-images/bg-sequence.webp',
playerCount: {
min: 2,
max: 12
},
category: [
'Board Game', 'Strategy', 'Team Play'
],
gameType: [
'Unplugged'
],
description: "Sequence is an abstract strategy board-and-card game. The object of the game is to form rows of five poker chips on the board by placing the chips on the board spaces corresponding to cards played from the player's hand.",
userCreator: '623b4d3143f29e517e625064'
}
),
new Game(
{
_id: '62346dc0e58d7eaa48659758',
name: 'Pictionary',
image: 'https://raw.githubusercontent.com/Bill-the-dev/Unshelvd_MERN/main/z-images/bg-pictionary.jpeg',
playerCount: {
min: 2,
max: 20
},
category: [
'Pen & Paper', 'Party', 'Quick', 'Team Play'
],
gameType: [
'Unplugged'
],
description: "Pictionary is a charades-inspired word-guessing game. Teams take turns drawing and guessing as many words or phrases as possible in a timed round.",
userCreator: '623b4d3143f29e517e625064'
}
),
new Game(
{
_id: '62346dc0e58d7eaa48659759',
name: 'Coup',
image: 'https://raw.githubusercontent.com/Bill-the-dev/Unshelvd_MERN/main/z-images/bg-coup.jpg',
playerCount: {
min: 3,
max: 6
},
category: [
'Board Game', 'Bluffing', 'Deduction'
],
gameType: [
'Unplugged'
],
description: "In the not too distant future, The government is run for profit by a new 'royal class' Of multi national CEOs. Their greed and absolute control of the economy has reduced all but a privileged few to lives of poverty and Desperation.Out of the oppressed masses rose The resistance, an underground organization focused on overthrowing these powerful rulers. The Valiant efforts of the resistance have created Discord, intrigue and weakness in the political courts of the nouveau royal, bringing the government to brink of collapse. But for you, a powerful government official, this is your opportunity to manipulate, bribe and bluff your way into absolute power. To be successful, you must destroy the influence of your rivals and drive them into Exile. In these Turbulent times there is only room for one to survive.",
userCreator: '623b4d3143f29e517e625064'
}
),
// added recent, only to unshelved
new Game(
{
_id: '623b55450222f83386e47761',
name: 'Left, Center, Right (LCR)',
image: 'https://github.com/Bill-the-dev/Unshelvd_MERN/blob/main/z-images/dice-1.png?raw=true',
playerCount: {
min: 3,
max: 10
},
category: [
"Playing Cards", "Dice"
],
gameType: [
"Unplugged"
],
description: 'Roll your way to victory in this dice game by being the last player to hold their chips! https://bicyclecards.com/how-to-play/left-center-right/',
userCreator: '623b4d3143f29e517e625064'
}
),
new Game(
{
_id: '623b8ac3a5a2e640e0c131a4',
name: 'Hangman',
image: 'https://github.com/Bill-the-dev/Unshelvd_MERN/blob/main/z-images/pen-and-paper-1.png?raw=true',
playerCount: {
min: 2,
max: 6
},
category: [
"Pen & Paper"
],
gameType: [
"Unplugged"
],
description: "A pen & paper classic, guess the mystery word one letter at a time before it's too late! Instructions: https://printerfriend.ly/games/hangman/how-to-play-hangman-rules/",
userCreator: '623b4d3143f29e517e625064'
}
),
new Game(
{
_id: '623b8aa5a5a2e640e0c131a3',
name: 'Dots and Boxes',
image: 'https://github.com/Bill-the-dev/Unshelvd_MERN/blob/main/z-images/pen-and-paper-1.png?raw=true',
playerCount: {
min: 2,
max: 6
},
category: [
"Pen & Paper"
],
gameType: [
"Unplugged"
],
description: "To play Dots, you need a square of dots on the page (start with 6×6 or challenge yourself and go up to 30×30 or more). Once the square is created, players (2 or more) take turns with a different color pen creating line segments between dots. When a player forms a square with their line, they may put their initial in that square and play again. The game continues until all the lines between the dots have been drawn.",
userCreator: '623b4d3143f29e517e625064'
}
),
new Game(
{
_id: '623b8c35a5a2e640e0c131a5',
name: 'Golf',
image: 'https://github.com/Bill-the-dev/Unshelvd_MERN/blob/main/z-images/playing-cards-3.png?raw=true',
playerCount: {
min: 2,
max: 8
},
category: [
"Playing Cards"
],
gameType: [
"Unplugged", "Connected"
],
description: "Also known as Polish Polka, Polish Poker, Turtle, Hara Kiri, Poison, or Crazy Nines. The game is typically played by 2 to 6 players with 4 to 10 cards dealt to each player. There are many variations to this card game and its origins are unclear. Instructions: https://www.pagat.com/draw/golf.html Connected Play: https://www.trapapps.com/web/044/site/game/golf ",
userCreator: '623b4d3143f29e517e625064'
}
),
new Game(
{
_id: '623b90f8a5a2e640e0c131a6',
name: 'Rummy 500',
image: 'https://github.com/Bill-the-dev/Unshelvd_MERN/blob/main/z-images/playing-cards-3.png?raw=true',
playerCount: {
min: 2,
max: 8
},
category: [
"Playing Cards"
],
gameType: [
"Unplugged", "Connected"
],
description: "Also called 500 Rum, 500 Rummy, Pinochle Rummy, Michigan Rummy, Rummy and Gin Rummy. This can cause some confusion as to which game is actually being played. The primary difference between Rummy 500 and the other Rummy games is that each player scores for their own melds. Instructions: https://www.pagat.com/rummy/500rum.html Connected Play: https://www.trapapps.com/web/044/site/game/rummyfh ",
userCreator: '623b4d3143f29e517e625064'
}
),
]
const loadCounter = () => {
let gamesDone = 0;
for (let i = 0; i < gamesTest.length; i++) {
// debugger
gamesTest[i].save((err, res) => {
gamesDone++
if (gamesDone === gamesTest.length) {
exit()
}
// debugger
});
}
// should add documents, then disconnect once finished (callback below)
}
const exit = () => {
mongoose.disconnect()
.then(() => console.log('Disonnected from MongoDB successfully'))
}
// const seedGames = [
// {
// name: '',
// image: '',
// playerCount: {
// min: 0,
// max: 0
// },
// category: [
// ],
// gameType: [
// ],
// description: '',
// userCreator: ''
// }
// ]
// const seedUsers = [
// {
// username: '',
// email: '',
// password: '',
// games: [{
// // type: Schema.Types.ObjectId,
// // ref: 'Game'
// }],
// groups: [{
// // Schema.Types.ObjectId,
// // ref: 'Group'
// }],
// },
// ]
// const seedGames = [
// {
// name: '',
// image: '',
// playerCount: {
// min: 0,
// max: 0
// },
// category: [
// ],
// gameType: [
// ],
// description: '',
// userCreator: ''
// }
// ]
// const seedGroups = [
// {
// name: '',
// users: [
// ],
// userGroupCreator: {
// // type: Schema.Types.ObjectId,
// // ref: 'User'
// }
// }
// ]
// Deleted game, creator:
// 623485f8d0aca2b137d11bf5, 62311d449bd3bc8378ded480