⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (402 Bytes)
Bug #14355
ยป MutantSpeak.rb
Winklerbugs (Bart Winkler)
, 01/14/2018 07:24 PM
#!/usr/bin/env ruby
aMutantSpeak
=
[[
nil
,
nil
],[
nil
,
nil
]]
aDogSpeak
=
aMutantSpeak
.
clone
aCatSpeak
=
aMutantSpeak
.
clone
aDogSpeak
[
0
][
0
]
=
"W"
aCatSpeak
[
0
][
0
]
=
"m"
aCatSpeak
[
0
][
1
]
=
"e"
aDogSpeak
[
0
][
1
]
=
"O"
aCatSpeak
[
1
][
0
]
=
"o"
aDogSpeak
[
1
][
0
]
=
"O"
aDogSpeak
[
1
][
1
]
=
"F"
aCatSpeak
[
1
][
1
]
=
"w"
print
"aMutantSpeak "
,
aMutantSpeak
puts
print
"aDogSpeak "
,
aDogSpeak
puts
print
"aCatSpeak "
,
aCatSpeak
(1-1/1)
Loading...