$RANDOM is a bashism, so should be #! /bin/bash or something really hacky using /dev/random

space invaders would actually be possible in shell using color formatting and storing positions of objects in a bash array to store the positions/conditions of the "sprites" ... mazes, snake, tetris are the easier ones but defender and galaga are even scriptable

I have actually been contemplating writing a mini game engine in shell that simply modifies an svg image (I have have code for automatiacally refreshing an image when the file is modified as part of my simple icon tray - which, btw, I PD'd along with the most permissive license I could come up with for locations that don't recognize public domain ) Pretty much any 2d game you could think of could be rendered using a single svg thanks to "include", but I have not seen too many PD svgs around, so I have been collecting ISC/MIT/BSD/UIUC licensed ones that I come across._________________Web Programming - Pet Packaging 100 & 101

okay, that would be cool.
But the idea of this post is to make something like Speedhack.

I'm working myself in some tiny platform game using ANSI escape sequences for graphics. I don't know if every (virtual) terminal out there supports these, but I'll post it when I fix some minor things._________________"Courage is not the absence of fear, but rather the judgement that something else is more important than fear." -- Ambrose Redmoon

clear
echo "The $LENGHT-character code out of $SET set has been generated."
echo "The code may contain repetitions."
echo "Try to guess it within $ATTEMPTS attempts!"
echo
echo "! - indicates the existence of a correct letter in the correct position."
echo "? - indicates the existence of a correct letter in the wrong position."
echo
echo "Lenght: $LENGHT Set: $SET Attempts: $ATTEMPTS"
echo

I would be nice if you quoted a bit of what you are reacting to. I went and looked at my code and lines 21-23 do serve an important purpose. I assumed that the user would look at the code before running it. Those lines serve to give a false hope of winning.

Sory for the delay guys, I exceeded my bandwidth
Really nice games.
Been a bit busy "working", so I didn't have time to finish anything.
A new game coming soon..._________________"Courage is not the absence of fear, but rather the judgement that something else is more important than fear." -- Ambrose Redmoon

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum