A good attempt. Have a go a refactoring your code so that:
i) You have the following code above the while loop, so that you avoid assigning the number variable to 0:
  print "I am thinking of an integer between 0 and 10... what number am I thinking of? "
  num = gets.chomp.to_i
ii) Include an if else statement inside of the loop to check if the use needs to guess higher or lower;