Nice code! It's very clean and easy to read. One thing that you might find useful (and probably already know) in line 56 is to use three dots instead of two dots for the range. 0...@sides should give you the same results as long as you're dealing with integers.
Nice code! It's very clean and easy to read. One thing that you might find useful (and probably already know) in line 56 is to use three dots instead of two dots for the range. 0...@sides should give you the same results as long as you're dealing with integers.