title: I am trying to make "Game of Set" but don't know how to correctly check the set
body: <p>Hi so I just started to learn coding and <strong>ruby</strong> is my first language. I am trying to make a game called &quot;Game of Set&quot; the rules can be checked in <a href="http://magliery.com/Set/SetRules.html" rel="nofollow noreferrer">here</a> or <a href="https://en.wikipedia.org/wiki/Set_(card_game)" rel="nofollow noreferrer">wikipedia</a></p>
  <p>I am able to get users cards and enter them in different arrays. However, I have been spending a lot of time trying to figure out how to validate the set. I tried to compare the arrays index by index but the result is not what I wanted.
  Example:</p>
  <pre><code>first = ['two', 'purple', 'stripe', 'diamond']
  second = ['one', 'purple', 'solid', 'diamond']
  third = ['three', 'purple', 'empty', 'diamond']
  </code></pre>
  <p>this should be correct because all are purple, all are diamond, different number, and different filters.</p>
  <pre><code>first = ['one', 'green', 'stripe', 'squiggle']
  second = ['one', 'purple', 'solid', 'diamond']
  third = ['two', 'green', 'empty', 'oval']
  </code></pre>
  <p>This is wrong because because two have the same number and one does not, similarly with the color.</p>
  <p>This is the game of set that I want to achieve <a href="https://www.setgame.com/set/puzzle" rel="nofollow noreferrer">here</a></p>
  <p>Please help thank you!</p>