Project

General

Profile

Bug #14355 ยป MutantSpeak.rb

Winklerbugs (Bart Winkler), 01/14/2018 07:24 PM

 
1
#!/usr/bin/env ruby
2
aMutantSpeak = [[nil,nil],[nil,nil]]
3
aDogSpeak = aMutantSpeak.clone
4
aCatSpeak = aMutantSpeak.clone
5
aDogSpeak[0][0] = "W"
6
aCatSpeak[0][0] = "m"
7
aCatSpeak[0][1] = "e"
8
aDogSpeak[0][1] = "O"
9
aCatSpeak[1][0] = "o"
10
aDogSpeak[1][0] = "O"
11
aDogSpeak[1][1] = "F"
12
aCatSpeak[1][1] = "w"
13
print "aMutantSpeak ",  aMutantSpeak
14
puts
15
print "aDogSpeak ", aDogSpeak
16
puts
17
print "aCatSpeak ", aCatSpeak