doc/RockPaperScissors.html in RPSrb-0.0.8 vs doc/RockPaperScissors.html in RPSrb-0.0.9
- old
+ new
@@ -276,12 +276,12 @@
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">printf</span> <span class="ruby-string">"\nFinal score:\nplayer: %i, computer: %i; (ties: %i).\n\n"</span> <span class="ruby-operator">%</span> [<span class="ruby-ivar">@player_score</span>, <span class="ruby-ivar">@computer_score</span>, <span class="ruby-ivar">@ties</span>]
<span class="ruby-keyword">case</span> <span class="ruby-identifier">final_outcome</span>(<span class="ruby-ivar">@player_score</span>, <span class="ruby-ivar">@computer_score</span>)
<span class="ruby-keyword">when</span> <span class="ruby-value">:WIN</span>
- <span class="ruby-identifier">puts</span> <span class="ruby-string">"\nPlayer wins!\n"</span>
+ <span class="ruby-identifier">puts</span> <span class="ruby-string">"Player wins!\n"</span>
<span class="ruby-keyword">when</span> <span class="ruby-value">:LOSE</span>
- <span class="ruby-identifier">puts</span> <span class="ruby-string">"\nComputer wins!\n"</span>
+ <span class="ruby-identifier">puts</span> <span class="ruby-string">"Computer wins!\n"</span>
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">print</span> <span class="ruby-string">"\n[press the enter/return key to exit game]"</span>
<span class="ruby-identifier">gets</span>
<span class="ruby-identifier">puts</span>
<span class="ruby-keyword">end</span></pre>