Genetic algorithm
This commit is contained in:
parent
24ef21c8e9
commit
24a18662c7
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8" project-jdk-type="Python SDK" />
|
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7" project-jdk-type="Python SDK" />
|
||||||
</project>
|
</project>
|
@ -2,7 +2,7 @@
|
|||||||
<module type="PYTHON_MODULE" version="4">
|
<module type="PYTHON_MODULE" version="4">
|
||||||
<component name="NewModuleRootManager">
|
<component name="NewModuleRootManager">
|
||||||
<content url="file://$MODULE_DIR$" />
|
<content url="file://$MODULE_DIR$" />
|
||||||
<orderEntry type="inheritedJdk" />
|
<orderEntry type="jdk" jdkName="Python 3.7" jdkType="Python SDK" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
bin/Classess/__pycache__/Travel.cpython-37.pyc
Normal file
BIN
bin/Classess/__pycache__/Travel.cpython-37.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -469,7 +469,7 @@ def CostingOfCells():
|
|||||||
|
|
||||||
def click_button():
|
def click_button():
|
||||||
btn.destroy()
|
btn.destroy()
|
||||||
label = Label(field.win, text="Wait... AI conquers the world!", fg='black')
|
label = Label(field.win, text="Wait...\nAI conquers the world...", fg='black', font="20")
|
||||||
label.place(x=50, y=570)
|
label.place(x=50, y=570)
|
||||||
field.win.update()
|
field.win.update()
|
||||||
track = tr.genetic_algorithm(travel.points_map)
|
track = tr.genetic_algorithm(travel.points_map)
|
||||||
|
@ -14,6 +14,7 @@ MAX_AMOUNT_OF_MINES = 11
|
|||||||
AMOUNT_OF_MINES = random.randint(MIN_AMOUNT_OF_MINES, MAX_AMOUNT_OF_MINES)
|
AMOUNT_OF_MINES = random.randint(MIN_AMOUNT_OF_MINES, MAX_AMOUNT_OF_MINES)
|
||||||
|
|
||||||
DELAY_TIME = 0.2
|
DELAY_TIME = 0.2
|
||||||
|
SLEEP_AFTER_CHECK_MINE = 1
|
||||||
|
|
||||||
STEP = IMAGE_SIZE + 5
|
STEP = IMAGE_SIZE + 5
|
||||||
|
|
||||||
@ -35,4 +36,3 @@ NUMBER_OF_INDIVIDUALS_FOR_DUEL = 4
|
|||||||
NUMBER_OF_POINTS_PERMUTATION = 10
|
NUMBER_OF_POINTS_PERMUTATION = 10
|
||||||
PERCENT_OF_MUTATION = 0.01
|
PERCENT_OF_MUTATION = 0.01
|
||||||
PERCENT_OF_OUTGOING_INDIVIDUALS = 0.03
|
PERCENT_OF_OUTGOING_INDIVIDUALS = 0.03
|
||||||
SLEEP_AFTER_CHECK_MINE = 1
|
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user