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

tic tac toe #16

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

tic tac toe #16

wants to merge 8 commits into from

Conversation

sjreich
Copy link

@sjreich sjreich commented Dec 19, 2015

puts "Quitting gracefully..."
print "\n"
sleep 2
%x( ^c )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wat. Are you sending a Ctrl-C into the process to make it quit? I'm not sure if that's awesome or crazy or crazy-awesome.

Perhaps a call to exit would do the job here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hahaha, I was proud of that line. Also, did not know about the exit command.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did this work for you? I can't make it work.

No such file or directory - ^c (Errno::ENOENT)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it did. It spit out a 4-5 line error message, and quite. Hence the 'quitting gracefully'. In any case, now that I know about exit, that's clearly the way to go.

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