triangles refactored

Thank you Github app
`Avoid multiple assignments per line`  

https://github.com/thoughtbot/guides/tree/master/style#ruby