Windows Shell脚本编程:游戏开发与错误处理
1. 石头剪刀布游戏开发
现在你可以着手完成石头剪刀布游戏的开发了。在查看完整脚本之前,不妨先自行尝试编写。以下是完整的石头剪刀布游戏脚本:
@ECHO off
REM ***************************************************************************
REM
REM Script Name: RockPaperScissors.bat
REM Author: Jerry Ford
REM Date: July 19, 2003
REM
REM Description: This is a Windows shell script implementation of the popular
REM child's game called "Rock, Paper, Scissors."
REM
REM ***************************************************************************
REM ****** Script Initialization Section ******
REM Display the name of the game in the Windows command console's title bar
TITLE = R o c k, P a p e r, S c i s s o r s
REM Set the color scheme to yellow on black
COLOR 0E
REM Define glob
超级会员免费看
订阅专栏 解锁全文
2303

被折叠的 条评论
为什么被折叠?



