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

Weird Logic Error

Started by BlankWolf, 03 September 2013 - 02:04 AM
BlankWolf #1
Posted 03 September 2013 - 04:04 AM
Hello every one,
its me again.

Currently i'm working on a program for a turtle du build or dig (atm) a circle or sphere which is hollow or filled.
I think my math is correct and it works for the circle. But when I calculate a hollow sphere, all layers above 0 will be complete filled.

I can't figure out why that happens.
Becaus the turtle screen is to small for coding and testing I use codepad.

It will be awesome if some on could help me.

- BW

EDIT:
remove the link to the file
BlankWolf #2
Posted 04 September 2013 - 03:01 AM
Well I figure out what was wrong.
Thanks for looking in here.

- BW

can be closed.
theoriginalbit #3
Posted 04 September 2013 - 03:07 AM
Well I figure out what was wrong.
Perhaps you should post what was wrong so that if anyone else has a similar issue in the future they can see how you solved it

EDIT: Also threads don't get closed in AaP very often
Edited on 04 September 2013 - 01:07 AM
BlankWolf #4
Posted 04 September 2013 - 03:12 AM
Perhaps you should post what was wrong so that if anyone else has a similar issue in the future they can see how you solved it

EDIT: Also threads don't get closed in AaP very often

Well your right…
But in that case I don't think so.
The only thing I can say is:
Think about what you has done and use prints to locate the bug.