Search found 6 matches

by UOOP
Wed Jan 31, 2018 4:30 am
Forum: Scripts & Bash
Topic: Writing a text adventure game in BASH
Replies: 8
Views: 1231

Re: Writing a text adventure game in BASH

You should also most definitely, absolutely, undeniably use at the very least some standard indentation. :P I wouldn't be happy until it looked like this, regarding fairly standard indentation: while read -p "-->" var; do if [ "$var" = "buy item" ]; then if (add command to verify file is present in...
by UOOP
Wed Jan 31, 2018 4:21 am
Forum: Scripts & Bash
Topic: Writing a text adventure game in BASH
Replies: 8
Views: 1231

Re: Writing a text adventure game in BASH

I know how to move an "item" from one location to another with mv, but what I cannot figure out is how to echo "Item not available" if the player were to try and purchase the said "item" again. which command could I use to check for the item and if it's not held within the chosen directory or file,...
by UOOP
Tue Jan 30, 2018 12:02 pm
Forum: Open chat
Topic: This forum is FRIENDLY....
Replies: 35
Views: 2074

Re: This forum is FRIENDLY....

I just registered to this forum. I switched to Linux mint 18.3 from Windows 10 and haven't looked back! Really loving the versatility with Linux. I have found answers to all of my issues/questions from this site and this forum is one of the only ones that still remains active (daily/hourly/etc), wh...
by UOOP
Mon Jan 29, 2018 3:40 pm
Forum: Chat about Linux
Topic: Who no longer uses Windows?
Replies: 61
Views: 5785

Re: Who no longer uses Windows?

I just recently switched from Windows 10 to Linux Mint 18.3 a few months back and man am I glad I did that! :lol: I had a buddy years ago who had a Linux machine (I think it was Read Hat) and I thought it was the coolest thing. Years later, on a Windows machine, I decided to dual boot Linux Mint. Af...
by UOOP
Mon Jan 29, 2018 3:20 pm
Forum: Scripts & Bash
Topic: Writing a text adventure game in BASH
Replies: 8
Views: 1231

Writing a text adventure game in BASH

So I am working on a text adventure game which I am writing in BASH. I am having some issues with trying to code my shop: I know how to move an "item" from one location to another with mv, but what I cannot figure out is how to echo "Item not available" if the player were to try and purchase the sai...
by UOOP
Mon Jan 29, 2018 2:59 pm
Forum: Open chat
Topic: This forum is FRIENDLY....
Replies: 35
Views: 2074

Re: This forum is FRIENDLY....

I just registered to this forum. I switched to Linux mint 18.3 from Windows 10 and haven't looked back! Really loving the versatility with Linux. I have found answers to all of my issues/questions from this site and this forum is one of the only ones that still remains active (daily/hourly/etc), whi...

Go to advanced search