Re: [Tutor] Game of python, help please.

2012-04-18 Thread leo degon
I actually just finished it, without the extra cells. I used a combiniation of two functions and a some exception handling to do so. Here is the script. #leoslife.py # John Conways Game of Life. plan='''displays: the text of the game of life for a set number of X x Y for a set of R turns. [-][-

Re: [Tutor] Game of python, help please.

2012-04-18 Thread bob gailer
On 4/17/2012 2:23 PM, leo degon wrote: > Ok so I've done a bit of work on the program and rewrote it. I tried to take everyones advice. I've used more functions, > I've made it so that it is a list of lists each containing an integer instead of another list with a single entry. I'm glad to se

Re: [Tutor] Game of python, help please.

2012-04-17 Thread leo degon
Ok that was simple change. Dont know why but there was a small error preventing that from working before. But the problem is with the creating findsurrounding function On Tue, Apr 17, 2012 at 3:14 PM, Alan Gauld wrote: > On 17/04/12 19:23, leo degon wrote: > >> Ok so I've done a bit of work on th

Re: [Tutor] Game of python, help please.

2012-04-17 Thread Alan Gauld
On 17/04/12 19:23, leo degon wrote: Ok so I've done a bit of work on the program and rewrote it. I tried to take everyones advice. I've used more functions, I've made it so that it is a list of lists each containing an integer instead of another list with a single entry. It still looks too comp

Re: [Tutor] Game of python, help please.

2012-04-17 Thread leo degon
Ok so I've done a bit of work on the program and rewrote it. I tried to take everyones advice. I've used more functions, I've made it so that it is a list of lists each containing an integer instead of another list with a single entry. Im am having problems thinking of how to simply and elegantly

Re: [Tutor] Game of python, help please.

2012-04-10 Thread bob gailer
On 4/9/2012 10:56 PM, Dave Angel wrote: On 04/09/2012 10:33 PM, bob gailer wrote: On 4/9/2012 2:26 AM, leo degon wrote: Hello all, Im trying to learn python and programming in my free time, and I'm trying to do a little personal project to trying and gain some skills. Im trying to do version of

Re: [Tutor] Game of python, help please.

2012-04-09 Thread Dave Angel
On 04/09/2012 10:33 PM, bob gailer wrote: > On 4/9/2012 2:26 AM, leo degon wrote: >> Hello all, Im trying to learn python and programming in my free time, >> and I'm trying to do a little personal project to trying and gain >> some skills. Im trying to do version of John conways game of life. I >>

Re: [Tutor] Game of python, help please.

2012-04-09 Thread bob gailer
On 4/9/2012 2:26 AM, leo degon wrote: Hello all, Im trying to learn python and programming in my free time, and I'm trying to do a little personal project to trying and gain some skills. Im trying to do version of John conways game of life. I have a working version of the game. Written for 3.2.

Re: [Tutor] Game of python, help please.

2012-04-09 Thread Dave Angel
On 04/09/2012 02:26 AM, leo degon wrote: > Hello all, Im trying to learn python and programming in my free time Welcome to the list; I think you'll enjoy Python programming, and think it makes an excellent first language. > , and > I'm trying to do a little personal project to trying and gain so

[Tutor] Game of python, help please.

2012-04-08 Thread leo degon
Hello all, Im trying to learn python and programming in my free time, and I'm trying to do a little personal project to trying and gain some skills. Im trying to do version of John conways game of life. I have a working version of the game. Written for 3.2.2 on a mac to be accessed through terminal

Re: [Tutor] Game lag

2012-01-09 Thread Japhy Bartlett
If you made an effort to strip out parts of your code, it would probably show you where the bottlenecks are. You say that the large map is not the problem, but do you really know? On Jan 5, 2012, at 10:08 AM, Nate Lastname wrote: Thanks for the profilers - never had hear of 'em. Also, no, I

Re: [Tutor] Game lag

2012-01-05 Thread Nate Lastname
Thanks for the profilers - never had hear of 'em. Also, no, I cannot strip out unnecessary parts, 'cuz I don't know what part is slowing it down. Thanks a lot, though Hugo. On Thu, Jan 5, 2012 at 11:02 AM, Hugo Arts wrote: > On Thu, Jan 5, 2012 at 3:56 PM, Nate Lastname wrote: > > Hello all, >

Re: [Tutor] Game lag

2012-01-05 Thread Hugo Arts
On Thu, Jan 5, 2012 at 3:56 PM, Nate Lastname wrote: > Hello all, > > The attached zip file contains a file called 'cameramovement.py'.  As you > can see, this file is extremely laggy.  After searching through my code, I > can't find anything that is slowing it down.  Could someone help me out?  I

[Tutor] Game

