-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtarot.rb
85 lines (85 loc) · 1.61 KB
/
tarot.rb
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
#!/usr/bin/ruby
print "You would like your fortune? Please tell me your name; or should I read that as well?"
name = gets.chomp
print "How many cards would you like? "
reading = gets.chomp
deck = [
0 => 'zed',
1 => 'one',
2 => 'two',
3 => 'three',
4 => 'four',
5 => 'five',
6 => 'six',
7 => 'seven',
8 => 'eight',
9 => 'nine',
10 => 'ten',
11 => 'eleven',
12 => 'twelve',
13 => 'thirteen',
14 => 'fourteen',
15 => 'fifteen',
16 => 'sixteen',
17 => 'seventeen',
18 => 'eighteen',
19 => 'nineteen',
20 => 'twenty',
21 => 'twentyone',
22 => '♣ace',
23 => '♣two',
24 => '♣three',
25 => '♣four',
26 => '♣five',
27 => '♣six',
28 => '♣seven',
29 => '♣eight',
30 => '♣nine',
31 => '♣ten',
32 => '♣page',
33 => '♣knight',
34 => '♣king',
35 => '♣queen',
36 => '♦ace',
37 => '♦two',
38 => '♦three',
39 => '♦four',
40 => '♦five',
41 => '♦six',
42 => '♦seven',
43 => '♦eight',
44 => '♦nine',
45 => '♦ten',
46 => '♦page',
47 => '♦knight',
48 => '♦king',
49 => '♦queen',
50 => '♥ace',
51 => '♥two',
52 => '♥three',
53 => '♥four',
54 => '♥five',
55 => '♥six',
56 => '♥seven',
57 => '♥eight',
58 => '♥nine',
59 => '♥ten',
60 => '♥page',
61 => '♥knight',
62 => '♥king',
63 => '♥queen',
64 => '♠ace',
65 => '♠two',
66 => '♠three',
67 => '♠four',
68 => '♠five',
69 => '♠six',
70 => '♠seven',
71 => '♠eight',
72 => '♠nine',
73 => '♠ten',
74 => '♠page',
75 => '♠knight',
76 => '♠king',
77 => '♠queen'
]