Mar-03-2021, 04:15 AM
def gen_fib(start, length): fib = [0, start] for i in range(length): fib.append(fib[-2] + fib[-1]) return fib print(gen_fib(1, 20))I wrote this sequence generator, but I'm short on ideas of how to interpret this graphically. I want to play with it, see what I can get and hopefully make a puzzle game from what I figure out.
I can use this on the points in a pygame polygons/lines, RGB values... but that's all that comes to mind. I want maybe generate shapes that fit together or something. Don't know. I wrote this function this afternoon, but I haven't really played with it yet.
If I want to make "Fibonacci: The Game", I could use some inspiration for experiments.