Timeline for Solve the Rook's Round Trip
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 8, 2020 at 19:53 | comment | added | Bardic Wizard | I had the bytecount wrong last time, so I updated to use your version @SurculoseSputum. Thanks! I hadn’t thought about the extension and it was fine when saved to a file. | |
Jun 8, 2020 at 19:48 | history | edited | Bardic Wizard | CC BY-SA 4.0 |
I was wrong on the earlier byte count, plus an update
|
Jun 8, 2020 at 18:58 | comment | added | Surculose Sputum | @BardicWizard file name should be irrelevant, as the format is still PNG. You can check that by opening the file in any PNG viewer (or even web browser like Google Chrome). Also I'm not sure why you don't want to change the import statement, as it saves 1 byte. | |
Jun 8, 2020 at 13:52 | comment | added | Bardic Wizard | Thanks for the suggestion on cutting it! I didn’t change the import statement but I did cut the with statement. It didn’t produce a png when written to a file without an extension, or it could have been 4 bytes shorter. | |
Jun 8, 2020 at 13:49 | history | edited | Bardic Wizard | CC BY-SA 4.0 |
Yet another couple bytes shaved off. This is fun!
|
Jun 8, 2020 at 7:02 | comment | added | Surculose Sputum | You can rearrange everything a bit to cut it down to 3815 bytes. | |
Jun 8, 2020 at 5:38 | history | edited | Bardic Wizard | CC BY-SA 4.0 |
I shortened it a little more!
|
Jun 7, 2020 at 4:52 | comment | added | Bardic Wizard | I removed c.close() and defining b and a, but on my editor it wouldn’t run without the with statement. I don’t know how to use the base64.decode(), but I can look it up. Thank you for the help! | |
Jun 7, 2020 at 4:47 | history | edited | Bardic Wizard | CC BY-SA 4.0 |
Shortened.
|
Jun 7, 2020 at 4:30 | comment | added | the default. |
Would it be shorter to store the PNG in a bytestring directly, escaping all offending characters? (there's also base64.b85encode and base64.b8decode ; these seem to be better than base64) Besides, you can remove c.close() , and the with statement seems unnecessary because the program will shortly exit and close everything anyway. You can also skip the definitions of b and a and simply use c.write(a2b_base64("long_string")) .
|
|
Jun 7, 2020 at 4:26 | review | First posts | |||
Jun 7, 2020 at 4:35 | |||||
Jun 7, 2020 at 4:19 | history | answered | Bardic Wizard | CC BY-SA 4.0 |