Skip to content

Commit

Permalink
Cards variable is an object, not an array.
Browse files Browse the repository at this point in the history
  • Loading branch information
vetom committed Apr 7, 2018
1 parent 17f7ca5 commit 0305563
Showing 1 changed file with 88 additions and 88 deletions.
176 changes: 88 additions & 88 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,68 +89,68 @@ Game for ***p*** players, weight ***w*** and the cards ( ***v*** Villagers and
const cards = wwb.getAllCards();
```

#### Cards Array
#### Cards Object
```javascript
const cards = [
{ apprentice_seer: 4 },
{ aura_seer: 3 },
{ beholder: 2 },
{ big_bad_wolf: -9 },
{ bloody_mary: 1 },
{ bodyguard: 3 },
{ bogeyman: -6 },
{ chupacabra: 4 },
{ count_dracula: -2 },
{ cult_leader: 1 },
{ cupid: -2 },
{ cursed: -3 },
{ dire_wolf: -4 },
{ diseased: 3 },
{ doppelganger: -2 },
{ dream_wolf: -5 },
{ drunk: 3 },
{ fortune_teller: 0 },
{ fruit_brute: -3 },
{ ghost: 2 },
{ hoodlum: 0 },
{ hunter: 3 },
{ insomniac: 3 },
{ leprechaun: 5 },
{ little_girl: 0 },
{ lone_wolf: -4 },
{ lycan: -1 },
{ mayor: 2 },
{ mason: 2 },
{ martyr: 3 },
{ minion: -6 },
{ moderator: 0 },
{ nostradamus: 1 },
{ old_hag: 1 },
{ old_man: 0 },
{ pacifist: -1 },
{ p_i: 3 },
{ priest: 3 },
{ prince: 3 },
{ sasquatch: -2 },
{ seer: 7 },
{ sorcerer: -3 },
{ spellcaster: 1 },
{ tanner: 1 },
{ the_count: 5 },
{ thing: 3 },
{ tough_guy: 3 },
{ troublemaker: 2 },
{ vampire: -7 },
{ village_idiot: 2 },
{ villager: 1 },
{ virginia_woolf: -2 },
{ werewolf: -6 },
{ wild_child: 0 },
{ witch: 4 },
{ wolf_cub: -8 },
{ wolf_man: -9 },
{ wolverine: -4 }
];
const cards = {
apprentice_seer: 4,
aura_seer: 3,
beholder: 2,
big_bad_wolf: -9,
bloody_mary: 1,
bodyguard: 3,
bogeyman: -6,
chupacabra: 4,
count_dracula: -2,
cult_leader: 1,
cupid: -2,
cursed: -3,
dire_wolf: -4,
diseased: 3,
doppelganger: -2,
dream_wolf: -5,
drunk: 3,
fortune_teller: 0,
fruit_brute: -3,
ghost: 2,
hoodlum: 0,
hunter: 3,
insomniac: 3,
leprechaun: 5,
little_girl: 0,
lone_wolf: -4,
lycan: -1,
mayor: 2,
mason: 2,
martyr: 3,
minion: -6,
moderator: 0,
nostradamus: 1,
old_hag: 1,
old_man: 0,
pacifist: -1,
p_i: 3,
priest: 3,
prince: 3,
sasquatch: -2,
seer: 7,
sorcerer: -3,
spellcaster: 1,
tanner: 1,
the_count: 5,
thing: 3,
tough_guy: 3,
troublemaker: 2,
vampire: -7,
village_idiot: 2,
villager: 1,
virginia_woolf: -2,
werewolf: -6,
wild_child: 0,
witch: 4,
wolf_cub: -8,
wolf_man: -9,
wolverine: -4
};
```

### Get available language packs
Expand Down Expand Up @@ -229,19 +229,19 @@ game object.
```javascript
const wwb = require('werewolf-brain');
const players = 17;
const customCards = [
{ mason: 3 },
{ minion: 1 },
{ prince: 1 },
{ seer: 1 },
{ spellcaster: 1 },
{ tanner: 1 },
{ vampire: 8 },
{ van_helsing: 1 },
{ villager: 30 },
{ werewolf: 12 },
{ wolf_cub: 1 },
];
const customCards = {
mason: 3,
minion: 1,
prince: 1,
seer: 1,
spellcaster: 1,
tanner: 1,
vampire: 8,
van_helsing: 1,
villager: 30,
werewolf: 12,
wolf_cub: 1,
};
const options = {
deck: customCards
};
Expand Down Expand Up @@ -290,20 +290,20 @@ kills everyone every night. The function will return a game object.
```javascript
const wwb = require('werewolf-brain');
const players = 22;
const customCards = [
{ martyr: 2 },
{ mason: 3 },
{ minion: 1 },
{ prince: 1 },
{ seer: 1 },
{ serial_killer: 1 },
{ spellcaster: 1 },
{ tanner: 1 },
{ vampire: 8 },
{ villager: 20 },
{ werewolf: 18 },
{ wolf_cub: 1 },
];
const customCards = {
martyr: 2,
mason: 3,
minion: 1,
prince: 1,
seer: 1,
serial_killer: 1,
spellcaster: 1,
tanner: 1,
vampire: 8,
villager: 20,
werewolf: 18,
wolf_cub: 1,
};
const options = {
deck: customCards,
mode: 'CHAOS'
Expand Down

0 comments on commit 0305563

Please sign in to comment.