Skip to content
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

递归调用play+修改窗口大小+添加文字说明 #47

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Yimi22
Copy link

@Yimi22 Yimi22 commented Oct 16, 2024

我注意到我们的数独游戏在默认控制台窗口中的显示区域相对较小,因此,我通过调用 SetConsoleWindowSize 函数调整了控制台窗口的大小,确保游戏区域的占比更合理。我还在数独游戏的逻辑控制部分中将exit函数改为一个递归调用,这样玩家在完成一个数独九宫格后不会直接退出游戏,不管是失败还是成功,都可以选择继续下一轮。此外,我还在正式游戏之前添加了游戏操作的相关提示,这一系列修改提升了用户的体验。

@mayerui
Copy link
Owner

mayerui commented Oct 23, 2024

Windows10环境没观察到MoveWindow后有变化,能否提供一个截图看看效果?

@mayerui
Copy link
Owner

mayerui commented Oct 23, 2024

另外,游戏结束时只调用play()是没法重开一局的,需要重新生成场景。可以在游戏结束时提供选项,让玩家选择重开还是退出。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants