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 DEBIAN
atris
atris(1)atris(1)NAME
atris - Tetris-like game with a twist for Unix
SYNOPSIS
atris [options]
DESCRIPTION
Alizarin Tetris includes multi-player support, user-extensible color, shape and sound styles, can use TCP/IP networking and features a few
different AI opponents.
OPTIONS -h, --help
Command line help.
-b, --bg
Flaming background (default).
-n, --noflame
No flaming background.
-s, --sound
Enable sound effects (default).
-q, --quiet
No sound effects.
-w, --window
Windowed display (default).
-f, --fullscreen
Full-screen display.
-d=<X>, --depth=<X>
Set color depth (bpp) to X.
-r=<X>, --repeat=<X>
Set the keyboard repeat delay to X (1 = Slow Repeat, 16 = Fast Repeat).
EXAMPLES
To run this game the standard way, type:
# atris &
To run this game in fullscreen mode, type:
# atris --fullscreen &
AUTHOR
This manual page was written by Pascal Giard <evilynux@yahoo.com> for the Debian GNU/Linux system (but may be used by others).
SEE ALSO
Atris home page
http://www.cs.berkeley.edu/~weimer/atris/
Pascal Giard September 4, 2004 atris(1)