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

computercraft test

Started by emezer5, 17 February 2015 - 01:13 AM
emezer5 #1
Posted 17 February 2015 - 02:13 AM
Write a code snippet which will turn on the green bundled output cable on the left side of the computer on, wait for 5 seconds, and then turn it off. *
i have no idea how i am supose to answer this and i am noob please help me answer this


and another question

How would you write a repeated synchronous operation for a pong game? *
which of these answer is it

1. Use disk read and write functions to move the paddles sequentially.
2. Spawn a thread to run the GUI.
3. Write a "while" loop.
Lyqyd #2
Posted 17 February 2015 - 06:20 AM
What is this for? We can help you with your existing code that you're having troubles with, but this seems homework-like, and that's not what we're here for.
Bomb Bloke #3
Posted 17 February 2015 - 10:58 AM
Bundled cables are a fancy form of redstone dust trails. Take a look here, you'll soon find what you need.

In regards to your paddles, the question is asking how you'd go about repeating code - how to do something over and over. Take another read through the options and think about what each is suggesting. If you're still stuck, do some searches around Lua's control structure.