Originally Posted by ab@novell.com
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Sure, post away.
Good luck.
racquist wrote:
> Done. Would you like the code?
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - Enigmail: A simple interface for OpenPGP email security
iD8DBQFJjZZZ3s42bA80+9kRAlKPAJ4sQ4dlqzQqwl2b9FV+uj NdufabHQCeN3wn
To/d3cWbXIVKUduu4TtvyOc=
=I3pm
-----END PGP SIGNATURE-----
|
Just a little - you'll have to figure out the rest. :-)
function fill_array
{
index=0
maxval=9
while (( $index < $maxval ))
do
board[$index]=$index
let index=$index+1
done
}
function draw_board
{
clear
echo
print " * * "
print " ${board[0]} * ${board[1]} * ${board[2]} "
print " * * "
print " **********************"
print " * * "
print " ${board[3]} * ${board[4]} * ${board[5]} "
print " * * "
print " **********************"
print " * * "
print " ${board[6]} * ${board[7]} * ${board[8]} "
print " * * "
echo
}
Good luck!
Richard A.