PurpleKingdomGames / indigo

An FP game engine for Scala.
https://indigoengine.io/
MIT License
611 stars 56 forks source link

LLM suggested syntax improvement: Vertex.random #709

Closed davesmith00000 closed 2 months ago

davesmith00000 commented 3 months ago

I was messing about and ChatGPT hallucinated the existence of Vertex.random(dice, maxX, maxY)... which I sort of like? Maybe it is an extension method for point-like types?

davesmith00000 commented 2 months ago

The work is in #728.

The problem with this work is that there are many many permutations of random 'things' that you might want. So I've tried to provide some generally useful instances but stopped short of trying to provide ways to make any sort of random things. Use cases I've thinking off: