Changeset 796

Show
Ignore:
Timestamp:
07/21/10 11:29:09 (7 weeks ago)
Author:
confluence
Message:

added gplv3 licence

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • confluence/randombubble.py

    r795 r796  
    11#!/usr/bin/python 
     2 
     3# Copyright 2010 Adrianna Pinska, Simon Cross 
     4# This program is distributed under the terms of the GNU General Public License v3 
    25 
    36import warnings 
     
    69import random 
    710from copy import deepcopy 
     11from optparse import OptionParser 
    812from networkx import Graph, connected_components, draw 
    913 
     
    4953    BALLS = range(8) 
    5054    ASYM, SYM_HORIZ, SYM_BOTH = range(3) 
     55    SYMMETRIES = { 
     56        "asym" : ASYM, 
     57        "horiz" : SYM_HORIZ, 
     58        "both" : SYM_BOTH, 
     59    } 
    5160 
    5261    def __init__(self, fill_rows, colours, density, symmetry): 
     
    123132        return '\n\n'.join([str(l) for l in self.levels]) 
    124133 
    125  
    126 print LevelSet(10) 
     134if __name__ == '__main__': 
     135    print LevelSet(10)