Timeline for Build a chessboard
Current License: CC BY-SA 4.0
22 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 2, 2020 at 11:15 | history | edited | lyxal | CC BY-SA 4.0 |
Fixed up the header to make it fit in with the other answers.
|
Dec 2, 2020 at 5:54 | comment | added | agent355 | Let us continue this discussion in chat. | |
Dec 2, 2020 at 5:53 | comment | added | agent355 | Doesnt work @Lyxal gyazo.com/0fbe2379d56f30e9881a3fe940291de7 | |
Dec 2, 2020 at 5:50 | comment | added | lyxal | 232 bytes, verified by running it locally | |
Dec 2, 2020 at 5:48 | comment | added | lyxal |
It wasn't working because I forgot to re-include the part which dynamically chooses the colour (D+G ) which I removed to test my refactoring.
|
|
Dec 2, 2020 at 5:48 | comment | added | lyxal | Alright, this works for 241 bytes | |
Dec 2, 2020 at 5:40 | comment | added | agent355 | @Lyxal gyazo.com/d0c985048b2883e9dd24553556e80348 look at this, it doesn't fill them | |
Dec 2, 2020 at 3:35 | history | edited | agent355 | CC BY-SA 4.0 |
lol
|
Dec 2, 2020 at 0:52 | comment | added | mehbark |
I believe you can shave 3 bytes by using from turtle import* and then H=Screen() A=Turtle()
|
|
Dec 1, 2020 at 16:09 | comment | added | Danis |
the last for loop can be written like this for G in B(8):A.fillcolor('white'if(D+G)%2else'black');A.begin_fill();F();A.end_fill()
|
|
Dec 1, 2020 at 15:24 | comment | added | agent355 | gyazo.com/d0c985048b2883e9dd24553556e80348 Does not work | |
Dec 1, 2020 at 15:22 | history | edited | agent355 | CC BY-SA 4.0 |
changed solution
|
Dec 1, 2020 at 15:04 | comment | added | Razetime |
@agent355 just change the last ' to )
|
|
Dec 1, 2020 at 12:47 | comment | added | agent355 | @Lyxal It gives an error i.imgur.com/KOaiOEl.png | |
Dec 1, 2020 at 10:09 | comment | added | lyxal | 269 by refactoring the if statement | |
Dec 1, 2020 at 6:50 | history | edited | agent355 | CC BY-SA 4.0 |
made better :)
|
Dec 1, 2020 at 6:43 | review | Late answers | |||
Dec 1, 2020 at 9:38 | |||||
Dec 1, 2020 at 6:32 | comment | added | agent355 | oh, thanks :) will edit | |
Dec 1, 2020 at 6:27 | review | First posts | |||
Dec 1, 2020 at 8:08 | |||||
Dec 1, 2020 at 6:27 | comment | added | Razetime |
forward can become fd , left to lt , down to pd . You can probably remove the definition of G since it has no parameters as well, including in main program. Since the background is white, you don't need the else statement.
|
|
Dec 1, 2020 at 6:27 | history | edited | agent355 | CC BY-SA 4.0 |
added output
|
Dec 1, 2020 at 6:21 | history | answered | agent355 | CC BY-SA 4.0 |