Skip to content

Instantly share code, notes, and snippets.

@itzsaga
Created March 3, 2017 19:10
Show Gist options
  • Select an option

  • Save itzsaga/8512bc5642188b1b72d6a1d5204093c5 to your computer and use it in GitHub Desktop.

Select an option

Save itzsaga/8512bc5642188b1b72d6a1d5204093c5 to your computer and use it in GitHub Desktop.
The solution to my ternary problem
puts draw?(board) ? "Cats Game!" : "Congratulations #{winner(board)}!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment