Off Topic > Off Topic
Programming Megathread
Ravencroft·:
--- Quote from: $trinick on March 31, 2016, 08:04:58 PM ---Check if both opposing sides are the same.
if(a == c && b == d) { cout << "It's a rectangle!"; }
Otherwise, it's a polygon.
--- End quote ---
Yeah but what if, for example, a=2, b=2, c=4, and d=4? Your suggestion wouldn't work. The program has to be able to check any set of numbers in any order.
Edit: Just saw your edit. I'll try it out, thanks!
$trinick:
--- Quote from: Ravencroft· on March 31, 2016, 08:10:54 PM ---Yeah but what if, for example, a=2, b=2, c=4, and d=4? Your suggestion wouldn't work. The program has to be able to check any set of numbers in any order.
Edit: Just saw your edit. I'll try it out, thanks!
--- End quote ---
Idk why that post in particular was loving with me but I kept editing it to make it more clear.
HooperScooper:
I can only code in scratch and smilebasic
but I'm great at scratch
Kingdaro:
If you can do that in scratch, you should really look into using other programming languages. Like, damn.
HooperScooper:
--- Quote from: Kingdaro on March 31, 2016, 08:30:09 PM ---If you can do that in scratch, you should really look into using other programming languages. Like, damn.
--- End quote ---
its hard to compile others and I dont know anything about command line
I would do it if it had a built in compiler and some code snippets (so I can understand some code)
heres a video of the renderer in action (I also play around with the code while running it, causing all the skewing since it goes out of sync)
I also sped it up by replacing the custom block with the pen shade block.
here it is