Skip to content

Impossible to include other files in the game #52

@GabrielTavarez

Description

@GabrielTavarez

It would be great to have 1 file that contains the game and include other files that contains the structs created in the game.

I was tring to make a game.jl that had "include(snake.jl)".

In game.jl, all the loops and conditions would be verified, while the snake.jl file would have the definition of the struct snake and its methods. But when i try to do "include(snake.jl)" I get "LoadError: UndefVarError: include not defined".

Apperantly, there's no function "include" in gamezero, or it erases the base function from julia. I don't uderstand exactly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions