text
stringlengths
0
834k
set d8=8
set d9=9
::~ Sets the display characters for game to their appropriate 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, then multiplies by two.
::~ If the number was even, it would be equal to ""rnumber2"", if it was odd it would end up one less than ""rnumber2""
::~ This is the method I use to create a 50% chance, as there's a 50% that a random number will be odd or even
if %rnumber%==%rnumber2% (
echo Crosses go first
echo You are noughts
pause>nul
set rnumber=
set rnumber2=