Open
Description
Summary
本章小结
- Games have a common program flow that includes game setup and gameplay.
- Randomness is an important ingredient of many games.
- We can add randomness to our Python games by using functions in the random module.
- We can implement games with Copilot using the same workflow that we’ve used throughout the book, with problem decomposition playing a key role.
- 所有游戏都遵循一种共通的程序流程,包括游戏的设置和玩法。
- 随机性是众多游戏不可或缺的一部分。
- 我们可以通过使用 random 模块中的函数,在我们的 Python 游戏中添加随机性。
- 我们可以利用本书中一贯采用的工作流程,通过 Copilot 来实现游戏的开发,问题分解在此过程中扮演关键角色。