先帮你简化一下棋盘吧。
那么多 echo
:- @echo off && setlocal enabledelayedexpansion
- color 27 & mode con cols=35 lines=20
- set BQ=●&set HQ=○&set KB=┼&set xz=0&set yx=1
- del bq.wzq,hq.wzq>nul 2>nul
- :home
- for %%i in (a b c d e f g h i j k l m) do (
- for %%j in (1 2 3 4 5 6 7 8 9 10 11 12 13)do (
- set %%i%%j=%KB%))
- for /f %%k in (bq.wzq) do (set %%k=%bq%)
- for /f %%k in (hq.wzq) do (set %%k=%hq%)
- cls&echo\&echo ABCDEFGHIJKLM
- echo ┌┬┬┬┬┬┬┬┬┬┬┬┬┬┐
- for /l %%i in (1 1 10) do (
- if %%i equ 10 (set /p= %%i├<nul) else set/p= %%i├<nul
- for %%z in (a b c d e f g h i j k l m) do set/p=!%%z%%i!<nul
- set/p=┤<nul&echo.
- )
- echo └┴┴┴┴┴┴┴┴┴┴┴┴┴┘
- if %yx% equ 1 (
- echo.&set /p xz=现在是[●],请下子:
- echo !xz!>>bq.wzq
- set yx=0) else (
- echo.&set /p xz2=现在是[○],请下子:
- echo !xz2!>>hq.wzq
- set yx=1)
- goto :home
复制代码
|