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

Added game_include to allow for the inclusion of other files. #22

Closed
wants to merge 1 commit into from

Conversation

scottbigbrain
Copy link
Contributor

The way that the game is currently running makes it so that you cannot include other files using julia's built in include("foo.jl"). This PR is a patch for that that creates the function game_include to get around this. It will run any wanted inclusion that is done in the form game_include("foo.jl"). This is a somewhat hacky workaround, but it works just fine until we can find a better way to run the game.

@dustyirwin
Copy link
Contributor

Thank you for this! I was running into the same issue and this has eliminated several "conflicts with an existing identifier" warning messages.

@scottbigbrain
Copy link
Contributor Author

Thank you so much! This problem was driving me crazy as well, I'm glad that my code helped you with it. It's only like two lines, but it took me a day to figure out a fix.

@dustyirwin dustyirwin mentioned this pull request Nov 1, 2020
@dustyirwin
Copy link
Contributor

Time well spent, friend :)

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

Successfully merging this pull request may close these issues.

2 participants