forked from s474139/Inteligentny_Wozek
Merge pull request 'fix in code' (#33) from fix_alg_gen into master
Reviewed-on: s474139/Inteligentny_Wozek#33
This commit is contained in:
commit
07340db2b8
@ -17,10 +17,6 @@ def wygeneruj_osobnika(zasieg_wspolrzednych, ilosc_wspolrzednych):
|
||||
x = random.randint(1, zasieg_wspolrzednych)
|
||||
y = random.randint(1, zasieg_wspolrzednych)
|
||||
e = (x, y)
|
||||
while e in osobnik:
|
||||
x = random.randint(1, zasieg_wspolrzednych)
|
||||
y = random.randint(1, zasieg_wspolrzednych)
|
||||
e = (x, y)
|
||||
osobnik.append(e)
|
||||
return osobnik
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user