<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'I'm having trouble making ruby guessing game.' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'I'm having trouble making ruby guessing game.' posted on the 'Ruby' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Thu, 24 May 2012 00:51:43 -0700</pubDate>
    <lastBuildDate>Thu, 24 May 2012 00:51:43 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>I'm having trouble making ruby guessing game.</title>
      <link>http://www.programmersheaven.com/mb/ruby/402264/402264/im-having-trouble-making-ruby-guessing-game/</link>
      <description>I can't seem to make my program loop to make it continuously ask the user to guess the number. &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ruby/402264/402264/im-having-trouble-making-ruby-guessing-game/</guid>
      <pubDate>Tue, 06 Oct 2009 08:12:11 -0700</pubDate>
      <category>Ruby</category>
    </item>
    <item>
      <title>Re: I'm having trouble making ruby guessing game.</title>
      <link>http://www.programmersheaven.com/mb/ruby/402264/410270/re-im-having-trouble-making-ruby-guessing-game/#410270</link>
      <description>I hope that someone can help you soon.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ruby/402264/410270/re-im-having-trouble-making-ruby-guessing-game/#410270</guid>
      <pubDate>Thu, 03 Dec 2009 12:41:49 -0700</pubDate>
      <category>Ruby</category>
    </item>
    <item>
      <title>This post has been deleted.</title>
      <link>http://www.programmersheaven.com/mb/ruby/402264/410271/this-post-has-been-deleted/#410271</link>
      <description>This post has been deleted.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ruby/402264/410271/this-post-has-been-deleted/#410271</guid>
      <pubDate>Thu, 03 Dec 2009 12:43:36 -0700</pubDate>
      <category>Ruby</category>
    </item>
    <item>
      <title>Re: I'm having trouble making ruby guessing game.</title>
      <link>http://www.programmersheaven.com/mb/ruby/402264/425616/re-im-having-trouble-making-ruby-guessing-game/#425616</link>
      <description>Here is an example:&lt;br /&gt;
&lt;br /&gt;
max = 10&lt;br /&gt;
if ARGV.size &amp;gt; 0&lt;br /&gt;
  max = ARGV[0].to_i&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
puts "I'm choosing a number between 1 and #{max}"&lt;br /&gt;
num = rand(max) + 1&lt;br /&gt;
loop do&lt;br /&gt;
  print "Enter guess: "&lt;br /&gt;
  reply = STDIN.gets.chomp.to_i&lt;br /&gt;
  if reply == num&lt;br /&gt;
    puts "You guessed it"&lt;br /&gt;
    break&lt;br /&gt;
  elsif num &amp;lt; reply&lt;br /&gt;
    puts "Lower"&lt;br /&gt;
  else&lt;br /&gt;
    puts "Higher"&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/ruby/402264/425616/re-im-having-trouble-making-ruby-guessing-game/#425616</guid>
      <pubDate>Sun, 06 Nov 2011 15:39:59 -0700</pubDate>
      <category>Ruby</category>
    </item>
  </channel>
</rss>
