Welcome, guest | Sign In | My Account | Store | Cart

The following recipe demonstrates the use of SETs in Python. The scenario that this was written for is as follows:

A star map is given according to the format X,Y,Z|...|X,Y,Z: X represents the X coordinate of the star (which may be any real integer). Y represents the Y coordinate on the star (which may be any real integer). Z represents the color of the star (which may be any real integer larger than 0). | separates the stars (strings represented by X,Y,Z). , separates the numbers describing the stars (X,Y,Z). : represents the end of the star map. ... is an arbitrary number of X,Y,Z strings with appropriate pipes.

As an extention to the original problem that this code was written for, constellation definitions can follow the colon. The constellation string that might follow is described by the following:

:C!D#...#D|...|C!D#...#D : represents the beginning of the constellation definitions. C!D#...#D represents one constellation definition. | is the constellation definition separator. C is a number that identifies what constellation is being defined. D can be repesented as X,Y;X,Y or X,Y. X would be the X coordinate of a star defined in the star map. Y would be the Y coordinate of a star defined in the star map. , would be the coordinate separator. ; would be the star separator. ... would be an arbitrary number of D string with appropriate # signs. ... would be an arbitrary number of constellation definitions.

The explanation for D is that if two stars are listed, they are joined together with a line segment; but if there is one star, it is only highlighted.

In this updated version of the code, there is a key object that has constellations already identified and a stars object that contains the stars in the sky. Keys are used to unlocks the stars and the results are printed out for the user of the program.

Python, 88 lines
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
class stars:

    def __init__(self, owner, star_data):
        self.__owner = owner
        self.__star_data = star_data
        self.__stars = self.__parse()
        self.__set = set(self.__stars)

    def __parse(self):
        colon_index = self.__star_data.index(':')
        before_colon = self.__star_data[:colon_index]
        star_definitions = before_colon.split('|')
        split_definitions = [star_definition.split(',') for star_definition in star_definitions]
        star_coordinates = [(int(x), int(y)) for x, y, color in split_definitions]
        return star_coordinates

    def unlock(self, key_object):
        assert key_object.__class__ is key
        owner, constellations = key_object.get_data()
        master_list = self.__stars
        master_set = self.__set
        answers = []
        print 'Stars Owner =', self.__owner
        print ' Key Owner =', owner
        found = 0
        for number, current_constellation in enumerate(constellations):
            answers = self.__find_constellations(current_constellation, master_list)
            for answer in answers:
                print '  Constellation', number + 1, 'was found at the following coordinates:'
                print '   ' + str(answer)[1:-1]
                found += 1
        if not found:
            print '   No constellations could be found.'

    def __find_constellations(self, constellation, sky):
        answers = []
        for star in sky:
            x_diff = star[0] - constellation[0][0]
            y_diff = star[1] - constellation[0][1]
            new_constellation = set([(x + x_diff, y + y_diff) for x, y in constellation])
            same = self.__set & new_constellation
            if len(same) == len(constellation):
                answers.append(list(same))
        return answers

class key:

    def __init__(self, owner, star_data):
        self.__owner = owner
        self.__star_data = star_data
        self.__constellations = self.__parse()

    def __parse(self):
        colon_index = self.__star_data.index(':')
        after_colon = self.__star_data[colon_index + 1:]
        constellation_definitions = after_colon.split('|')
        parsed_definitions = [self.__parse_definition(constellation_definition) for constellation_definition in constellation_definitions]
        pruned_definitions = [self.__prune_definition(parsed_definition) for parsed_definition in parsed_definitions]
        return pruned_definitions

    def __parse_definition(self, constellation_definition):
        bang_index = constellation_definition.index('!')
        after_bang = constellation_definition[bang_index + 1:]
        segment_definitions = after_bang.split('#')
        star_definitions = [star_definition for segment_definition in segment_definitions for star_definition in segment_definition.split(';')]
        split_definitions = [star_definition.split(',') for star_definition in star_definitions]
        star_coordinates = [(int(x), int(y)) for x, y in split_definitions]
        return star_coordinates

    def __prune_definition(self, parsed_definition):
        stars = parsed_definition
        index = 0
        while index < len(stars):
            delete = []
            for pointer in range(index + 1, len(stars)):
                if self.__equals(stars[index], stars[pointer]):
                    delete.append(pointer)
            delete.reverse()
            for pointer in delete:
                del stars[pointer]
            index += 1
        return stars

    def __equals(self, star1, star2):
        return star1[0] == star2[0] and star1[1] == star2[1]

    def get_data(self):
        return self.__owner, self.__constellations

This is just an example of how to use sets to find matching items in a collection of data.

13 comments

Example (Part 1). What follows is an example driver program for the code shown above.

from mapper_v2 import stars, key

def main():
    maps = map_list()
    for star_map in maps[1:]:
        star_map.unlock(maps[0])

