Introduction: Joshua Program

About: I'm Brandon. I program and make food that will most likely kill you. Then I make Instructables about them!

Hey, remember that movie with Matthew Brodrick made forever ago that you loved and always wanted to do. Wargames. You know, how he totally almost instigated a Global Thermonuclear War.

Well, now you can have "Joshua"

This is just a simple batch you can just copy paste this into notepad and save it as a Batch, but this took  me awhile to make and figure out so leave some comments!

Step 1: Copypasta

**********************
**********************
** MADE BY ITzEPiiC **
******* 2010 *********
**********************
**********************

@ECHO OFF

:header
title WOPR
cls
goto start

*********************************************************************************************

:start
color 0F
set name=
set /p name=Your name:
if '%name%'=='James' goto password
if not '%name%'=='James' goto lock

:password
set /p password=Password:
if '%password%'=='Joshua' goto unlock
if not '%password%'=='Joshua' goto lock

:lock
cls
echo Identification not recognized by system.
echo.
echo --Connection Terminated--
pause>nul
goto end

**********************************************************************************************

:unlock
cls
echo.
set /p a= Greetings %name%. 
echo.
set /p b= How are you feeling today? 
echo.
set /p c= It's been a long time. Can you explain the removal of your user account in 1983? 
echo.
set /p games= Its alright. Shall we play a game? (yes/no) 
if not '%games%'=='yes' goto hate
if '%games%'=='yes' goto games

**********************************************************************************************
:games
set /p games= Choose on of the following: Chess, Hearts, Spades. END OF LIST. 
if '%games%'=='Chess' goto chess
if '%games%'=='chess' goto chess
if '%games%'=='Hearts' goto hearts
if '%games%'=='hearts' goto hearts
if '%games%'=='Spades' goto spades
if '%games%'=='spades' goto spades
if '%games%'=='Global Thermonuclear War' goto GTW
if not '%games%'=='Chess' goto hate
if not '%games%'=='chess' goto hate
if not '%games%'=='Hearts' goto hate
if not '%games%'=='hearts' goto hate
if not '%games%'=='Spades' goto hate
if not '%games%'=='spades' goto hate

pause

*********************************************************************************************

:chess
start iexplore http://www.chess.com/play/computer.html
pause>nul

:hearts
start iexplore http://www.games.com/game-play/hearts/single/
pause>nul

:spades
start iexplore http://www.grab.com/games/play-spades
pause>nul

:GTW
start explore http://grognard.com/
pause>nul

**********************************************************************************************

:hate
cls
echo.
echo Okay, then screw you. I'm a computer, I don't need you, I haz the interwebz.
pause>nul

:end
exit


Step 2: **VIEW THIS STEP!**

Yea, you might want to go to this step, because otherwise its not going to work.

set /p name=Your name:
if '%name%'=='James' goto password
if not '%name%'=='James' goto lock

Find this piece of code inside the rest....Okay, got it? Change 'James' to whatever your name is. My name is James so that's why its set to that. Otherwise, you'll put your name in there and it will kick you out.

color 0F

This makes the background black and the text white, just like in the movie.


set /p games= Choose on of the following: Chess, Hearts, Spades. END OF LIST.

While this is the "list of games" its still set to where if you put in Global Thermonuclear War then it will bring up a war-type game.


That's about it. If you have any suggestions for the code, go ahead and leave them in the comments.