Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide example files #39

Open
ivaaane opened this issue Aug 7, 2024 · 2 comments
Open

Provide example files #39

ivaaane opened this issue Aug 7, 2024 · 2 comments
Labels
good first issue Good for newcomers

Comments

@ivaaane
Copy link

ivaaane commented Aug 7, 2024

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.

@aspizu aspizu added the good first issue Good for newcomers label Aug 8, 2024
@Poly2it
Copy link
Contributor

Poly2it commented Aug 8, 2024

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?

@ivaaane
Copy link
Author

ivaaane commented Aug 8, 2024

@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;
        }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants