Timeline for Make a Bubble-wrap simulator
Current License: CC BY-SA 3.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 13, 2017 at 19:19 | history | edited | Arya | CC BY-SA 3.0 |
deleted 6 characters in body
|
Mar 13, 2017 at 15:05 | comment | added | Arya | Ok - I've made it a function of H and W now. | |
Mar 13, 2017 at 15:01 | history | edited | Arya | CC BY-SA 3.0 |
Made it a fn
|
Mar 13, 2017 at 14:30 | comment | added | Kevin Cruijssen | Yes, both functions with the expected parameters as well as full programs are allowed by default, unless the question states otherwise. | |
Mar 13, 2017 at 14:24 | comment | added | Arya | @KevinCruijssen the Python3 one above me just has it as a function of w,h, is that allowed? | |
Mar 13, 2017 at 9:22 | comment | added | Kevin Cruijssen | Also, regarding your comment: "I could save a few characters by not having a newline between the pops but that just looks ugly." No matter how ugly or how not-done it is in real-life programming, codegolf is about saving as much bytes as possible. The shorter and uglier, the better. ;) | |
Mar 13, 2017 at 9:17 | comment | added | Kevin Cruijssen |
Hi, welcome to PPCG! The challenge was to take the w and h as input (through STDIN, as a function input, or something similar), instead of having a hardcoded H=4 W=6 . Also, although I never programmed in Python, I think you can golf some spaces in your current code. Tips for Golfing in Python might also be interesting to read through to give you ideas on how to golf it down further. Enjoy your stay! :)
|
|
Mar 13, 2017 at 3:28 | history | edited | Arya | CC BY-SA 3.0 |
Deleted two parentheses
|
Mar 13, 2017 at 3:17 | history | edited | Arya | CC BY-SA 3.0 |
saved a few chars on multiple import
|
Mar 13, 2017 at 3:06 | history | edited | Arya | CC BY-SA 3.0 |
Made line b= smaller by understanding doubly nested comprehensions
|
Mar 13, 2017 at 3:01 | history | edited | Arya | CC BY-SA 3.0 |
Added a +=
|
Mar 13, 2017 at 2:58 | history | undeleted | Arya | ||
Mar 13, 2017 at 2:55 | history | deleted | Arya | via Vote | |
Mar 13, 2017 at 2:54 | history | edited | Arya | CC BY-SA 3.0 |
Whoops - forgot the sleep between pops; Whoops #2 - forgot the X's
|
Mar 13, 2017 at 2:29 | history | answered | Arya | CC BY-SA 3.0 |