DEATH

a multiplayer variant of conways game of LIFE
git clone https://git.ce9e.org/DEATH.git

commit
f90c6e38a1e19dbe3941706596a9fb040b0ab3f2
parent
a471953b6a2d0867fb44f5760015f137ddbfaebe
Author
Tobias Bengfort <tobias.bengfort@gmx.net>
Date
2014-05-25 20:50
new style classes

Diffstat

M DEATH/DeathCli.py 2 +-
M DEATH/DeathCliMenu.py 2 +-
M DEATH/death.py 2 +-
M DEATH/matrix.py 2 +-

4 files changed, 4 insertions, 4 deletions


diff --git a/DEATH/DeathCli.py b/DEATH/DeathCli.py

@@ -46,7 +46,7 @@ def example_game(rows=15, cols=15, n=2):
   46    46 	return death
   47    47 
   48    48 
   49    -1 class DeathCli:
   -1    49 class DeathCli(object):
   50    50 	def __init__(self, death=example_game(15, 15, 2), title='',
   51    51 			screen=curses.initscr()):
   52    52 		self.screen = screen

diff --git a/DEATH/DeathCliMenu.py b/DEATH/DeathCliMenu.py

@@ -31,7 +31,7 @@ return with any key
   31    31 """
   32    32 
   33    33 
   34    -1 class Crs:
   -1    34 class Crs(object):
   35    35 	def __init__(self, screen=curses.initscr()):
   36    36 		self.screen = screen
   37    37 		self.screen.clear()

diff --git a/DEATH/death.py b/DEATH/death.py

@@ -19,7 +19,7 @@ this happens in turns
   19    19 from matrix import Map
   20    20 
   21    21 
   22    -1 class Death:
   -1    22 class Death(object):
   23    23 	def __init__(self, _map=Map(), n=1, alive=[[2, 3]], born=[[3]], kill=[[]],
   24    24 			win=lambda _map, n: None):
   25    25 		# the defaults make death the standart life

diff --git a/DEATH/matrix.py b/DEATH/matrix.py

@@ -2,7 +2,7 @@
    2     2 # -*- coding: utf-8 -*-
    3     3 
    4     4 
    5    -1 class Matrix:
   -1     5 class Matrix(object):
    6     6 	def __init__(self, rows, cols, value=-1):
    7     7 		self.rows = rows
    8     8 		self.cols = cols