Re: [Tutor] Shadowrun programs

2005-01-18 Thread Max Noel
On Jan 18, 2005, at 17:52, Jack Cruzan wrote:
Greetings!
Ok if any of you read my earlier email you would have seen that:
	A) I am a newbie programmer.
	B) A Shadowrun gamer.
	C) In over my head making a SRCG (Shadowrun Character Generator)
so with that in mind gave up making my python based SRCG. Instead I am
making python Shadowrun utilities!
	The first of which was a program size and cost calculator for decker's
utilities and skillsofts. (I always hated flipping back and forth in 
the
book to figure it out). Thought I would let you see it and maybe
critique? Be kind its first original program I have written. (Well 
thats
not php or shell script).

	Doesn't look bad. However, you should aim to repeat yourself as little 
as possible, and the The program's[...] string is repeated 4 times. 
You should delay its display until the end of the program, like that:

if rating  4:
availability = 2/7
cost = rating * 100
# same for other options...
# [skipping to the end of the program]
print The program's Availability is , availability,  days and costs 
, cost

	Of course, an even better way is to use string formatting in the print 
line. But that's not really important.

-- Max
maxnoel_fr at yahoo dot fr -- ICQ #85274019
Look at you hacker... A pathetic creature of meat and bone, panting 
and sweating as you run through my corridors... How can you challenge a 
perfect, immortal machine?

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Shadowrun programs

2005-01-18 Thread Jack Cruzan
I am on the other coast but I too am looking for a group to play
Shadowrun with. 

With at least three people interested think we could either --

1) Port or create a python based SRCG (useless python still has a
challenge for a collaberative effort.)
2) Make a SR rpg (I was think of in the style of Rogue or net hack but
could be something more in depth)
3) Fun and Profit! -err uhm something like it?
 man, I bought the first edition within weeks of it coming out. Spent 
 part of junior high, high school and a little of college playing all 3 
 editions. Miss those days.
 
 *ANY OF YOU IN THE BAY AREA STILL RUNNING??*
 
 Enclosed is a cleaned up version using functions. This way, if you want 
 you could support differing rule versions. Or play around with unit testing.

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Shadowrun programs

2005-01-18 Thread Sean Perry
Jack Cruzan wrote:
I am on the other coast but I too am looking for a group to play
Shadowrun with. 

With at least three people interested think we could either --
1) Port or create a python based SRCG (useless python still has a
challenge for a collaberative effort.)
2) Make a SR rpg (I was think of in the style of Rogue or net hack but
could be something more in depth)
3) Fun and Profit! -err uhm something like it?
My time is unfortunately limited. However, I am available for reviews, 
ideas, playtesting, etc.

For the record, I am a Linux user so it would be nice if any GUIs used a 
cross-platform toolkit.
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor