goboscript icon indicating copy to clipboard operation
goboscript copied to clipboard

Provide example files

Open ivaaane opened this issue 1 year ago • 2 comments

It'd be very useful if the repository included a directory with example general projects written in goboscript, like small games, applications, algorithms and so.

ivaaane avatar Aug 07 '24 11:08 ivaaane

It'd be very useful if the repository included a directory with example general projects written in goboscript, like small games, applications, algorithms and so.

This is a good idea. Maybe this issue could act as a place to share code which we think would be useful in such examples? Do you have any code which documents interesting use of goboscript?

poly2it avatar Aug 08 '24 14:08 poly2it

@Poly2it Honestly, it is hard for me to start using a new tool if I can't have a real reference of how it is used, no matter the documentation. But maybe something simple in the lines of:

def fibonacciSequence arg
{
        fib = [0, 1];
        i = 3;
        repeat $arg
        {
                fib.add fib[i- 1] + fib[i- 2];
        }
}

onflag
{
        fibonacciSequence 10;
        i = 1
        repeat 10
        {
                say fib[i];
                wait 3;
        }
}

ivaaane avatar Aug 08 '24 19:08 ivaaane