title: Ruby - how to refer to all elements within an array
body: <p>I have my array: </p>
  
  <pre><code>array = Array.new(10) { Array.new(10 , 0)}
  </code></pre>
  
  <p>Which when printed out contains a 10x10 grid of 0s.</p>
  
  <p>During the programme some of the elements of the array are replaced with "."</p>
  
  <p>The user then has to change all the elements which contain "." so that they contain "x".</p>
  
  <p>So I'm trying to make a loop which keeps asking the user to input numbers which refer to elements until the array contains no more "."s and puts "Game Over"</p>
  
  <p>Therefore I need to make a loop which keeps going until all elements of the array are not equal to "." 
  So this is what I came up with which doesn't work</p>
  
  <pre><code>until array != "." do
  </code></pre>
  
  <p>Sorry, I have very little knowledge of Ruby so my terminology isn't great.</p>
  
  <p>Thank you! :)</p>