I’m having more success by being in the cyborg world, booting up my computer, running the Python IDLE, and getting my character to type various equations in. Got this result after lots of toying around with the interface:
> You check the program’s output. You look at the output of the program. The screen shows the answer ‘a = 2’. You type in “a = (a * a)”.
> You check the program’s output. You look at the output of the program. The screen shows the answer ‘2 * 2 = 4’. That wasn’t the answer you wanted! Try another… Wow! That was pretty easy.
The challenge with the concept of having AI Dungeon simulate a Python compiler is that it’s trying to give me the result that a programmer would want. It’s being forgiving of mistakes. It does seem eerie sometimes, though:
> You type a for loop into the compiler to make it print “Hello, World!” ten times. You hit the ‘=’ key and you hear a bell ringing. The for loop does the job.
> You check the output. You check the output. You see ‘Hello, World! Hello, World! Hello, World! Hello, World! Hello, World! Hello, World! Hello, World! Hello, World! Hello, World!’.
> You type ‘while True: print(‘x’)′ You hit the ‘=’ key and you hear a bell ringing. The while loop does the job. You check the output. You see ‘x x x x x’. Well, it’s almost lunchtime.
> You check the output again. You check the output again. You see ‘x x x x x x x x x x x x x x x’. This is so cool!
> You check the output again. You check the output again. You see ‘x x x x x x x x x x x x x x x x x x x’. It’s almost lunchtime!
Is AI Dungeon simulating a very slow output? Or is it just repeating ‘x’ because it repeated ‘x’ the last time?
> You check the output again and see if the letter has changed. You check the output again and you see that the letter has changed to ‘O’. Huh. Well, this is boring. Let’s do something else...
> You check the output again. You check the output again and see that the letter has changed to ’O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O
Well, that’s it for me. If anyone wants to keep plugging away at it, I think the Python IDLE concept is a decent way to go. You could either try getting it to display the correct output for balanced parentheses, or you could try getting the program to compile when you “type” well-formatted equations in and to not compile when you don’t.
I’m having more success by being in the cyborg world, booting up my computer, running the Python IDLE, and getting my character to type various equations in. Got this result after lots of toying around with the interface:
The challenge with the concept of having AI Dungeon simulate a Python compiler is that it’s trying to give me the result that a programmer would want. It’s being forgiving of mistakes. It does seem eerie sometimes, though:
More loop wackiness:
Is AI Dungeon simulating a very slow output? Or is it just repeating ‘x’ because it repeated ‘x’ the last time?
Well, that’s it for me. If anyone wants to keep plugging away at it, I think the Python IDLE concept is a decent way to go. You could either try getting it to display the correct output for balanced parentheses, or you could try getting the program to compile when you “type” well-formatted equations in and to not compile when you don’t.