1 Star 0 Fork 0

Cube/遗传算法玩十步万度(直接套用经典的python遗传算法库实现)

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Map.py 11.86 KB
一键复制 编辑 原始数据 按行查看 历史
Cube 提交于 2022-06-23 22:21 . first commit
map1000 = [[-1, -1, -1, -1],
[-1, 0, 0, -1],
[-1, 0, 0, -1],
[-1, -1, -1, -1]]
index1000 = [[1, 1], [1, 2],
[2, 1], [2, 2]]
map3000 = [[-1, -1, -1, -1, -1],
[-1, 0, 0, 0, -1],
[-1, 0, 0, 0, -1],
[-1, 0, 0, 0, -1],
[-1, -1, -1, -1, -1], ]
index3000 = [[1, 1], [1, 2], [1, 3],
[2, 1], [2, 2], [2, 3],
[3, 1], [3, 2], [3, 3]]
map3500 = [[-1, -1, -1, -1, -1],
[-1, -1, 0, 0, -1],
[-1, 0, 0, 0, -1],
[-1, 0, 0, 0, -1],
[-1, 0, 0, -1, -1],
[-1, -1, -1, -1, -1]]
index3500 = [ [1, 2], [1, 3],
[2, 1], [2, 2], [2, 3],
[3, 1], [3, 2], [3, 3],
[4, 1], [4, 2] ]
map4000 = [[-1, -1, -1, -1, -1],
[-1, 0, 0, 0, -1],
[-1, 0, 0, 0, -1],
[-1, 0, 0, 0, -1],
[-1, 0, 0, 0, -1],
[-1, -1, -1, -1, -1]]
index4000 = [[1, 1], [1, 2], [1, 3],
[2, 1], [2, 2], [2, 3],
[3, 1], [3, 2], [3, 3],
[4, 1], [4, 2], [4, 3]]
map4500 = [[-1, -1, -1, -1, -1, -1],
[-1, -1, 0, 0, -1, -1],
[-1, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, -1],
[-1, -1, -1, -1, -1, -1]]
index4500 = [ [1, 2], [1, 3],
[2, 1], [2, 2], [2, 3], [2, 4],
[3, 1], [3, 2], [3, 3], [3, 4],
[4, 1], [4, 2], [4, 3], [4, 4]]
map5000 = [[-1, -1, -1, -1, -1, -1],
[-1, -1, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, -1, -1],
[-1, -1, -1, -1, -1, -1]]
index5000 = [ [1, 2], [1, 3], [1, 4],
[2, 1], [2, 2], [2, 3], [2, 4],
[3, 1], [3, 2], [3, 3], [3, 4],
[4, 1], [4, 2], [4, 3] ]
map6000 = [[-1, -1, -1, -1, -1, -1],
[-1, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, -1],
[-1, -1, -1, -1, -1, -1]]
index6000 = [[1, 1], [1, 2], [1, 3], [1, 4],
[2, 1], [2, 2], [2, 3], [2, 4],
[3, 1], [3, 2], [3, 3], [3, 4],
[4, 1], [4, 2], [4, 3], [4, 4]]
map6100 = [[-1, -1, -1, -1, -1, -1],
[-1, 0, -1, 0, 0, -1],
[-1, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, -1],
[-1, 0, 0, -1, 0, -1],
[-1, -1, -1, -1, -1, -1]]
index6100 = [[1, 1], [1, 3], [1, 4],
[2, 1], [2, 2], [2, 3], [2, 4],
[3, 1], [3, 2], [3, 3], [3, 4],
[4, 1], [4, 2], [4, 3], [4, 4],
[5, 1], [5, 2], [5, 4]]
map6200 = [[-1, -1, -1, -1, -1, -1],
[-1, 0, 0, 0, 0, -1],
[-1, -1, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, -1, -1],
[-1, 0, 0, 0, 0, -1],
[-1, -1, -1, -1, -1, -1]]
index6200 = [[1, 1], [1, 2], [1, 3], [1, 4],
[2, 2], [2, 3], [2, 4],
[3, 1], [3, 2], [3, 3], [3, 4],
[4, 1], [4, 2], [4, 3],
[5, 1], [5, 2], [5, 3], [5, 4]]
map6300 = [[-1, -1, -1, -1, -1, -1],
[-1, -1, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, -1, -1],
[-1, -1, -1, -1, -1, -1]]
index6300 = [ [1, 2], [1, 3], [1, 4],
[2, 1], [2, 2], [2, 3], [2, 4],
[3, 1], [3, 2], [3, 3], [3, 4],
[4, 1], [4, 2], [4, 3], [4, 4],
[5, 1], [5, 2], [5, 3] ]
map6400 = [[-1, -1, -1, -1, -1, -1],
[-1, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, -1],
[-1, -1, 0, 0, -1, -1],
[-1, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, -1],
[-1, -1, -1, -1, -1, -1]]
index6400 = [[1, 1], [1, 2], [1, 3], [1, 4],
[2, 1], [2, 2], [2, 3], [2, 4],
[3, 2], [3, 3],
[4, 1], [4, 2], [4, 3], [4, 4],
[5, 1], [5, 2], [5, 3], [5, 4]]
map7000 = [[-1, -1, -1, -1, -1, -1],
[-1, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, -1],
[-1, -1, -1, -1, -1, -1]]
index7000 = [[1, 1], [1, 2], [1, 3], [1, 4],
[2, 1], [2, 2], [2, 3], [2, 4],
[3, 1], [3, 2], [3, 3], [3, 4],
[4, 1], [4, 2], [4, 3], [4, 4],
[5, 1], [5, 2], [5, 3], [5, 4]]
map8000 = [[-1, -1, -1, -1, -1, -1, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, -1, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, -1, -1, -1, -1, -1, -1]]
index8000 = [[1, 1], [1, 2], [1, 3], [1, 4], [1, 5],
[2, 1], [2, 2], [2, 3], [2, 4], [2, 5],
[3, 1], [3, 2], [3, 4], [3, 5],
[4, 1], [4, 2], [4, 3], [4, 4], [4, 5],
[5, 1], [5, 2], [5, 3], [5, 4], [5, 5]]
map8300 = [[-1, -1, -1, -1, -1, -1, -1],
[-1, -1, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, -1, -1],
[-1, -1, -1, -1, -1, -1, -1]]
index8300 = [ [1, 2], [1, 3], [1, 4], [1, 5],
[2, 1], [2, 2], [2, 3], [2, 4], [2, 5],
[3, 1], [3, 2], [3, 3], [3, 4], [3, 5],
[4, 1], [4, 2], [4, 3], [4, 4], [4, 5],
[5, 1], [5, 2], [5, 3], [5, 4] ]
map8500 = [[-1, -1, -1, -1, -1, -1, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, -1, 0, 0, 0, -1, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, -1, -1, -1, -1, -1, -1]]
index8500 = [[1, 1], [1, 2], [1, 3], [1, 4], [1, 5],
[2, 1], [2, 2], [2, 3], [2, 4], [2, 5],
[3, 2], [3, 3], [3, 4],
[4, 1], [4, 2], [4, 3], [4, 4], [4, 5],
[5, 1], [5, 2], [5, 3], [5, 4], [5, 5]]
map9000 = [[-1, -1, -1, -1, -1, -1, -1],
[-1, 0, 0, -1, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, -1, 0, 0, -1],
[-1, -1, -1, -1, -1, -1, -1]]
index9000 = [[1, 1], [1, 2], [1, 4], [1, 5],
[2, 1], [2, 2], [2, 3], [2, 4], [2, 5],
[3, 1], [3, 2], [3, 3], [3, 4], [3, 5],
[4, 1], [4, 2], [4, 3], [4, 4], [4, 5],
[5, 1], [5, 2], [5, 4], [5, 5]]
map10000 = [[-1, -1, -1, -1, -1, -1, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, -1, -1, -1, -1, -1, -1]]
index10000 = [[1, 1], [1, 2], [1, 3], [1, 4], [1, 5],
[2, 1], [2, 2], [2, 3], [2, 4], [2, 5],
[3, 1], [3, 2], [3, 3], [3, 4], [3, 5],
[4, 1], [4, 2], [4, 3], [4, 4], [4, 5],
[5, 1], [5, 2], [5, 3], [5, 4], [5, 5]]
map11000 = [[-1, -1, -1, -1, -1, -1, -1],
[-1, 0, 0, -1, 0, 0, -1],
[-1, 0, 0, -1, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, -1, 0, 0, -1],
[-1, 0, 0, -1, 0, 0, -1],
[-1, -1, -1, -1, -1, -1, -1]]
index11000 = [[1, 1], [1, 2], [1, 4], [1, 5],
[2, 1], [2, 2], [2, 4], [2, 5],
[3, 1], [3, 2], [3, 3], [3, 4], [3, 5],
[4, 1], [4, 2], [4, 3], [4, 4], [4, 5],
[5, 1], [5, 2], [5, 4], [5, 5],
[6, 1], [6, 2], [6, 4], [6, 5]]
map13000 = [[-1, -1, -1, -1, -1, -1, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, -1, 0, 0, 0, -1, -1],
[-1, -1, 0, 0, 0, -1, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, -1, -1, -1, -1, -1, -1]]
index13000 = [[1, 1], [1, 2], [1, 3], [1, 4], [1, 5],
[2, 1], [2, 2], [2, 3], [2, 4], [2, 5],
[3, 2], [3, 3], [3, 4],
[4, 2], [4, 3], [4, 4],
[5, 1], [5, 2], [5, 3], [5, 4], [5, 5],
[6, 1], [6, 2], [6, 3], [6, 4], [6, 5]]
map14000 = [[-1, -1, -1, -1, -1, -1, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, -1, 0, 0, -1],
[-1, 0, 0, -1, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, -1, -1, -1, -1, -1, -1]]
index14000 = [[1, 1], [1, 2], [1, 3], [1, 4], [1, 5],
[2, 1], [2, 2], [2, 3], [2, 4], [2, 5],
[3, 1], [3, 2], [3, 4], [3, 5],
[4, 1], [4, 2], [4, 4], [4, 5],
[5, 1], [5, 2], [5, 3], [5, 4], [5, 5],
[6, 1], [6, 2], [6, 3], [6, 4], [6, 5]]
map15000 = [[-1, -1, -1, -1, -1, -1, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, -1, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, -1, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, -1, -1, -1, -1, -1, -1]]
index15000 = [[1, 1], [1, 2], [1, 3], [1, 4], [1, 5],
[2, 1], [2, 2], [2, 3], [2, 4], [2, 5],
[3, 2], [3, 3], [3, 4], [3, 5],
[4, 1], [4, 2], [4, 3], [4, 4],
[5, 1], [5, 2], [5, 3], [5, 4], [5, 5],
[6, 1], [6, 2], [6, 3], [6, 4], [6, 5]]
map16000 = [[-1, -1, -1, -1, -1, -1, -1],
[-1, 0, 0, -1, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, -1, 0, 0, -1],
[-1, -1, -1, -1, -1, -1, -1]]
index16000 = [[1, 1], [1, 2], [1, 4], [1, 5],
[2, 1], [2, 2], [2, 3], [2, 4], [2, 5],
[3, 1], [3, 2], [3, 3], [3, 4], [3, 5],
[4, 1], [4, 2], [4, 3], [4, 4], [4, 5],
[5, 1], [5, 2], [5, 3], [5, 4], [5, 5],
[6, 1], [6, 2], [6, 4], [6, 5]]
map18000 = [[-1, -1, -1, -1, -1, -1, -1],
[-1, -1, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, -1, -1],
[-1, -1, -1, -1, -1, -1, -1]]
index18000 = [ [1, 2], [1, 3], [1, 4], [1, 5],
[2, 1], [2, 2], [2, 3], [2, 4], [2, 5],
[3, 1], [3, 2], [3, 3], [3, 4], [3, 5],
[4, 1], [4, 2], [4, 3], [4, 4], [4, 5],
[5, 1], [5, 2], [5, 3], [5, 4], [5, 5],
[6, 1], [6, 2], [6, 3], [6, 4] ]
map20000 = [[-1, -1, -1, -1, -1, -1, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, 0, 0, 0, 0, 0, -1],
[-1, -1, -1, -1, -1, -1, -1]]
index20000 = [[1, 1], [1, 2], [1, 3], [1, 4], [1, 5],
[2, 1], [2, 2], [2, 3], [2, 4], [2, 5],
[3, 1], [3, 2], [3, 3], [3, 4], [3, 5],
[4, 1], [4, 2], [4, 3], [4, 4], [4, 5],
[5, 1], [5, 2], [5, 3], [5, 4], [5, 5],
[6, 1], [6, 2], [6, 3], [6, 4], [6, 5]]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/worldlab/ButterflyEffect_GA_Greed.git
[email protected]:worldlab/ButterflyEffect_GA_Greed.git
worldlab
ButterflyEffect_GA_Greed
遗传算法玩十步万度(直接套用经典的python遗传算法库实现)
master

搜索帮助