Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
ah perhaps it's wiki french page?
I undertsand but I've choosen 2d array of char because it's easier to plot pixels
But to show result I think it's more clear as unique string with \n because it looks like a screen of big pixels.
The sample code as already the good return written
I've done some text modification
Thanks for feed back
Because the algorithm doesn't need it
eval was not desactivated because it's not really interessing here. It's not like in some kata where the goal is to eval arithmetic expression.
Tests updated. Code checks tests fails now
Thanks I think the issue is fixed now
Still in beta after 6 years ok
You're not really doing Bresenham in your solution because you use * / float
Perhaps i should add some advice and some check for that (using only + - integer bit shifting)
Yes but mine is different because you plot the pixels on the virtual screen and see the result.
The duplicate is very old and still in beta...
You're right but with Bresenham Line Algorithm you should have the second one if you draw from 0,1 to 2,0 and the first one if you draw from 2,0 to 0,1.
I've changed title of kata to indicate that Bresenham algorithm should be used and order matter because not so easy with random test to have multiple solutions...
Thanks for feed back
The task is to draw the line on screen using color. Perhaps I should precise bresenham...