本帖最后由 pcl_test 于 2015-3-12 22:25 编辑
回复 6# panda951
模拟图片代码,按图片的信息输入可实现同样效果,未实现判断功能,待续- @echo off
- setlocal enabledelayedexpansion
- echo insert player name 1 :
- set /p playerA=
- echo insert player name 2 :
- set /p playerB=
- echo begin
- set 1=1,
- set 2=2,
- set 3=3,
- set 4=4,
- set 5=5,
- set 6=6,
- set 7=7,
- set 8=8,
- set 9=9,
- set num=!1!!2!!3!!4!!5!!6!!7!!8!!9!
- set num=%num:~,-1%
- echo player 1 %playerA% move ^<%num%^>:
- set /p t=
- set %t%=
- set num=!1!!2!!3!!4!!5!!6!!7!!8!!9!
- set num=%num:~,-1%
- echo player 2 %playerB% move ^<%num%^>:
- set /p t=
- set %t%=
- set num=!1!!2!!3!!4!!5!!6!!7!!8!!9!
- set num=%num:~,-1%
- echo player 1 %playerA% move ^<%num%^>:
- set /p t=
- set %t%=
- set num=!1!!2!!3!!4!!5!!6!!7!!8!!9!
- set num=%num:~,-1%
- echo player 2 %playerB% move ^<%num%^>:
- set /p t=
- set %t%=
- set num=!1!!2!!3!!4!!5!!6!!7!!8!!9!
- set num=%num:~,-1%
- echo player 1 %playerA% move ^<%num%^>:
- set /p t=
- set %t%=
- echo player 1 %playerA% win
- pause
复制代码
|