PurpleKingdomGames / indigo

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

LLM suggested syntax improvement: Vertex.random #709

Closed davesmith00000 closed 7 months ago

davesmith00000 commented 8 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 7 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: