Mandelbrot Set

Back to General discussions forum

CSFPython     2023-06-28 17:55:03

I think there might be a mistake in the instructions. We are instructed to use the following command to input the value of X0:

x0_re, x0_im = input('*n', '*n')

Not being familiar with Lua, I assumed that this was a standard Lua command. It may well be but my program didn't pass the checker until I changed it to io.read instead.

Rodion (admin)     2023-06-28 18:00:52
User avatar

Oh, sure! I stumble upon this consistently every time... Obviously can't get familiar with Lua myself still...

Thank you, Clive, for the correction and so speedy verification of the problem!

gardengnome     2023-07-05 03:30:24
User avatar

Hi, I don't think the point (400, 300) is part of the display, and thus the drawing loop should be like this:

for y = 0, scrH - 1 do
    for x = 0, scrW - 1 do
        ...
    end
end
Rodion (admin)     2023-07-05 05:44:21
User avatar

ah, sure, thanks and sorry :( fixed in description!

gardengnome     2023-07-05 06:04:32
User avatar

Thanks - no need for any sorry. :)

Please login and solve 5 problems to be able to post at forum