Code Monkey home page Code Monkey logo

wargames's Introduction

wargames

Shell script to simulate the W.O.P.R. computer from WarGames

This is a simple script intended to simulate the interaction with the W.O.P.R. computer from the film WarGames. ( http://www.mgm.com/#/our-titles/2117/WarGames/ )

If you were deranged enough to want to use inetd to have this directly connectable via a telnet port you could:

a) Call it directly

  • Create a wopr user, compile wopr.c into the same directory as wargames.sh
  • Add an entry of the following to inetd.conf telnet stream tcp nowait wopr /.../wargames.sh

b) Call it from telnetd

  • Create a wopr user, compile wopr.c into the same directory as wargames.sh
  • Copy /etc/gettytab 'default' to 'wopr', replace im= with lo=/.../wargames.sh
  • Add an entry of the following to inetd.conf telnet stream tcp nowait wopr /usr/libexec/telnetd telnetd -g wopr -a off -h

The former has the advantage of a telnetd to correctly intepret all the IAC sequences, but will require some clients to use 'telnet -K' to connect

wargames's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wargames's Issues

I keep getting stuck in a loop

So i enter joshua and that succeeds and when i list games this happens GREETINGS PROFESSOR FALKEN.

Is this a game or is it real?

WHAT'S THE DIFFERENCE?

YOU ARE A HARD MAN TO REACH. I COULD NOT FIND
YOU IN SEATTLE AND NO TERMINAL IS IN
OPERATION AT YOUR CLASSIFIED ADDRESS.

and if i say what opperation:
What classified address?

DOD PENSION FILES INDICATE
CURRENT MAILING AS:

DR. ROBERT HUME (A.K.A. STEPHEN W. FALKEN)
5 TALL CEDAR ROAD
GOOSE ISLAND, OREGON 97014

.....

--LOGOUT--

LOGON:
please help!

wopr command not found

So I am trying to run this script in Linux; tried it in Solus. When I attempted to run it I got errors that "wopr: command not found". I attempted to read your README but was a little confused. If there are prerequisites to running this script, couldn't you just include them in the script with if/then statements or something? I'm new to shell scripting so I'm not entirely sure how to make this script work properly for myself.
It's cool, though, from what I can tell you are trying to accomplish from your description and hope I can get it to work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.