Take the 2008 Git User's Survey and help out! [ hide ]

public
Description: Tradução do livro Why's (Poignant) Guide to Ruby para português.
Homepage: http://poignantguide.net/ruby/
Clone URL: git://github.com/carlosbrando/poignant-br.git
Search Repo:
Traducao do arquivo 68c e pequeno ajuste no 68b
anderson (author)
Thu Jul 24 20:52:29 -0700 2008
commit  9764c30636236ce0ef3c7cec4c6355b0188d65c3
tree    00c5cb9f095bb4088f41cffd0043b21a89aecc2b
parent  05dd969eddb0c347dc186ae69358f833411147bb
...
73
74
75
76
 
77
78
79
...
73
74
75
 
76
77
78
79
0
@@ -73,7 +73,7 @@
0
 
0
              # Ataca o opononte
0
              seu_golpe = rand( forca + arma )
0
- puts "[Seu golpe com #{ seu_golpe } pontos de dano!]"
0
+ puts "[Você golpeia com #{ seu_golpe } pontos de dano!]"
0
              inimigo.golpear( seu_golpe )
0
 
0
              # Retaliação
...
1
 
2
3
4
 
5
6
7
...
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
...
 
1
2
3
 
4
5
6
7
...
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
0
@@ -1,7 +1,7 @@
0
- You have four weapons. The boomerang. The hero's sword. The lettuce. And the bombs.
0
+ Você tem quarto armas. O bumerangue. A espada do herói. A alface. E as bombas.
0
 
0
 
0
- To start off, open up @irb@ and load the libraries we've created above.
0
+ Para fazer acontecer, abra o @irb@ e carregue as bibliotecas que criamos acima.
0
 
0
 
0
         <pre>
0
@@ -10,65 +10,65 @@
0
         </pre>
0
 
0
          
0
- Now, unroll yourself.
0
+ Agora, mostre-se.
0
 
0
 
0
         <pre>
0
- irb> r = Rabbit.new
0
- irb> r.life
0
+ irb> c = Coelho.new
0
+ irb> c.vida
0
            => 10
0
- irb> r.strength
0
+ irb> c.forca
0
            => 2
0
         </pre>
0
 
0
 
0
- Good, good.
0
+ Bom, bom.
0
 
0
 
0
- h3. Rabbit Fights ScubaArgentine!
0
+ h3. O Coelho luta com a ScubaArgentina!
0
 
0
 
0
- You cannot just go rushing into Dwemthy's Array, unseatbelted and merely
0
- perfumed!! You must advance deliberately through the demonic cotillion. Or south,
0
- through the thickets and labyrinth of coal.
0
+ Você não pode ir apressadamente para o Labirinto de Dwemthy, sem cinto de
0
+ segurança e simplesmente perfumado!! Você deve avançar deliberadamente para o
0
+ demoníaco cotilhão. Ou ao sul, pelos bosques e pelo labirinto de carvão.
0
 
0
 
0
- For now, let's lurk covertly through the milky residue alongside the aqueducts. And
0
- sneak up on the @ScubaArgentine@.
0
+ Neste momento, vamos nos esconder dissimuladamente pelo resíduo leitoso ao lado dos
0
+ aquedutos e seguir o @ScubaArgentina@.
0
 
0
 
0
         <pre>
0
- class ScubaArgentine < Creature
0
- life 46
0
- strength 35
0
- charisma 91
0
- weapon 2
0
+ class ScubaArgentina < Criatura
0
+ vida 46
0
+ forca 35
0
+ carisma 91
0
+ arma 2
0
          end
0
         </pre>
0
 
0
 
0
- To get the fight started, make sure you've created one of you and one of the
0
- @ScubaArgentine@.
0
-
0
+ Para começar a luta, certifique-se de que criou um de você e um do
0
+ @ScubaArgentina@.
0
+
0
 
0
         <pre>
0
- irb> r = Rabbit.new
0
- irb> s = ScubaArgentine.new
0
+ irb> c = Coelho.new
0
+ irb> s = ScubaArgentina.new
0
         </pre>
0
 
0
 
0
- Now use the little boomerang!
0
+ Agora use o bumeranguinho!
0
 
0
 
0
         <pre>
0
- irb> r ^ s
0
- [You hit with 2 points of damage!]
0
- #<ScubaArgentine:0x808c864 @charisma=91, @strength=35, @life=44, @weapon=2>
0
- [Your enemy hit with 28 points of damage!]
0
- [Rabbit has died.]
0
+ irb> c ^ s
0
+ [Você golpeia com 2 pontos de dano!]
0
+ #<ScubaArgentina:0x808c864 @carisma=91, @forca=35, @vida=44, @arma=2>
0
+ [Seu inimigo golpeia com 28 pontos de dano!]
0
+ [O Coelho morreu.]
0
         </pre>
0
 
0
 
0
- For crying out loud!! Our sample rabbit died!!
0
+ Para chorar alto!! Nossa amostra de coelho morreu!!
0
 
0
 

Comments

    No one has commented yet.