Skip to content

修改simpleStrategy大小写错误 #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,25 @@ Have fun! 😉
> [!WARNING]
> Unfortunately not all features are done yet. Specifically:
> - Undoing/redoing moves
> - Creating your own sudoku games
> - Creating your own sudoku games





## Updates

- 2025-01-15
- 将原本store+writeable的`strategy`改名为`strategySolution`:——by zzh
- 原本的`strategy`是一个字典,比如`strategy["simpleStrategy"]`是一个[ x, y, List:candidates[] ]的列表
- 现在的`strategySolution`即为[ x, y, List:candidates[] ]的列表,并不需要加上`"simpleStrategy"`的键
- 将原本的`strategyservice`改名为`strategyService`
- 增加了decodeSencode,能够识别候选值:
- `import { decodeSencodeForGrid, decodeSencodeForCandidateList} from '@sudoku/sencode';`
- `decodeSencodeForCandidateList`能够返回一个候选值列表,每个元素为`{x, y, candidates}`
- 导入题目的格式例如:`3[123]09670010403020800200000700700000900008730005000100030047051009050002078006210[567]4`,其中中括号内为对应位置的候选值
- 2025-01-16
- 添加导出题目的功能,已经能够通过分享按钮导出题目(棋盘+候选值)
- 修改了StrategyService,StrategyServiceImpl等相关位置的数据格式和继承关系
- 添加了CandidateGrid数据格式,但是StrategyService返回的结果还是列表,暂时不修改

Loading