1.1 --- a/Maumataskis/maumataskis/maumataskis.py Tue Aug 18 14:08:20 2009 +0300
1.2 +++ b/Maumataskis/maumataskis/maumataskis.py Tue Aug 18 14:32:38 2009 +0300
1.3 @@ -4,3 +4,25 @@
1.4 # (c) Arns Udovīčė <zordsdavini at gmail dot com>
1.5 # Arturas Aidukas <artvras at users dot sourceforge dot net>
1.6
1.7 +class Border:
1.8 + """Main class for lend borders. In idea they should renew every turn and
1.9 + after adding point should check is this border is of new lend.
1.10 + Methods:
1.11 + - add_point
1.12 + - check_lend
1.13 + - save
1.14 + - load"""
1.15 +
1.16 + borders = dict()
1.17 +
1.18 + def __init__(self, users):
1.19 + """Init for users lists.
1.20 + - users: int how many users there are"""
1.21 + for i in range(users):
1.22 + self.borders[i] = dict(nodes)
1.23 +
1.24 +def add_point(self, turn, x, y):
1.25 + """Adding point to existing border or creat new one.
1.26 + - turn: user id
1.27 + - x,y: point coordinates"""
1.28 + return 0