# Eternity Async Tutoring

**URL:** https://discuss.criticalfallibilism.com/t/eternity-async-tutoring/1932
**Category:** Tutoring
**Created:** [April 17, 2024, 11:22pm UTC](https://discuss.criticalfallibilism.com/t/eternity-async-tutoring/1932 "2024-04-17T23:22:52Z")
**Posts on this page:** 1
**Showing post:** 839

<div class="post-metadata">

### Author: ![Eternity](https://discuss.criticalfallibilism.com/user_avatar/discuss.criticalfallibilism.com/eternity/32/5930_2.png) [@Eternity](https://discuss.criticalfallibilism.com/u/Eternity)
#### Post date: [March 3, 2025, 5:16am UTC](https://discuss.criticalfallibilism.com/t/eternity-async-tutoring/1932/839 "2025-03-03T05:16:36Z")

</div>

For

```auto
def find_all_pairs(hand)
  # returns an empty array for no pairs, otherwise an array with the ranks of the pairs found. cards can't be reused in multiple pairs, so 3 jacks form one pair and 4 jacks form 2 pairs.
  hand_ranks = hand_to_ranks(hand)
  # more code
end

```

I can’t find anything that I think would be helpful. My plan is just to use a bunch of if statements. Something like “if hand[0] = hand[1]” and do that to check for every pair. I’m going to try this way tomorrow to see if it even works but any other suggestion?

---

_[View the full topic](https://discuss.criticalfallibilism.com/t/eternity-async-tutoring/1932)._
