第15535题 单选题
游戏设计中碰地面或碰炸弹任一条件满足即游戏失败的逻辑表达正确选项是?

定义布尔变量touch_ground表示是否碰到地面(值为True时表示已碰到),touch_bomb表示是否碰到炸弹(值为True时表示已碰到)。游戏设置两个终止条件:碰到地面则游戏失败结束,碰到炸弹则游戏失败结束,两个条件满足任意一项即可触发终止。

A

touch_ground and touch_bomb

B

touch_ground or touch_bomb

C

not touch_ground and not touch_bomb

D

touch_ground and not touch_bomb

程序运行统计
暂无判题统计