Forums - Open Redstone Engineers
This terminal is crazy, it will melt your brain - Printable Version

+- Forums - Open Redstone Engineers (https://forum.openredstone.org)
+-- Forum: Off-Topic (https://forum.openredstone.org/forum-4.html)
+--- Forum: Programming (https://forum.openredstone.org/forum-8.html)
+--- Thread: This terminal is crazy, it will melt your brain (/thread-1800.html)



This terminal is crazy, it will melt your brain - Konstacon - 12-31-2013

Go bite into your ice cream, because this terminal will melt your brain (teehee). I wrote this terminal in python as a mini project to help me code, but I hope one day I can turn it into something serious. ANYWAYS, here's some screenshots:

[Image: FLIEJUI.jpg]

It can also run games with its very own gm command. The only built-in game is hangman (ran by typing in "gm hangman.py" in the console).

NOTICE: THIS USES PYTHON 2.7

Welp, go ahead and download it if you want at this thingy website

Love you guys!


RE: This terminal is crazy, it will melt your brain - Chibill - 12-31-2013

Himehowareu made something like this called Pyterm and I made JTerm together we are making JyOS using the Linux kernel and jython and some other stuff.


RE: This terminal is crazy, it will melt your brain - VirtualPineapple - 01-01-2014

At least upload all the files in konix zip to github. Don't just link it to a mediafire download page or else that's a waste of a repository.


RE: This terminal is crazy, it will melt your brain - Malcolmforde - 01-01-2014

yuwasteurrepo?


RE: This terminal is crazy, it will melt your brain - Chibill - 01-01-2014

NOT AN OS! update your page on your github. its a Terminal or Command line


RE: This terminal is crazy, it will melt your brain - David - 01-01-2014

is this an actual os or just an app for windows (or any other os)?


RE: This terminal is crazy, it will melt your brain - Malcolmforde - 01-02-2014

Hangman:

Why do you have the hangman game code in a while loop controlled by a variable changed at the end of the game? You should just have "while True", and if the player chooses not to play again it runs exit(), like this:

Code:
option = None
while True:
    #Ur sexy code here
    while option != "Y" and option != "N":
        option = str(raw_input("Would you like to continue? [Y/N] "))
        if option.upper() == "N":
            exit()
        elif option.upper() != "Y" and option.upper() != "N":
            print "Not an option!"
        else:
            break



RE: This terminal is crazy, it will melt your brain - AFtExploision - 01-02-2014

(01-02-2014, 02:57 AM)Malcolmforde Wrote: Hangman:

Why do you have the hangman game code in a while loop controlled by a variable changed at the end of the game? You should just have "while True", and if the player chooses not to play again it runs exit(), like this:

Code:
option = None
while True:
    #Ur sexy code here
    while option != "Y" and option != "N":
        option = str(raw_input("Would you like to continue? [Y/N] "))
        if option.upper() == "N":
            exit()
        elif option.upper() != "Y" and option.upper() != "N":
            print "Not an option!"
        else:
            break

Too smart. I would literally make one loop like this and another like snug did because I'm a derp


RE: This terminal is crazy, it will melt your brain - Malcolmforde - 01-02-2014

(01-02-2014, 03:09 AM)AFtExploision Wrote:
(01-02-2014, 02:57 AM)Malcolmforde Wrote: Hangman:

Why do you have the hangman game code in a while loop controlled by a variable changed at the end of the game? You should just have "while True", and if the player chooses not to play again it runs exit(), like this:

Code:
option = None
while True:
    #Ur sexy code here
    while option != "Y" and option != "N":
        option = str(raw_input("Would you like to continue? [Y/N] "))
        if option.upper() == "N":
            exit()
        elif option.upper() != "Y" and option.upper() != "N":
            print "Not an option!"
        else:
            break

Too smart. I would literally make one loop like this and another like snug did because I'm a derp
But there is a problem with it.
"option = None" needs to be in the loop too. Just noticed that.