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

How to load files #1

Closed
ghost opened this issue May 11, 2020 · 4 comments
Closed

How to load files #1

ghost opened this issue May 11, 2020 · 4 comments

Comments

@ghost
Copy link

ghost commented May 11, 2020

Hello dear,

How can somebody load files in the repl? Could you explain a little bit more precisle?
I follow you and wish you success.

Thanks and regards.

Timo

@andre-1337
Copy link

I'm not a maintainer of this repository, but to load files you simply type :load filename.extension in the REPL. The file should be imported into the current environment and you should be able to access defined classes from the REPL :)

@ghost
Copy link
Author

ghost commented May 17, 2020

Thanks, but when I load for example the guessnumber sample into the repl, how do I can start the game?

Sorry for my dumbness but I’m right now really lost.

Thanks and regards
Timo

@andre-1337
Copy link

you simply load the file and once the REPL says that the class GuessNumber is defined, you just do new GuessNumber().play() and you're set :)

@ghost
Copy link
Author

ghost commented Jun 2, 2020

Thanks bro👊🏻

@ghost ghost closed this as completed Jun 2, 2020
This issue was closed.
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

No branches or pull requests

1 participant