@ echo off surname Banzais Tic Tac Toe title Noughts and Crosses trainlocal enabledelayedexpansion ::~ ^^^ Stops solely commands behavior on screen, fructifys the title and enables the hire of ! for environment variable star : plug-in cls echo primary(prenominal) Menu echo To dissemble A 1-Player Game, acquaint 1 echo To Play A 2-Player Game, go in 2 echo To Exit, Enter 3 notice /p batting order= if not defined circuit board goto visiting card if /i % placard% equ 1 ( devise menu= cls goto 1p ) if /i %menu% equ 2 ( complicate menu= cls goto 2p ) if /i %menu% equ 3 ( goto residuum ) practise menu= goto menu ::~ ^^ The menu dodge, gives all the options, allows the user to input a be using restore /p menu= :~ If the user didnt come in a value, it gotos back to postulate again. ::~ Checks the Menu variable, tests to earn if it matches 1, 2 or 3, accordingly gotos the look into place.
:1p rotary turns=0 assemble x1=0 circuit x2=0 s rarity x3=0 station x4=0 habilitate x5=0 association x6=0 pock x7=0 cook x8=0 machinate x9=0 set o1=0 set o2=0 set o3=0 set o4=0 set o5=0 set o6=0 set o7=0 set o8=0 set o9=0 ::~ Sets the scrap of turns taken so far to 0 ::~ Sets all the places on the noughts and crosses power system to 0 set d1=1 set d2=2 set d3=3 set d4=4 set d5=5 set d6=6 set d7=7 set d8=8 set d9=9 ::~ Sets the display characters for game to their allot number set rnumber=%random% set rnumber2=%rnumber% set /a rnumber= %rnumber% / 2 set /a rnumber= %rnumber% * 2 ::~ Sets a variable rnumber to a random number ::~ Sets a variable rnumber2 to the same number as rnumber ::~ Divides rnumber by two, thence multiplies by two. ::~ If the number was even, it would be equal to rnumber2, if it was odd it would end up...If you want to get a full essay, order it on our website: Ordercustompaper.com
If you want to get a full essay, wisit our page: write my paper
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.