Posts

Showing posts with the label oracle

Eight ball oracle? Sort of

Image
Wrote this program originally for the Trs-80 model 1 and sort of kept it around for all these years. What it does is emulate the old number eight black ball toy that would give you the answers to your questions. There are no fancy graphics, but it seems to work. oracle.html [code]  <html> <body bgcolor="lightblue"> <center><h1>The Oracle</h1> <hr> <form method="post" action="oracle.php">   Enter your question of the future to the oracle:   <br>   <br>   <input type="text" name="message" />   <input type="submit" /> </form> <br> <br> When you press submit, this page will disappear. Then after cogitating, the Oracle will give you the answer. </center> <hr> <br> <a href="http://oeorgan1/game/">Return to the game menu</a> <br> <a href="http://oeorgan1"...

Bash random number.

Random numbers can be extremely important in games. One of the oldest games is sort of a black ball game that tries to emulate a fortune teller. Here will will use bash to create such a game. The code was originally created on the TRS_80 MODEL I using Basic. oracle.sh [code]  #################################### # tcode # #=============================== # Functions #-------------------------------- # pc = position cursor function pc () {                tput cup $1 $2         } function header () {         clear         pc 2 10 ; echo "The Oracle"         } function footer() {         pc 24 0     } # end functions #================================= # Assignments # -------------------------------...