[Tutor] Re: Please critique my guessing game program. (original) (raw)
Andrei project5 at redrival.net
Thu Jul 15 22:58:53 CEST 2004
- Previous message: [Tutor] Re: Please critique my guessing game program.
- Next message: [Tutor] Re: Please critique my guessing game program.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Matt Smith wrote on Thu, 15 Jul 2004 17:04:35 +0100:
1) Would it be preferable to have the main game loop as part of the main body of the program at this stage? At the moment it doesn't seam logical to me to split off the section that I have as a function.
Yes, but it won't actually gain you anything in this case (program is too short to become unmaintainable), except for better style. But it's also fine if you think "ok, I know I can do it like that, and I make the conscious decision to keep it as it is".
2) Should I use the newline character in my print statements as opposed to having empty print statements? I guess this would look neater and take up less lines of code.
In my opinion, yes.
-- Yours,
Andrei
===== Real contact info (decode with rot13): cebwrpg5 at jnanqbb.ay. Fcnz-serr! Cyrnfr qb abg hfr va choyvp cbfgf. V ernq gur yvfg, fb gurer'f ab arrq gb PP.
- Previous message: [Tutor] Re: Please critique my guessing game program.
- Next message: [Tutor] Re: Please critique my guessing game program.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]