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.
[-][-
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
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
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
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
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
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
>>
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.
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
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
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
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,
>
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
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,
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
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:
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
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
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
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
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
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
>>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
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
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
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
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?
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
28 matches
Mail list logo