Re: [Tutor] Chutes Ladders

2013-12-23 Thread Keith Winston
On Sun, Dec 22, 2013 at 3:04 PM, tutor-requ...@python.org wrote: games = [p1.gameset(gamecount) for _ in range(multicount)] So Peter gave me a list of suggesttions, all of which I've incorporated and gotten running, and it's been instructive. But in my haste I included the line above, cut

Re: [Tutor] Chutes Ladders

2013-12-23 Thread Peter Otten
Keith Winston wrote: On Sun, Dec 22, 2013 at 3:04 PM, tutor-requ...@python.org wrote: To sum it up: I like what you have, my hints are all about very minor points :) Peter, that's a bunch of great suggestions, I knew there were a lot of places to streamline, make more readable, and

Re: [Tutor] Chutes Ladders

2013-12-23 Thread Peter Otten
Keith Winston wrote: On Sun, Dec 22, 2013 at 3:04 PM, tutor-requ...@python.org wrote: games = [p1.gameset(gamecount) for _ in range(multicount)] So Peter gave me a list of suggesttions, all of which I've incorporated and gotten running, and it's been instructive. But in my haste I

Re: [Tutor] Chutes Ladders

2013-12-23 Thread Mark Lawrence
On 23/12/2013 06:07, Keith Winston wrote: On Sun, Dec 22, 2013 at 3:04 PM, tutor-requ...@python.org mailto:tutor-requ...@python.org wrote: games = [p1.gameset(gamecount) for _ in range(multicount)] So Peter gave me a list of suggesttions, all of which I've incorporated and gotten

Re: [Tutor] Chutes Ladders

2013-12-23 Thread Steven D'Aprano
On Mon, Dec 23, 2013 at 01:07:15AM -0500, Keith Winston wrote: On Sun, Dec 22, 2013 at 3:04 PM, tutor-requ...@python.org wrote: games = [p1.gameset(gamecount) for _ in range(multicount)] [...] But in my haste I included the line above, cut pasted from his suggestion, without

[Tutor] Chutes Ladders

2013-12-22 Thread Keith Winston
I've put together my first small program. It's a simulation of the game Chutes Ladders. It plays the game and amasses an array of ([multicount] [gamecount]) size, and then crunches simple stats on the average moves, chutes, and ladders for all games in each high-level (multi) pass. Hopefully the

Re: [Tutor] Chutes Ladders

2013-12-22 Thread Peter Otten
Keith Winston wrote: I've put together my first small program. It's a simulation of the game Chutes Ladders. It plays the game and amasses an array of ([multicount] [gamecount]) size, and then crunches simple stats on the average moves, chutes, and ladders for all games in each high-level

Re: [Tutor] Chutes Ladders

2013-12-22 Thread Keith Winston
On Sun, Dec 22, 2013 at 3:04 PM, tutor-requ...@python.org wrote: To sum it up: I like what you have, my hints are all about very minor points :) Peter, that's a bunch of great suggestions, I knew there were a lot of places to streamline, make more readable, and probably make faster. Thank