Been trying to understand the code in tetris game (in the sticky threads) & i know i have a alot reading /practice to do. it's using advanced methods with arrays and arithmetic and would much appreciate if some one can guide me to good books that's not outdated that would help me take bash understanding further. thanks in advance.
hi everybody.
please help me in understanding this code.
echo "************* starting job on `date +\"%d/%m/%Y at %T\"` **************"
#
scriptdir=`dirname $0`
. ${scriptdir}/env_params.sh
#
SHLIB_PATH=${ORACLE_HOME}/lib:
export SHLIB_PATH
export... (1 Reply)
Hi!
I have the following script and do not understand part of it. I have a very little understanding of scripting.
The script is for Nagios to check the response of fast-com.de. The guy who has written it is no longer in the company.
#!/bin/sh
PATH=/adm/bin:/bin:/usr/bin
export PATH
... (2 Replies)
hello all,
May i know what is this "DEBUG_ME $DEBUG_CMD main" doing in the below code. I am confused with alias also "alias DEBUG_ME='#'". Thanks for your help.
set -x
alias DEBUG_ME='#'
if ; then
. /product/apps/informatica/v7/pc/ExtProc/debug.ksh "$1"
fi
# Declaring the... (1 Reply)
Well, I found myself trying to fix some Perl code (Ive never done any Perl in my life) and I pinpointed the place where the bug could be. But to be sure I have to know what does a few line of code mean:
$files_lim =~ (/^\d*$/)
$files_lim =~ (/^\d*h$/)$files_age =~ s/h//The code where this was... (0 Replies)
Well, I found myself trying to fix some Perl code (Ive never done any Perl in my life) and I pinpointed the place where the bug could be. But to be sure I have to know what does a few line of code mean:
$files_lim =~ (/^\d*$/)
$files_lim =~ (/^\d*h$/)
$files_age =~ s/h//
The code where... (2 Replies)
What is the difference between the two statements below?
A:
$a->{"$fruit"}->{"$color"}->{size} = $size
B:
$size = $a->{"$fruit"}->{"$color"}->{size}
Please assist. Thanks! (0 Replies)
GitHub - deepgrace/tetris: Tetris implementation in all kinds of Programming Languages
Usage: bash Tetris_Game ] ] ] ]
Range:
#!/bin/bash
# Tetris Game // The Art Of Shell Programming
box0=(4 30)
box1=(4 30 4 32)
box2=(4 30 5 32)
box3=(4 28 4 30 4 32)
box4=(4 28 4 30... (69 Replies)
Discussion started by: complex.invoke
69 Replies
LEARN ABOUT SUSE
trek
TREK(6) BSD Games Manual TREK(6)NAME
trek -- trekkie game
SYNOPSIS
trek [[-a] file]
DESCRIPTION
trek is a game of space glory and war. Below is a summary of commands. For complete documentation, see Trek by Eric Allman.
If a filename is given, a log of the game is written onto that file. If the -a flag is given before the filename, that file is appended to,
not truncated.
The game will ask you what length game you would like. Valid responses are ``short'', ``medium'', and ``long''. You may also type
``restart'', which restarts a previously saved game. You will then be prompted for the skill, to which you must respond ``novice'',
``fair'', ``good'', ``expert'', ``commodore'', or ``impossible''. You should normally start out with a novice and work up.
In general, throughout the game, if you forget what is appropriate the game will tell you what it expects if you just type in a question
mark.
AUTHOR
Eric Allman
SEE ALSO
/usr/share/doc/bsd-games/trek.me
COMMAND SUMMARY
abandon
capture
cloak up/down
computer request; ...
damages
destruct
dock
help
impulse course distance
lrscan
move course distance
phasers automatic amount
phasers manual amt1 course1 spread1 ...
torpedo course [yes] angle/no
ram course distance
rest time
shell
shields up/down
srscan [yes/ no]
status
terminate yes/no
undock
visual course
warp warp_factor
BSD December 30, 1993 BSD