merge into maste

This commit is contained in:
Michal Starski 2019-04-01 14:39:08 +02:00
commit 716420b35b
5 changed files with 9 additions and 12 deletions

View File

@ -1,3 +0,0 @@
2 2
E H
H Y

View File

@ -3,9 +3,9 @@
E E E H E E E E E
E Y R R E H E E E
E R E R E R E G E
E R H R R R R R E
H R E H R H E R E
H R E R R R R R E
H R E E R H E R E
R R R R R E R R E
E B R H E R R H E
E E R R R R E E E
E E E E H R R R H
E E H E H R R R H

View File

@ -1,6 +1,6 @@
13 4
3 0
E Y R R R H H R R R E E E
H R R H R R R R H R R H E
E Y R R R H H R R H E E E
H R R E R R R R R R R H E
E E R E H E R H R E R R G
H R R E E B R R R H E R H
H R R H E B R R R H E R H

View File

@ -3,7 +3,7 @@
Y R R R E H R R R R R E
E R E R R E R E H E R H
H R R H R R R R R R R E
E E R E E E E R H E R H
E E R E E E E R E E R H
E E R R H E H R E E R E
E E H R E E R R E H R E
E R R R R R R H E R R R

View File

@ -39,8 +39,8 @@ i = 0
for y in map.readlines():
for x in y.split():
y_coord = i % GRID_WIDTH
x_coord = (i - y_coord)//GRID_WIDTH
x_coord = i % GRID_WIDTH
y_coord = (i-x_coord)//GRID_WIDTH
yellow, green, blue = [randint(0, HOUSE_CAPACITY // 2), randint(
0, HOUSE_CAPACITY // 2), randint(0, HOUSE_CAPACITY // 2)]