On Friday evening, the last thing I tried to do before leaving work was to write an email to my boss. I opened up a composer window in Evolution, typed in the message, attached the attachment and hit Send. Evolution put up an error box saying ‘Unable to send message’, or something comparably uninformative, and when I clicked the ‘OK’ button (which really should have been labelled ‘it's not OK, dammit, but I'm resigned to there being nothing I can do about it’) Evolution closed the composer window. No draft of the message saved anywhere I could find.
That annoyed me enough that I decided to just go home and deal with it after the weekend. So this morning I came back in, remembered about it, sighed, and prepared to rewrite the message.
Only, on a hunch, I checked with my boss first –
(Also, the "x" at the end of the fifth line from the bottom is missing its rightmost column of pixels.)
I'm disappointed you didn't point out the bug(s).
x%72<5with(d>0?1:-1)*(x-40)>35(unless that can be improved using a standard sign or abs function), so that the ball only ever bounces if it's heading out of the arena rather than on the way back into it?And the bat isn't displayed until it first moves; you could get round that by, for example, initialising
kto-1and conditionalising the input statement on that (k=k==-1?k:System.in.available()>0?System.in.read()-44:1). Thenkwill be overwritten when the time is read, and so in all subsequent iterations the input check will occur (unlessSystem.nanoTime()happens to return exactly-1, but it'll stop doing that a nanosecond later and I think that's an acceptable response lag).Also, I had to try three or four Java compilers before I found one which didn't either fail to cope with the preamble (insisting on
main()being declared explicitly) or fail to findSystem.nanoTime(); and once I'd compiled the program I then had to manually configure my terminal device before it was playable (stty raw isig -echo; java G; stty sane, and better stillecho -ne "\033[?25l"to disable the cursor before running it, andecho -ne "\033[?25h"to re-enable it afterwards). But I assume the former was just because I had out-of-date software, and the latter an expected consequence of Java not containing a realcurseslibrary.IIRC, the getting caught in the left hand side was to do with starting position. But I forget now. I don't have many characters to spare.
I was flying from Hong Kong. The website helpfully gave me a freephone number to call about it… which didn't work from China. When I arrived at the airport that evening I had an… interesting time sorting things out.