2008-02-09 Thread Seon Kang
First off, here is the code I am working with so far. import random from livewires import games, color games.init(screen_width = 640, screen_height = 480, fps = 50) controls = "Use The Arrow Keys to Move and the Spacebar to Shoot" game_controls = games.Message(value = controls,

Re: [Tutor] Game over

2007-09-20 Thread Kent Johnson
david lazaro wrote: > hi, im relatively new to this, im on chapter 2 of the python book and > its asking me to print version 2.0 of "Game over" by using keyboard art, > but when i draw out "over" is comes up half cut off, any reasons why > that would happen? Welcome! Some tips for getting help

[Tutor] game programming python

2007-09-01 Thread bhaaluu
Greetings, I recently found a rather obscure book that looks pretty good. The Reader Level is Beginner to Advanced, so I thought I'd share it with the list (something for everyone). Game Programming, The L Line, The Express Line To Learning. Andy Harris. Published by Wiley in February 1995. ISBN:

Re: [Tutor] Game server login encryption

2006-12-25 Thread Adam Bark
Thanks a lot Bob that looks like a plan. Carlos I think the major problem with the SSL sockets is the lack of certificate checking which, I suspect, make it vulnerable to several exploits. Thanks anyway. Adam. ___ Tutor maillist - Tutor@python.org http

Re: [Tutor] Game server login encryption

2006-12-24 Thread Carlos Daniel Ruvalcaba Valenzuela
You can use SSL encripted connections, for logon and all session if you like, socket module has SSL support too: http://docs.python.org/lib/module-socket.html http://docs.python.org/lib/ssl-objects.html http://docs.python.org/lib/socket-example.html (check last example) As for hashes, password h

[Tutor] Game server login encryption

2006-12-24 Thread Adam Bark
I'm currently writing a networked game and I'm about to write a proper implementation of the logon server. I would prefer to have some sort of encryption but would like some opinions. The way I see it either I can take a hash of some data eg. username, password, port and ip and check the hash agai

Re: [Tutor] Game programming - inventory management (was Help)

2006-11-28 Thread Luke Paireepinart
Bob Gailer wrote: > Please use a meaningful subject line. Many of us try to follow > "threads", and "help" does not help. > I have provided one for this case. > > Mohammed H. Hafeji wrote: > >> Need some help in python. >> >> How do i make the user choose wheter or not to pick it up? (i can d

[Tutor] Game programming - inventory management (was Help)

2006-11-28 Thread Bob Gailer
Please use a meaningful subject line. Many of us try to follow "threads", and "help" does not help. I have provided one for this case. Mohammed H. Hafeji wrote: > Need some help in python. > > How do i make the user choose wheter or not to pick it up? (i can do > picking up an item from a list

Re: [Tutor] Game Engine HowTos?

2005-09-06 Thread Kent Johnson
Googling "python game engine" gives some interesting hits including existing game engines that might be useful examples and some low-level toolkits you might want to use. Or you might want to join efforts with one of the open-source engines and work on that. Kent Joseph Quigley wrote: > Are th

Re: [Tutor] Game Engine HowTos?

2005-09-05 Thread luke
>>I believe this is what you are looking for: >>http://www.pygame.org/ >> > Pygame? Well I'll take a look... do they have documentation for Game > Engine writing? why didn't you look before you asked? just curious. Pygame is a library that gives you easy, low-level access to the graphics buffer a

Re: [Tutor] Game Engine HowTos?

2005-09-05 Thread Byron
Joseph Quigley wrote: > Pygame? Well I'll take a look... do they have documentation for Game > Engine writing? I know that PyGame is a Python-based game engine in which one can use to write / develop computer games. However, I am not sure if they allow you to be able to "re-write" the engine i

Re: [Tutor] Game Engine HowTos?

2005-09-05 Thread Joseph Quigley
Byron Wrote: >I believe this is what you are looking for: >http://www.pygame.org/ > >Byron >--- > > Pygame? Well I'll take a look... do they have documentation for Game Engine writing? ___ Tutor maillist - Tutor@python.org http://mail.python.org/ma

Re: [Tutor] Game Engine HowTos?

2005-09-03 Thread Byron
Joseph Quigley wrote: > Or does anyone know of a good Game Engine writing tutorial in another > language? I believe this is what you are looking for: http://www.pygame.org/ Byron --- ___ Tutor maillist - Tutor@python.org http://mail.python.org/mail

[Tutor] Game Engine HowTos?

2005-09-03 Thread Joseph Quigley
Are there any Game engine tutorials or howto's for Python? Because I googled and can't find any? I'm considering making my own game engine in Python with some C/C++ as well. Or does anyone know of a good Game Engine writing tutorial in another language?

[Tutor] game instructions

2005-05-17 Thread EUGENE ASTLEY
Following the Tutorial by Michael Dawson and the previous web help from Liam Clark, I have a basic Othello Game up and running quite well. I now want to start the game with a set of instructions that stays on the screen until the user is ready to proceed. Since you are only allowed one scr