This batch script took me two days, so I marked it as original.
I also posted this batch script on Batch Processing Home. If there is any similarity with other posts, it's purely coincidental.
Welcome everyone to point out mistakes, thank you.
Post 41
Added background music "Spring River Flowers and Moonlight", a sound like flowing water on a mountain, it's so cool to play Go while listening, including the playback code and music file is only 96K.
Mouse operation version
Post 50
Latest at post 60 2009.8.1
I also posted this batch script on Batch Processing Home. If there is any similarity with other posts, it's purely coincidental.
Welcome everyone to point out mistakes, thank you.
Post 41
Added background music "Spring River Flowers and Moonlight", a sound like flowing water on a mountain, it's so cool to play Go while listening, including the playback code and music file is only 96K.
Mouse operation version
Post 50
Latest at post 60 2009.8.1
@echo off&setlocal enabledelayedexpansion
set li0=┌───────────────────┐
set li1=│┌┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┐│1
for /l %%a in (2,1,18) do (set li%%a=│├┼┼┼┼┼┼┼┼┼┼┼┼┼┼┼┼┼┤│%%a)
set li19=│└┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┘│19
set li20=└───────────────────┘
set li21= A B C D E F G H I J K L M N O P Q R S
for %%a in (%li21%) do (set/a .+=1,%%a=.&set z!.!=%%a)
set z0= &set z20= &set "z21= "
set li5=!li5! Five Chess Pieces Human-Computer Battle
set li7=!li7! Batch Processing
set li9=!li9! Computer Level Medium
set li12=!li12! Written by netbenton
set li14=!li14! Chessboard design refers to batman
title Batch Processing Go
set str=###################
set .=0
for /l %%a in (1,1,19) do (
set he%%a=!str!&set sh%%a=!str!
for /l %%b in (1,1,19) do set
:
if /i "!var!" equ "Q" goto :eof
if /i "!var!" equ "W" (set zhi=●) else (set zhi=○)
echo.
:loop
if %zhi% equ ● goto :men
set .=&set put1=
for %%a in (!idea!) do (
for %%b in (he sh) do (
for /l %%c in (1,1,19) do (
if "!%%b%%c:%%a=!" neq "!%%b%%c!" set/a .+=1&set put!.!=%%b %%c
) )
for %%b in (pi ni) do (
for /l %%c in (5,1,33) do (
if "!%%b%%c:%%a=!" neq "!%%b%%c!" set/a .+=1&set put!.!=%%b %%c
) )
if defined put1 set put=%%a&goto :get
)
echo. It's a draw
pause
goto :restart
:men
for /l %%a in (0,1,21) do (echo !z%%a!!li%%a!)
set /p user=:
echo.
if "!user!" equ "reboot" endlocal&goto :restart
if "!user!" equ "exit" exit
set/a pos=!user:~0,1!,poh=!user:~1,2!,var=pos-1 2>nul
if not defined
[ Last edited by netbenton on 2009-8-3 at 06:06 ]
Recent Ratings for This Post
( 9 in total)
Click for details





