This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Symmetryc's profile picture

You Can't ComputerCraft, Under Pressure!

Started by Symmetryc, 24 December 2013 - 01:18 PM
Symmetryc #1
Posted 24 December 2013 - 02:18 PM
Hi guys, recently BIT showed me You Can't JavaScript, Under Pressure, so I decided to make my own version for ComputerCraft. The code is really sloppy 'cuz BIT was making me CC under pressure :P/> (jk). Anways, here it is:

http://pastebin.com/pa7K1DU2

Video + Screenshots:
Spoiler



[media]http://www.youtube.com/watch?v=axryblz9ArM&feature=youtu.be[/media]
Enjoy!
Edited on 25 December 2013 - 12:16 PM
oeed #2
Posted 24 December 2013 - 02:31 PM
Nice idea!

I can see this, or somting similar, being used as a CC education tool, a bit like Codeacademy.


In fact…. You've got me thinking…
Symmetryc #3
Posted 24 December 2013 - 02:36 PM
Nice idea!

I can see this, or somting similar, being used as a CC education tool, a bit like Codeacademy.


In fact…. You've got me thinking…
Yeah sometime ago I had an idea to make a game where you have to go from place to place and solve problems in the game world by writing code and you'd also pick up "clues" which would teach you something about Lua that could applied to your next problem.
Edited on 24 December 2013 - 01:36 PM
MKlegoman357 #4
Posted 24 December 2013 - 03:43 PM
Really nice! One thing, shouldn't 'Return the y-axis cursor position' be 'Return the height of the terminal'? I was stuck when I tried to find out why there is no term.getCursorPos function.

I also have some suggestions:
  • Fix typing GUI. It's very buggy, difficult to use. Strange system you have there - putting spaces to go to next line. Why didn't you just put everything into a table?
  • Add a way to exit/cancel a task so when I'm stuck I wouldn't need to terminate the program.
  • Maybe add that timer to GUI so I could see how long I've been writing that code.
  • Help/Tip/Clue to help solving a challenge. (I don't even know how BASE 10/BASE 8 works/is made | but I know what they are)
  • A countdown or a button so I could prepare for the first/next challenge.
  • Moar challenges!!! :D/>
Symmetryc #5
Posted 24 December 2013 - 03:49 PM
Really nice! One thing, shouldn't 'Return the y-axis cursor position' be 'Return the height of the terminal'? I was stuck when I tried to find out why there is no term.getCursorPos function.

I also have some suggestions:
  • Fix typing GUI. It's very buggy, difficult to use. Strange system you have there - putting spaces to go to next line. Why didn't you just put everything into a table?
  • Add a way to exit/cancel a task so when I'm stuck I wouldn't need to terminate the program.
  • Maybe add that timer to GUI so I could see how long I've been writing that code.
  • Help/Tip/Clue to help solving a challenge. (I don't even know how BASE 10/BASE 8 works/is made | but I know what they are)
  • A countdown or a button so I could prepare for the first/next challenge.
  • Moar challenges!!! :D/>
@ Y-axis thing - Crap, will fix
1. Yeah I know, I actually made a challenge with BIT to complete it in 2 hours, so I was just "yolo" and didn't care :P/>, will fix later on.
2. I actually put that because that's how the actual JS version works (it wants you to keep going until you get it right)
3. Ok
4. The screen is too small and that would make it too easy, sorry.
5. Ok
6. I couldn't come up with any more :P/>.

Edit:
@Y-axis thing - Done
1. Didn't feel like redoing it, added up / down functionality with the arrow keys to compensate
3. Done
5. Done
Edited on 24 December 2013 - 03:59 PM
Symmetryc #6
Posted 25 December 2013 - 11:28 AM
Updated with video :D/>
MKlegoman357 #7
Posted 25 December 2013 - 12:26 PM
Nice :D/>

But why is the timer after the first task running so fast?
Symmetryc #8
Posted 25 December 2013 - 12:59 PM
Nice :D/>

But why is the timer after the first task running so fast?
Sorry, removed that. Thanks!
lieudusty #9
Posted 25 December 2013 - 09:10 PM
You should sing the theme song for it :P/>
Symmetryc #10
Posted 25 December 2013 - 09:25 PM
You should sing the theme song for it :P/>
I have a really ugly voice though and I don't have a mic atm :(/>.
lieudusty #11
Posted 25 December 2013 - 09:34 PM
You should sing the theme song for it :P/>
I have a really ugly voice though and I don't have a mic atm :(/>.

Its worth a try :)/>
Symmetryc #12
Posted 25 December 2013 - 09:37 PM
You should sing the theme song for it :P/>
I have a really ugly voice though and I don't have a mic atm :(/>.

Its worth a try :)/>
It's worth a try without a mic? :P/>
Edited on 25 December 2013 - 08:37 PM
TheOddByte #13
Posted 28 December 2013 - 03:21 PM
Wow this is very cool but it seems very buggy atm, Or have you updated it? Since I tested this pretty much when it was released so you may have fixed the reading stuff that is kinda buggy.
Symmetryc #14
Posted 28 December 2013 - 06:46 PM
Wow this is very cool but it seems very buggy atm, Or have you updated it? Since I tested this pretty much when it was released so you may have fixed the reading stuff that is kinda buggy.
I'm not sure what you mean by "reading stuff", but most of the outstanding bugs have been fixed since release. The only one I can think of that hasn't been fixed is the enter bug which I've been too lazy to. I'll fix this soon however.

Update: I've decided to turn this into a CCLua Tutorial type think, if anyone thinks they could lend a hand, please send me a PM, thanks!
Edited on 28 December 2013 - 05:48 PM
TheOddByte #15
Posted 28 December 2013 - 09:10 PM
Well.. I kinda meant the enter bug that's related to "reading stuff" I was just too lazy to specifiy before :P/>
Symmetryc #16
Posted 28 December 2013 - 10:07 PM
Well.. I kinda meant the enter bug that's related to "reading stuff" I was just too lazy to specifiy before :P/>/>
Yeah I'm on vacation atm so I've been really reluctant to fix it, but I will make sure to do so soon.