gpt4 book ai didi

python - 六边形网格上的元胞自动机?

转载 作者:太空宇宙 更新时间:2023-11-03 18:28:19 24 4
gpt4 key购买 nike

I have been playing around with simple cellular automata in Python on a square grid, using matplotlib

Which Python based tools would be most useful in helping me work with cellular automata on hexagonal grids?

最佳答案

您需要将网格表示为六角形。请看这篇文章,其中讨论了如何在内存中表示六边形网格:How do I represent a hextile/hex grid in memory?

关于python - 六边形网格上的元胞自动机?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22804665/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com