obsidian-notes/工具/aardio/数字华容道.md
CSSC-WORK\murmur 3e6078442b init version
2024-04-15 11:19:57 +08:00

26 lines
794 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 数字华容道
updated: 2022-03-08 02:18:55Z
created: 2022-02-17 07:54:50Z
tags:
- 源码
---
利用plus组件实现完成了基本功能
# 原理
取巧的部分是每个数字格子本身并没有交换移动,而只是交换了格子上的数字
# 待实现
初始化为乱序由于随机生成的乱序有1/2的概率是无解的故不能通过简单的随机数产出初始值
一种方法是在正常序的基础上大量重复随机移动方块,即模拟人为打乱
# 源码
![c7468f66825966f5a2a114823f30eaa3.png](../../../_resources/c7468f66825966f5a2a114823f30eaa3.png)
[szhrd.aardio](../../_resources/szhrd.aardio)
## 更新
更新了界面大小自适应
优化了初始化菜单
[数字华容道v2.aardio](../../_resources/数字华容道v2.aardio)