Fair enough, then I'll stop bothering. But I used that example exactly because the "replace" feature won't work.
Type: Posts; User: KevinWorkman
Fair enough, then I'll stop bothering. But I used that example exactly because the "replace" feature won't work.
That's not the only benefit of figuring out the pattern. Down the road, you might want to change the program- let's say in addition to the line, you want to add the score. With your "lazy" approach,...
Like I said, if you draw a bunch of these out, you'll start to see a pattern. Use that pattern to your advantage.
What I would do is draw a bunch of these out by hand. If the score is .3, how many pipes are on the left, how many are on the right? What about .4, .5, .6? You should start to see a pattern, and then...
I live in the US!
But for the code, once again I agree completely with Tjstretch's hints.
A for loop seems like the way to go. Where is it stuck? Post an SSCCE (similar to what I posted in your other thread), and we can maybe go from there.
PS- We're getting a cut of the money you're...