def map_list():
    map_list = list()
    # dfa_zero
    dfa_zero = key('dfa_zero', '-102,-24,1|-105,-243,1|-105,-309,1|-110,-206,1|\
-12,396,1|-121,299,1|-122,-589,1|-124,323,1|-128,-801,1|-13,-342,1|-131,-166,1|\
-131,-186,2|-131,-260,1|-134,-516,1|-14,-596,1|-146,439,1|-148,640,1|\
-154,181,1|-158,161,1|-159,-523,1|-162,276,1|-170,-47,1|-171,-216,1|\
-176,-679,1|-183,-771,1|-190,648,1|-198,678,1|-203,103,1|-206,357,1|-209,390,1|\
-210,-649,1|-211,-216,2|-217,72,1|-22,-260,1|-22,-61,1|-221,492,1|-226,397,1|\
-230,-471,1|-235,680,1|-239,-770,1|-246,367,1|-247,536,1|-249,248,1|-250,203,1|\
-251,-186,2|-251,221,1|-251,797,1|-252,-32,1|-252,-584,1|-257,-774,1|\
-258,342,1|-262,704,1|-263,-313,1|-271,-397,1|-272,742,1|-276,-158,1|\
-276,164,1|-276,591,1|-286,487,4|-291,-156,1|-296,155,1|-302,-325,1|-303,686,1|\
-306,-369,1|-306,232,1|-307,-622,1|-311,-517,1|-317,-811,1|-32,608,1|\
-326,-447,1|-33,681,1|-337,415,1|-341,-367,1|-341,-537,3|-346,-432,1|\
-346,-672,1|-349,-579,1|-356,347,1|-358,-788,1|-360,661,1|-363,67,1|-366,427,2|\
-367,-65,1|-371,-517,1|-372,-212,1|-372,615,1|-379,121,1|-38,-388,1|-38,147,3|\
-380,678,1|-384,20,1|-388,199,1|-389,-243,1|-389,712,1|-39,261,1|-392,-12,1|\
-4,-215,1|-411,-397,4|-413,295,1|-416,-74,1|-416,46,1|-426,-600,1|-43,-138,1|\
-436,-34,2|-436,-65,1|-437,-103,1|-437,270,1|-441,-353,1|-443,399,1|-45,655,1|\
-454,432,1|-456,6,3|-466,22,1|-467,-699,1|-472,719,1|-475,52,1|-482,-337,1|\
-483,213,1|-485,-281,1|-485,532,1|-489,794,1|-490,-732,1|-492,-757,1|\
-498,-670,1|-5,-321,1|-5,551,1|-506,-4,1|-506,-709,1|-507,277,1|-510,-774,1|\
-513,-234,1|-515,-742,1|-516,126,1|-52,55,1|-52,83,1|-525,580,1|-531,-774,1|\
-533,-220,1|-539,281,1|-54,-829,1|-540,-468,1|-544,165,1|-549,672,1|\
-556,-154,1|-559,-735,1|-56,-93,1|-56,314,1|-563,-220,1|-566,271,1|-567,628,1|\
-57,204,1|-575,-167,1|-576,154,1|-579,76,1|-590,-102,1|-592,-250,1|-599,-430,1|\
-603,-317,1|-604,-511,1|-606,-370,1|-606,499,1|-607,805,1|-61,-486,1|\
-617,-458,1|-634,766,1|-635,-417,1|-640,-662,1|-646,-827,1|-65,637,1|\
-651,308,1|-657,517,1|-66,570,1|-660,-160,1|-662,-384,1|-668,-413,1|-669,164,1|\
-67,-651,1|-670,-594,1|-675,-349,1|-677,-769,1|-679,60,1|-682,-745,1|\
-684,431,1|-688,316,1|-69,818,1|-693,-270,1|-698,375,1|-700,275,1|-701,-596,1|\
-71,-417,1|-71,-439,1|-71,435,1|-711,-276,1|-72,65,1|-721,-356,2|-721,660,1|\
-726,538,1|-729,-29,1|-73,-19,1|-730,798,1|-736,-501,1|-743,352,1|-758,-352,1|\
-759,-436,1|-761,205,1|-771,747,1|-778,-3,1|-790,138,1|-791,-256,2|-80,-773,1|\

(comment continued...)

(...continued from previous comment)

-801,-226,1|-801,509,1|-802,589,1|-804,-751,1|-805,783,1|-81,789,1|-810,105,1|\
-813,312,1|-815,-23,1|-818,-622,1|-821,-386,1|-830,-830,1|-830,830,1|-85,110,1|\
-91,-156,2|-92,-711,1|-93,94,1|-97,474,1|-98,167,3|-98,730,1|0,749,1|\
100,-701,1|100,273,1|103,-216,1|108,-12,1|111,-819,1|112,-581,1|112,98,1|\
12,33,1|12,77,3|122,631,1|122,793,1|125,-631,1|127,609,1|13,-715,1|130,-186,4|\
131,-704,1|133,327,1|134,-121,1|134,-817,1|135,-785,1|150,-126,1|150,-591,1|\
151,541,1|154,679,1|157,-655,1|160,-355,1|162,-71,1|162,796,1|177,-600,2|\
177,-740,2|18,362,1|180,-701,1|188,-814,1|190,32,1|191,-480,1|195,716,1|\
196,-644,1|203,535,1|203,612,1|206,684,1|210,-106,2|210,-266,1|212,-371,1|\
22,167,1|225,-220,1|228,-790,1|233,-163,1|237,-62,1|239,176,1|239,542,1|\
244,-375,1|245,243,1|252,659,1|257,-87,1|259,-161,1|26,-157,1|26,-488,1|\
260,7,1|267,-660,1|270,-246,1|272,-555,1|274,454,1|277,-610,1|277,421,1|\
28,109,1|280,-439,1|283,-629,1|283,397,1|287,-321,1|288,556,1|289,-135,1|\
290,-186,2|294,-162,1|296,13,1|299,360,1|299,719,1|3,-584,1|303,683,1|\
304,-649,1|307,-698,1|31,507,1|32,-630,1|32,207,2|323,-140,1|324,390,1|\
327,347,1|334,-811,1|336,-542,1|338,172,1|338,85,1|340,-765,1|347,283,1|\
349,132,1|35,705,1|356,311,1|358,-471,1|358,676,1|370,596,1|372,-259,1|\
372,141,1|382,340,1|382,480,4|389,-9,1|394,-140,1|395,-681,1|397,-102,1|\
400,731,1|402,-443,1|405,-616,1|406,623,1|407,4,1|415,684,1|422,-471,3|\
422,-668,1|428,-339,1|428,289,1|434,-752,1|436,-691,1|438,600,1|439,-105,1|\
44,-222,1|442,-500,1|442,-788,1|442,310,6|442,510,1|446,382,1|446,561,1|\
453,166,1|459,426,1|459,774,1|472,-401,1|478,-685,1|479,703,1|48,727,1|\
487,-35,1|491,-349,1|491,434,1|491,749,1|492,316,1|502,-580,1|502,340,1|\
502,480,4|505,371,1|506,547,1|512,-806,1|513,-558,1|516,423,1|517,-669,1|\
52,394,1|523,-210,1|523,631,1|527,520,1|531,-538,1|533,-6,1|534,-174,1|\
535,330,1|537,250,1|54,-779,1|541,-394,1|545,296,1|549,-26,1|551,788,1|\
552,-71,1|552,127,1|558,-226,1|560,35,1|562,-481,1|565,442,1|574,-766,1|\
574,536,1|583,-582,1|585,-822,1|589,399,1|592,-431,1|592,-797,1|594,-180,1|\
596,-656,1|601,-581,1|603,-370,1|603,280,1|608,-151,1|612,-561,5|62,-694,1|\
620,-366,1|620,-55,3|622,-471,1|622,-641,1|629,311,1|632,-387,1|635,139,1|\
636,-694,1|636,122,1|647,-750,1|651,-578,1|659,-2,1|659,-514,1|67,-32,1|\
673,-547,1|674,771,1|676,-499,1|684,-76,1|685,332,1|689,-108,1|689,149,1|\
69,606,1|690,-125,2|690,-55,1|690,15,2|696,633,1|697,801,2|704,283,1|\
705,-658,1|706,-350,1|707,589,1|707,661,6|714,-693,1|718,-203,1|719,-289,1|\
722,116,1|723,-366,1|723,98,1|727,-776,1|728,0,1|73,-78,1|73,60,1|733,-761,1|\
736,-69,1|748,-33,1|759,102,1|760,-55,4|761,-814,1|761,545,1|764,285,1|\

(comment continued...)

(...continued from previous comment)

766,265,1|769,-270,1|77,-610,1|775,-13,1|779,426,1|78,373,1|781,-301,1|\
782,-520,1|783,-706,1|784,635,1|785,127,1|785,228,1|788,590,1|795,748,1|\
797,-574,1|804,-147,1|805,-749,1|809,-654,1|810,-673,1|812,460,1|814,-219,1|\
817,-588,1|817,741,1|818,-371,1|820,658,1|827,-106,1|829,419,1|83,735,1|\
830,-830,1|830,830,1|84,126,1|87,-660,1|91,-313,1|91,776,1|92,227,4|\
96,-421,1:1!-291,-156;-251,-186#-251,-186;-211,-216#-171,-216;-131,-186#\
-131,-186;-91,-156|2!-98,167;-38,147#-38,147;22,167#22,167;32,207#\
32,207;92,227#12,77|3!130,-186;150,-126#150,-126;210,-106#290,-186;270,-246#\
270,-246;210,-266|4!-366,427;-226,397#-356,347;-246,367#-226,397;-206,357#\
-286,487;-226,397#-246,367;-206,357|5!382,340;442,310#442,310;502,340#\
382,480;442,510#442,510;502,480')
    map_list.append(dfa_zero)

Example (Part 2).

    # Jemaime77
    Jemaime77 = stars('Jemaime77', '-1,-246,2|-107,-200,1|-13,31,1|\
-13,361,2|-137,-36,1|-14,428,1|-140,-181,1|-143,321,3|-145,550,1|-148,-92,1|\
-156,-62,2|-158,-511,1|-159,79,1|-165,-306,1|-166,-586,3|-167,54,1|-172,448,1|\
-175,387,1|-182,-368,1|-188,238,1|-193,-487,1|-195,-129,1|-196,-338,1|\
-197,214,1|-198,-239,1|-206,431,1|-212,-509,1|-213,-375,1|-216,-532,1|\
-216,-82,2|-219,274,1|-220,256,1|-225,352,1|-226,-490,1|-227,458,1|-227,588,1|\
-23,321,1|-232,-448,2|-236,-212,1|-237,419,1|-241,-387,1|-248,513,1|\
-249,-358,1|-250,-161,1|-252,-408,1|-260,-456,1|-272,-438,6|-276,-92,1|\
-277,560,1|-280,305,2|-281,421,1|-283,102,1|-285,-394,1|-286,439,1|-288,-65,1|\
-296,24,1|-3,-19,1|-300,245,3|-308,364,1|-312,-318,2|-313,195,1|-321,-585,1|\
-323,-430,1|-329,387,1|-33,-149,1|-33,231,1|-344,-237,1|-346,-122,3|-347,21,1|\
-347,555,1|-349,59,1|-35,336,1|-353,410,1|-354,270,1|-360,225,3|-360,385,1|\
-366,-586,5|-369,99,4|-374,464,1|-377,575,1|-382,-397,1|-382,-458,3|\
-383,-508,1|-383,260,1|-383,521,1|-385,-428,1|-388,-2,1|-392,-378,6|-41,-216,1|\
-41,-341,1|-420,365,1|-428,329,1|-430,-491,1|-430,568,1|-432,-531,1|-440,305,5|\
-443,-136,1|-445,-567,1|-452,-201,1|-464,-373,1|-474,186,1|-474,99,1|\
-478,575,1|-479,-387,1|-485,479,1|-490,-35,1|-491,293,1|-495,403,1|-499,24,1|\
-499,49,2|-500,-111,1|-502,-466,3|-513,-512,1|-524,-51,1|-527,-177,2|\
-529,-350,1|-535,269,1|-538,545,1|-542,-586,2|-545,498,2|-546,-77,1|\
-547,-138,1|-549,-560,1|-554,-19,1|-563,-379,1|-567,-297,1|-568,430,1|\
-57,307,1|-572,-436,3|-576,144,1|-577,117,1|-58,-336,1|-585,378,3|-590,-590,1|\
-590,590,1|-6,-410,1|-60,-544,1|-60,33,1|-67,-520,1|-73,183,1|-73,378,1|\
-83,301,1|-85,107,1|-89,151,1|-91,-302,1|-92,574,1|-98,443,1|102,375,1|\
110,-385,1|113,-356,1|119,-246,1|125,-538,1|126,398,1|129,-368,1|139,37,1|\
140,-221,1|142,-249,1|143,70,1|145,-504,1|150,-69,1|151,453,1|155,-589,1|\
159,-216,1|161,426,1|162,-281,1|165,198,1|168,-173,1|176,369,1|177,-19,2|\
18,-551,1|181,197,1|182,-340,1|183,70,1|183,95,1|187,31,1|189,-398,1|\
198,-556,1|201,-302,1|202,-354,1|207,286,1|209,-64,1|21,197,1|218,-475,1|\
218,-94,1|220,-346,1|222,553,1|228,347,1|23,100,1|243,572,1|248,98,1|\
250,-567,1|253,-241,1|254,525,1|263,130,5|275,-563,1|277,412,1|287,168,1|\
294,-464,1|304,-157,1|311,-302,3|316,-44,1|319,-521,1|320,-324,1|328,202,1|\
329,-7,1|33,-340,1|330,55,1|331,-242,2|331,254,1|332,-89,1|337,377,3|341,88,1|\
342,492,1|347,-106,1|347,-463,1|347,204,1|359,-276,1|360,465,1|368,-75,6|\
368,65,1|371,378,1|376,-20,1|386,-439,1|39,-276,2|391,-382,3|397,-557,1|\
397,237,2|397,397,3|414,-217,1|42,-480,1|426,270,1|427,-265,1|428,-105,1|\
428,95,4|429,-285,1|440,56,1|443,-90,1|443,290,1|445,-433,1|448,112,1|\

(comment continued...)

(...continued from previous comment)

451,-362,1|457,451,1|46,-5,1|46,151,1|46,45,1|47,381,1|477,317,2|488,-75,3|\
488,65,1|490,451,1|506,450,1|51,167,1|516,-223,1|518,-193,1|525,289,1|\
526,519,1|531,-327,1|534,451,1|540,-544,1|540,270,1|549,453,1|56,409,1|\
564,58,1|565,455,1|572,123,1|575,33,1|577,-331,1|585,416,1|589,272,1|\
590,-590,1|590,590,1|61,5,1|62,94,1|63,130,1|64,540,1|69,-398,1|69,-538,1|\
79,-214,1|79,-276,6|79,86,1|8,-484,1|87,580,1|90,-397,1|94,303,1:')
    map_list.append(Jemaime77)
    # elvenscythe
    elvenscythe = stars('elvenscythe', '-100,305,2|-108,79,2|-11,459,4|\
-118,-80,2|-123,516,1|-127,476,2|-128,-486,1|-13,-101,1|-130,395,3|-133,111,1|\
-14,90,1|-141,-84,1|-143,138,1|-146,-186,2|-147,436,3|-148,575,1|-149,-68,3|\
-156,-116,4|-158,-9,2|-170,477,3|-177,-491,2|-177,498,2|-181,289,1|-181,82,1|\
-182,386,1|-185,29,1|-189,-297,3|-20,-144,1|-204,-61,3|-209,-523,1|-21,-183,3|\
-215,-431,1|-217,-569,1|-22,-65,3|-229,347,2|-231,260,2|-234,-558,1|\
-251,-285,1|-253,-357,5|-257,-419,1|-263,-236,2|-266,-53,3|-27,473,6|\
-274,230,4|-277,-451,1|-292,365,1|-297,194,3|-299,150,1|-30,256,4|-303,132,1|\
-304,-303,2|-304,212,1|-308,537,1|-311,-145,1|-311,455,1|-313,6,3|-317,373,1|\
-320,-420,1|-327,58,1|-330,-206,1|-334,-323,3|-334,322,1|-336,109,1|\
-342,-161,1|-346,-291,1|-35,-264,1|-358,267,1|-364,-149,1|-364,463,2|\
-369,317,2|-371,182,2|-38,430,1|-385,-220,2|-385,562,1|-389,351,2|-391,184,1|\
-392,-237,1|-396,108,1|-404,448,1|-406,151,2|-407,-105,1|-413,-311,2|\
-422,-555,6|-426,-434,1|-43,-66,2|-432,-112,1|-433,237,3|-434,-145,2|\
-441,442,1|-454,-455,1|-455,24,1|-471,41,2|-473,-352,1|-474,-8,2|-483,-335,2|\
-491,-387,3|-495,-167,3|-501,-126,2|-502,-3,1|-508,534,1|-509,-357,2|-51,141,1|\
-513,418,2|-52,177,1|-522,-329,6|-528,-290,2|-533,-123,1|-533,230,1|-544,389,2|\
-547,-85,1|-548,290,3|-549,-323,6|-549,329,2|-554,-475,3|-554,548,1|-558,-18,1|\
-562,-364,3|-577,-252,1|-577,-9,2|-579,339,3|-59,-125,1|-590,-405,1|\
-590,-590,1|-590,590,1|-60,-531,2|-62,459,1|-64,-93,3|-67,-364,2|-75,249,1|\
-76,528,3|-81,-49,3|-85,504,1|-86,177,1|-9,-466,1|-99,-329,1|12,-195,1|\
121,-15,1|123,268,4|126,163,3|133,30,1|134,-403,2|14,-322,6|141,-541,2|\
143,393,3|146,429,1|152,491,1|162,-319,1|162,313,3|167,342,2|172,-216,3|\
174,-507,1|181,-471,1|183,131,1|184,192,2|185,108,4|191,265,1|193,572,2|\
195,-438,1|196,150,1|199,-300,1|2,1,1|202,-90,4|203,208,1|208,-372,1|208,581,6|\
215,-539,1|216,-334,1|217,-306,1|217,306,1|219,-187,2|228,-434,1|235,385,1|\
235,499,1|24,-453,2|244,123,3|247,428,1|248,-2,1|250,-458,1|250,245,2|\
253,523,3|254,-58,4|256,197,1|257,-200,3|261,109,2|263,289,1|263,449,1|\
27,-178,1|277,-524,1|280,-70,1|281,-85,2|285,-383,2|285,267,4|291,473,1|\

(comment continued...)

(...continued from previous comment)

294,-426,2|295,114,3|296,-78,1|30,-259,1|302,224,2|304,-389,1|308,327,1|\
309,-360,1|31,-480,1|311,200,2|316,-529,2|316,286,1|319,-230,2|326,-383,2|\
329,259,1|346,186,3|357,-412,3|357,287,6|361,199,1|362,494,2|366,-361,1|\
39,359,1|392,227,2|4,504,2|405,548,1|410,440,1|413,150,1|414,423,2|414,94,2|\
419,-542,1|421,-208,3|421,-525,4|431,100,2|433,281,6|436,-377,1|437,488,2|\
444,82,1|445,-162,1|451,-459,1|452,553,1|455,-388,1|457,-480,1|458,-429,1|\
464,325,1|471,-498,1|472,-95,1|473,-45,3|477,-8,1|477,60,1|478,146,1|\
484,-381,1|486,282,1|487,227,1|49,215,1|497,-442,2|499,-472,6|500,-134,1|\
508,-271,3|509,-366,1|513,332,2|519,-445,1|52,583,1|522,44,2|524,292,1|\
525,14,2|527,511,1|529,-260,1|536,352,1|538,121,1|54,-137,4|550,586,1|\
552,-428,5|558,-17,4|56,-35,2|569,-490,1|577,263,1|581,-344,1|583,343,2|\
585,-258,1|587,417,3|59,157,3|590,-590,1|590,590,1|65,-258,3|69,-81,1|73,253,1|\
73,297,4|83,-127,1|88,194,1|92,-1,2|92,-187,2:')
    map_list.append(elvenscythe)
    # Raven193
    Raven193 = stars('Raven193', '-104,253,1|-114,-290,1|-114,-462,2|\
-115,-78,6|-118,34,1|-119,-148,2|-119,226,4|-126,-398,1|-132,-226,2|\
-138,-365,1|-14,570,1|-140,-182,1|-147,295,1|-149,-234,1|-151,-405,3|\
-164,-329,2|-17,258,1|-172,509,3|-180,-582,1|-184,-76,2|-188,-439,1|-189,150,1|\
-19,-154,2|-191,-16,1|-192,46,1|-196,-155,2|-200,216,1|-202,111,2|-213,-186,4|\
-216,407,1|-217,-219,1|-217,355,1|-217,476,1|-217,64,3|-218,-86,1|-227,250,1|\
-232,-159,3|-232,168,3|-234,77,1|-240,-267,1|-247,421,2|-250,230,4|-250,4,3|\
-253,23,6|-256,-317,1|-257,-567,1|-265,-545,1|-269,467,1|-27,-336,4|\
-271,-308,4|-281,-349,3|-281,-364,1|-282,34,3|-309,-467,4|-309,268,1|\
-310,375,4|-320,7,1|-334,79,1|-337,-575,2|-342,-416,1|-342,389,2|-344,-97,1|\
-347,-366,1|-348,489,4|-350,-300,2|-360,54,5|-374,-458,1|-376,428,5|-388,395,3|\
-390,33,5|-396,-149,1|-41,-542,2|-415,-74,1|-416,270,1|-418,444,2|-419,-419,1|\
-427,-455,1|-428,-579,2|-43,31,1|-430,148,1|-436,243,2|-438,526,1|-439,88,3|\
-448,211,1|-450,-179,1|-460,73,2|-461,-279,2|-467,245,2|-469,-513,1|-47,218,2|\
-475,-401,3|-479,465,2|-495,481,3|-511,256,4|-515,27,2|-524,-261,1|-534,-289,2|\
-535,-363,1|-535,24,1|-535,359,1|-54,-287,1|-543,-589,3|-546,-489,2|-549,99,1|\
-551,-569,2|-553,-277,2|-557,165,5|-560,-182,1|-564,211,1|-57,-181,1|\
-570,-23,1|-584,-429,1|-584,276,3|-588,-349,2|-590,-200,1|-590,-40,4|\
-590,-590,1|-590,590,1|-64,-501,3|-80,-581,1|-82,221,1|-83,-347,1|-85,151,3|\
-95,-178,1|103,-50,1|104,-114,2|104,464,4|10

Example (Part 3).

    # zaught
    zaught = stars('zaught', '-1,562,1|-106,-399,1|-106,-539,1|\
-106,403,1|-111,-256,1|-127,171,1|-133,534,1|-134,496,1|-134,577,1|-140,-457,1|\
-145,249,1|-147,356,1|-151,-226,1|-152,-564,1|-154,306,1|-155,-380,1|\
-155,209,1|-163,-321,1|-165,119,3|-169,-269,1|-175,382,1|-180,-449,1|\
-187,212,1|-19,455,3|-191,-503,1|-192,232,1|-193,-465,1|-195,422,2|-2,-520,1|\
-2,9,1|-204,-577,1|-204,259,1|-215,189,1|-218,90,1|-232,-158,1|-233,-419,1|\
-238,398,1|-240,-40,1|-244,-219,1|-245,-584,1|-246,196,1|-251,2,1|-251,297,1|\
-255,512,1|-263,452,1|-266,285,1|-274,-524,1|-274,77,1|-275,209,1|-283,-380,1|\
-295,-90,1|-303,-440,2|-303,525,1|-304,157,1|-31,-286,2|-310,13,1|-312,90,1|\
-315,-150,1|-319,-18,1|-322,404,1|-323,215,1|-323,547,1|-325,372,1|-335,452,1|\
-336,48,1|-345,-574,1|-346,217,1|-35,513,1|-352,-438,1|-363,-300,1|-363,-460,1|\
-37,428,1|-372,-427,1|-375,-10,1|-375,-170,1|-380,-559,1|-381,550,1|\
-384,-347,1|-386,190,1|-396,100,1|-396,40,1|-404,333,1|-405,-340,1|-405,546,1|\
-409,11,1|-416,230,2|-419,-116,1|-433,75,1|-435,-12,1|-435,-30,1|-440,-505,1|\
-443,-380,1|-445,-584,4|-446,180,1|-452,-127,1|-455,-90,1|-457,102,1|\
-46,-369,2|-46,452,1|-473,531,1|-48,579,1|-49,-61,1|-499,-559,1|-509,-362,1|\
-515,499,1|-521,483,1|-528,-71,1|-536,260,1|-538,-5,1|-545,479,1|-547,-52,1|\
-550,282,1|-554,-449,1|-556,-81,1|-558,-351,1|-560,-172,1|-560,224,1|\
-572,-283,1|-572,581,1|-575,499,1|-579,-154,1|-579,43,1|-583,-183,1|\
-585,-102,1|-586,190,1|-590,-590,1|-590,590,1|-6,-312,1|-70,-395,1|-71,-286,2|\
-72,-131,1|-79,-98,1|-82,-51,4|-85,269,1|-86,64,1|-89,-455,1|-9,-455,1|\
-9,375,2|-92,504,1|-94,241,1|0,288,1|0,60,1|101,395,1|103,192,1|106,-283,1|\
107,-326,1|116,153,1|12,542,1|121,425,3|123,482,1|125,169,1|127,508,1|\
14,-399,3|14,-539,2|141,-579,2|141,385,4|144,196,5|145,431,1|147,-370,1|\
147,576,1|154,-340,1|154,281,1|177,-496,1|178,-188,1|184,196,2|189,-407,1|\
202,77,1|206,-51,3|207,478,1|218,-343,1|218,49,1|224,226,2|232,-32,1|238,464,1|\
241,572,1|246,6,1|256,507,1|263,-311,2|264,256,3|265,-355,1|266,-158,1|\
269,130,1|284,316,1|286,-131,2|286,29,1|294,9,1|297,-116,1|298,-470,1|\
299,-340,1|302,344,1|312,-67,1|313,-381,1|313,573,1|322,143,1|323,-291,1|\
332,347,1|333,-251,1|335,412,1|340,-489,1|341,-354,1|343,-175,1|346,-111,1|\
360,546,1|373,503,1|374,581,1|377,-546,2|38,-111,1|389,209,3|389,349,1|\
393,-23,1|393,402,1|396,-246,1|399,-350,1|401,-273,1|402,-6,1|411,176,1|\
417,-88,1|422,364,1|437,-376,1|437,-576,1|448,-159,1|449,179,3|449,379,2|\
449,518,1|450,-392,1|450,541,1|459,-354,1|460,559,1|470,406,1|472,175,1|\
48,-247,1|486,-135,1|488,-370,1|489,146,1|49,-226,1|491,68,1|492,-244,1|\
496,89,1|497,-406,2|497,-546,1|509,209,6|509,349,1|512,-177,1|525,75,1|\

(comment continued...)

(...continued from previous comment)

531,-80,1|534,47,4|536,-201,1|536,336,1|544,295,1|546,-420,1|56,-565,1|\
563,-1,1|566,80,1|570,-225,1|573,433,1|590,-590,1|590,590,1|61,515,1|63,-396,1|\
64,256,2|74,192,1|78,-121,1|82,-217,1|83,247,1|88,161,1|9,-256,4|98,562,1:')
    map_list.append(zaught)
    # Summernight
    Summernight = stars('Summernight', '-10,-577,1|-100,-103,4|-105,-41,1|\
-106,118,3|-107,-461,2|-108,41,3|-110,433,1|-111,-125,1|-114,231,1|-114,253,1|\
-115,-510,4|-119,284,2|-137,-312,3|-137,-411,1|-138,-485,1|-138,276,2|\
-14,-217,3|-14,34,2|-142,-569,1|-148,-33,6|-149,-427,6|-15,392,6|-159,12,2|\
-161,109,4|-162,266,3|-165,446,1|-167,-188,1|-170,215,1|-187,370,3|-208,-426,3|\
-209,-180,2|-222,-326,3|-226,442,1|-227,46,1|-229,572,1|-23,-410,2|-23,293,1|\
-244,-257,6|-244,143,3|-244,367,4|-246,-563,1|-246,329,2|-250,161,2|\
-257,-301,1|-257,-439,1|-259,208,2|-261,-534,1|-264,-382,1|-264,402,1|\
-266,322,1|-270,-341,6|-270,-581,1|-276,-125,3|-277,-37,2|-28,532,2|\
-280,-432,1|-287,197,1|-290,140,3|-292,58,2|-293,-214,1|-298,75,1|-30,-233,1|\
-303,341,3|-306,-438,1|-308,413,1|-313,442,2|-327,-288,1|-329,-84,1|-33,448,1|\
-330,198,1|-344,-346,1|-348,341,1|-353,363,2|-358,209,1|-36,-468,3|-362,-582,1|\
-369,476,2|-372,-42,2|-374,161,3|-380,367,2|-385,-65,1|-386,-566,1|-388,-343,1|\
-394,-361,1|-401,258,1|-403,-85,3|-407,-429,2|-408,65,3|-409,-327,3|-41,327,1|\
-412,393,6|-414,-444,3|-414,555,2|-417,-128,1|-417,130,1|-42,238,2|-421,474,6|\
-425,268,3|-43,388,5|-435,-23,4|-439,-5,3|-439,365,1|-443,-382,1|-447,194,1|\
-448,-548,2|-449,-275,3|-457,-165,3|-459,433,2|-459,551,1|-469,-278,2|\
-470,-307,1|-472,390,1|-473,454,2|-478,-485,2|-483,210,1|-485,-370,1|\
-490,107,2|-505,39,2|-506,-121,2|-511,456,3|-512,-482,1|-514,132,2|-516,-440,1|\
-520,-275,5|-53,-277,2|-53,284,1|-535,-375,6|-536,-540,3|-539,-229,5|\
-539,-430,1|-541,-261,2|-545,564,1|-546,73,2|-554,94,1|-557,-25,1|-559,-159,1|\
-559,528,1|-566,321,1|-570,-553,2|-572,-311,1|-577,505,1|-579,-379,3|\
-590,-590,1|-590,590,1|-62,249,1|-7,237,2|-7,586,1|-75,588,3|-76,-373,4|\
-79,-181,1|-80,147,2|-81,-106,4|-81,-347,2|-81,44,4|-86,269,2|-88,-427,2|\
-98,168,4|11,69,6|111,498,1|112,-211,1|13,-109,3|130,-319,1|142,417,1|\
143,175,6|146,466,2|147,350,4|150,22,2|151,-395,4|16,383,2|167,112,6|17,-154,2|\
17,-419,1|172,-126,4|200,534,2|202,-106,2|202,271,4|216,-85,2|216,85,2|\
223,235,3|229,217,2|236,-400,1|236,78,1|24,-91,5|244,218,2|247,-230,1|\
254,-257,4|254,468,3|257,-471,3|257,394,1|260,344,2|263,-285,5|266,-365,1|\
276,-300,1|277,-469,3|277,118,4|291,-422,6|292,-36,1|297,-314,1|303,266,1|\
306,-109,3|317,281,4|321,85,2|323,-261,2|323,465,5|330,330,1|335,-374,1|\
336,144,1|341,-111,1|341,427,1|341,452,1|342,-294,1|344,576,1|346,-571,1|\

(comment continued...)

(...continued from previous comment)

362,-576,1|368,249,4|368,541,1|374,414,1|378,229,4|383,73,3|406,-227,2|\
410,177,1|412,-575,1|422,346,2|426,75,2|444,-312,1|446,128,1|45,-364,1|\
451,219,2|454,326,1|459,363,1|463,192,1|468,-380,2|471,461,1|475,-118,4|\
475,103,1|480,366,1|490,209,1|496,279,1|498,-99,1|503,105,1|505,-534,4|\
505,-589,2|505,86,2|507,-421,1|51,472,5|529,510,3|53,-223,1|532,-440,2|\
532,23,2|533,-372,1|535,-95,3|536,-317,2|54,-184,1|541,563,2|545,258,2|\
547,-583,4|551,243,1|553,303,1|557,-299,1|562,-386,1|568,89,2|576,410,1|\
579,133,2|581,-85,2|586,-543,1|587,266,3|590,-590,1|590,590,1|60,-326,2|\
60,-38,2|62,-292,3|66,107,2|67,414,2|7,151,2|72,-407,1|78,80,5|85,-170,2|\
85,53,2|92,-6,1|94,-110,1|94,-88,2|96,-344,1:')
    map_list.append(Summernight)
    # snwangel1981
    snwangel1981 = stars('snwangel1981', '-10,505,2|-106,-378,1|-113,500,1|\
-114,-338,2|-116,-543,2|-116,214,1|-121,-528,1|-122,229,1|-123,148,6|\
-123,454,1|-132,342,1|-137,-138,2|-137,-320,6|-137,-469,1|-14,337,1|-144,378,2|\
-153,-448,1|-156,-547,1|-164,-527,6|-169,-46,1|-177,-273,1|-179,-142,1|\
-180,210,1|-182,-413,1|-182,14,5|-183,-91,2|-185,-7,1|-186,-547,1|-189,268,2|\
-19,5,3|-192,359,1|-195,149,1|-195,284,1|-204,-298,2|-205,-458,1|-207,124,2|\
-212,-76,2|-22,574,1|-221,9,2|-228,-8,1|-230,501,2|-231,-469,3|-232,303,4|\
-235,-317,6|-247,-93,4|-25,-71,2|-260,-433,1|-260,248,5|-272,-540,1|-279,-43,1|\
-279,74,2|-282,-187,2|-288,-374,2|-288,271,3|-289,-203,5|-296,-121,2|\
-298,428,2|-30,-296,1|-300,251,1|-305,-176,3|-310,-51,1|-312,204,1|-314,527,6|\
-329,356,1|-33,273,1|-337,-307,1|-34,479,2|-345,-81,2|-348,364,1|-356,-275,1|\
-361,-194,1|-364,-10,1|-364,92,1|-366,-529,3|-367,-363,1|-367,-475,1|\
-371,388,2|-374,556,1|-378,-571,1|-380,141,1|-387,86,1|-389,349,1|-398,455,6|\
-399,-318,3|-400,-462,2|-408,175,2|-409,191,2|-41,581,3|-418,94,6|-419,-374,3|\
-422,-514,1|-428,-33,1|-430,292,1|-432,-451,3|-432,171,3|-433,399,1|-434,442,2|\
-436,504,1|-445,37,1|-446,-367,2|-458,-166,1|-469,-559,2|-471,33,1|-473,493,1|\
-476,8,2|-479,-434,3|-481,-453,2|-489,123,1|-491,-170,4|-491,-364,1|\
-494,-233,1|-496,535,2|-5,108,1|-511,176,2|-513,215,6|-514,-2,2|-518,-37,2|\
-518,-75,2|-52,-429,1|-52,540,4|-53,-586,2|-53,-9,6|-53,219,3|-534,465,2|\
-546,587,2|-552,122,2|-555,499,1|-556,-537,2|-557,-487,5|-560,-287,1|\
-568,-153,4|-570,361,6|-572,427,1|-581,-506,1|-588,178,1|-59,-170,1|\
-590,-590,1|-590,590,1|-62,-495,2|-84,-486,1|-90,-533,1|-90,449,3|-91,251,1|\
-93,99,1|-98,-1

Example (Part 4).

    # Ravyn
    Ravyn = stars('Ravyn', '-105,555,2|-108,-217,2|-110,235,5|-110,587,1|\
-114,-531,1|-114,269,1|-118,-234,2|-118,-394,2|-124,-415,1|-13,352,3|\
-136,-105,4|-138,522,2|-144,353,1|-147,257,1|-150,-144,3|-150,-532,1|\
-151,-585,2|-159,348,1|-160,-493,1|-17,-234,6|-173,147,1|-176,-40,2|-179,103,1|\
-185,74,5|-188,-361,1|-19,394,1|-191,-170,2|-194,369,2|-199,129,3|-2,507,2|\
-203,-14,2|-228,-414,1|-230,-531,1|-256,-220,5|-257,-364,2|-258,432,1|\
-271,-580,2|-273,372,1|-274,-41,1|-277,412,2|-287,200,3|-29,-536,4|-29,440,1|\
-291,-557,1|-296,-267,2|-30,291,2|-301,360,2|-311,-453,4|-312,-412,2|\
-313,-313,1|-313,503,2|-314,-194,1|-314,-88,2|-320,-215,1|-320,-564,2|\
-323,-173,4|-328,-233,1|-33,498,3|-331,580,1|-332,42,1|-339,87,1|-340,-545,2|\
-343,485,1|-344,-247,1|-344,-401,2|-350,-228,1|-355,-576,1|-362,571,2|\
-365,-355,4|-372,-380,6|-385,368,2|-399,587,1|-403,-556,3|-405,310,1|-41,555,1|\
-412,-429,6|-412,343,3|-43,-471,2|-435,-55,4|-436,468,1|-438,288,2|-439,71,4|\
-467,536,1|-469,209,3|-478,-554,2|-479,555,2|-483,-275,3|-483,-436,2|\
-484,-369,1|-486,-290,6|-486,-39,1|-488,-493,5|-490,437,1|-495,-117,1|\
-5,-446,6|-501,-80,1|-510,-590,2|-519,-5,2|-52,66,2|-522,-129,1|-527,-496,1|\
-529,244,1|-537,337,3|-537,447,1|-538,-175,2|-539,403,1|-542,-227,2|-546,374,4|\
-561,126,1|-562,560,2|-564,-44,1|-564,74,1|-568,32,2|-573,210,1|-576,-183,1|\
-58,111,2|-583,-431,1|-590,-590,1|-590,590,1|-590,7,2|-64,-535,1|-75,354,1|\
-77,477,1|-81,-523,3|-86,176,1|-88,538,2|-91,-236,6|104,-429,2|105,352,1|\
11,-513,1|116,495,2|120,-417,1|120,344,1|123,-515,1|125,327,1|127,-470,2|\
129,-121,1|13,-410,1|132,-145,1|141,260,1|160,-294,3|160,-434,1|160,179,1|\
162,-64,1|162,564,1|169,-504,1|183,423,2|184,-341,2|185,190,1|19,45,3|\
190,288,1|191,139,1|194,-460,4|195,-438,1|207,78,3|211,501,3|216,178,4|\
219,-295,1|220,-255,1|220,530,1|224,426,4|235,83,1|236,-477,3|239,210,1|\
24,-460,2|24,526,2|243,-126,3|246,-162,1|247,-64,5|249,367,1|255,-302,4|\
26,209,3|261,-361,1|27,427,1|276,183,2|276,83,1|278,-66,3|278,99,1|28,-542,1|\
280,17,2|280,465,3|292,320,2|298,-308,1|300,-436,1|301,275,1|303,-358,2|\
310,-560,3|316,3,1|324,-342,1|325,-399,3|327,-155,2|328,-500,1|33,-170,2|\
330,-263,2|332,585,1|334,8,2|335,305,2|336,392,1|34,-487,5|34,120,1|341,52,1|\
346,-454,3|349,-510,1|350,-264,2|353,11,1|364,550,1|372,570,2|378,479,1|\
382,-71,1|386,-416,3|39,514,2|390,48,1|401,-370,4|406,22,1|409,-20,1|41,-426,1|\
410,460,1|415,-48,1|416,-581,3|419,348,1|420,533,2|425,-304,3|429,-399,1|\
430,201,3|437,-65,2|441,106,2|445,35,2|447,-88,3|448,-195,1|448,569,1|\
465,-435,1|47,282,5|471,-350,6|473,-148,1|476,-571,2|478,396,3|478,548,1|\
480,100,1|485,472,2|49,-315,1|495,392,1|496,260,2|5,246,1|500,581,1|505,-77,1|\

(comment continued...)

(...continued from previous comment)

525,70,1|535,227,1|537,-84,1|545,-439,2|547,-43,4|549,147,3|55,489,4|551,539,1|\
553,-510,6|559,-101,1|57,-473,4|570,432,3|572,-238,1|574,-350,1|577,475,1|\
586,-292,1|589,-365,2|590,-590,1|590,590,1|6,-241,4|61,1,1|65,-540,2|73,342,2|\
79,-316,1|8,416,1|80,508,1|81,395,2|83,-13,2|90,179,1:')
    map_list.append(Ravyn)
    # netclubmember
    netclubmember = stars('netclubmember', '-10,-581,1|-108,-581,1|\
-109,224,1|-112,-10,1|-113,308,1|-121,394,1|-123,-515,1|-126,-69,1|-127,-560,1|\
-131,-317,1|-134,266,2|-139,-109,1|-14,157,2|-142,556,1|-146,-129,1|\
-147,-165,1|-156,415,1|-158,58,1|-161,-241,1|-168,-501,1|-177,-522,1|\
-178,-421,2|-185,384,1|-194,246,4|-196,30,1|-196,441,1|-2,581,1|-20,482,3|\
-202,586,1|-214,116,4|-219,-266,1|-232,335,1|-232,489,1|-233,87,1|-234,190,1|\
-237,-219,1|-238,441,1|-247,-417,1|-247,-99,1|-247,415,1|-25,326,1|-250,-488,1|\
-251,-234,1|-253,68,1|-259,560,1|-262,416,3|-264,186,3|-274,-346,1|-275,-278,1|\
-28,-425,1|-281,350,1|-285,-398,1|-288,-490,2|-289,-186,1|-295,246,1|-3,-481,1|\
-304,-223,1|-305,-180,1|-308,-450,2|-31,142,1|-310,-576,1|-312,445,1|\
-315,297,1|-319,-24,1|-319,88,1|-320,-429,1|-324,206,1|-328,-480,1|-329,-209,1|\
-330,-329,1|-330,-572,1|-331,19,1|-334,-60,1|-337,480,1|-34,-519,1|-34,383,1|\
-351,-46,1|-362,369,1|-364,-243,1|-364,-83,4|-368,-360,2|-376,-393,1|\
-377,-516,1|-378,432,1|-378,572,2|-38,-451,1|-392,-471,1|-398,137,1|\
-399,-179,1|-4,-410,1|-40,-292,1|-406,-39,1|-417,422,1|-422,286,1|-422,489,1|\
-424,-422,1|-432,-104,1|-434,133,1|-435,-555,1|-438,402,1|-440,-153,1|\
-444,43,1|-448,-420,2|-448,-43,1|-451,-107,1|-453,462,1|-458,-477,1|\
-460,-346,1|-464,173,1|-467,113,1|-476,-257,1|-484,-384,1|-485,30,1|-485,514,1|\
-490,-223,1|-494,-114,1|-494,123,1|-498,432,3|-498,572,2|-511,230,1|\
-512,-508,1|-516,-200,1|-538,240,1|-540,-148,1|-546,5,1|-547,-548,1|-550,-68,1|\
-551,-293,1|-555,277,1|-555,455,1|-559,425,1|-569,-468,1|-57,520,1|-573,96,1|\
-578,296,1|-58,-481,2|-582,502,1|-583,-407,1|-584,203,5|-589,-335,1|\
-590,-590,1|-590,590,1|-6,-189,1|-66,-209,1|-66,-49,3|-69,-276,1|-70,542,1|\
-70,57,1|-73,-373,1|-73,226,1|-8,-432,1|-86,-145,1|-87,-264,1|-89,-333,1|\
-97,512,1|-98,-288,1|-98,-361,1|10,-231,1|10,-429,1|101,10,1|106,97,1|\
113,174,1|115,-545,3|12,-470,1|120,482,1|124,-1,1|130,-307,1|130,543,1|\
138,-434,1|14,-129,4|146,127,1|146,449,1|147,-211,1|154,-447,1|165,-475,5|\
165,318,1|168,-541,1|172,16,1|176,-58,1|186,157,2|189,41,1|190,-327,1|\
190,321,1|20,362,2|201,-522,1|233,-459,1|240,-397,6|242,-581,1|244,440,2|\
245,-524,1|250,-307,1|253,-68,1|255,-555,2|256,375,1|26,127,1|260,-267,1|\
260,238,1|261,93,1|262,-527,1|264,-155,1|269,-14,1|269,530,1|272,455,1|\

(comment continued...)

(...continued from previous comment)

272,502,1|285,-505,1|289,-261,1|294,106,1|295,-125,5|304,26,2|304,300,1|\
304,460,2|306,-371,1|315,-545,2|319,-472,1|32,-353,1|320,-247,6|335,-125,1|\
335,440,1|339,-455,1|34,431,1|341,-420,1|342,574,1|350,144,1|355,-439,1|\
355,-559,1|36,-430,1|364,320,1|374,166,3|375,-95,1|380,469,1|384,380,3|\
385,-217,1|385,554,1|393,73,1|402,464,1|403,-473,1|414,-444,1|414,210,1|\
414,46,1|415,-65,1|421,468,1|434,76,1|436,-241,1|436,-364,1|438,-86,1|\
442,-71,1|448,-390,1|453,-293,2|453,-433,4|454,36,1|455,-37,1|456,-124,1|\
46,6,1|463,186,1|47,-239,1|47,-262,1|474,-233,1|480,-510,1|480,376,1|484,84,1|\
491,-225,1|492,-1,1|495,-353,1|50,342,2|50,512,1|507,486,1|513,-263,1|\
513,-463,2|513,470,1|522,-55,1|525,88,1|533,590,1|534,411,1|536,-467,1|\
539,-439,1|558,187,1|559,280,1|56,-18,1|561,-19,1|562,-397,1|573,-293,1|\
573,-433,2|574,240,1|574,362,1|578,-380,1|582,-560,1|582,-81,1|586,-207,1|\
590,-500,1|590,-590,1|590,590,1|61,-66,1|66,97,4|71,185,1|72,-145,1|76,519,1|\
78,-269,1|79,-320,1|79,468,1|8,411,1|83,218,1|84,496,1|85,-61,1|97,-391,1:')
    map_list.append(netclubmember)
    # return the map list
    return map_list

# acts as a combination generator
def combination(data):
    data = tuple(data)
    for index in range(1, len(data)):
        for item in data[:index]:
            yield item, data[index]

if __name__ == '__main__':
    main()

As A Side Note. The code of this recipe should probably be

written with a constellation class and star

class.

Created by Stephen Chappell on Thu, 6 Apr 2006 (PSF)
Python recipes (4591)
Stephen Chappell's recipes (233)

Required Modules

  • (none specified)

Other Information and Tasks