Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
dosent work yet-
#bashslots PASSES=500 ROWS=10 RANGE=3 POS=0 RANDOM=$$ declare -a slots NUMSLOTS=21 Initialize_Slots () { for i in $( seq $NUMSLOTS ) do Slots[$i]=0 done echo } Show_Slots () { echo; echo echo -n " " for i in $( seq $NUMSLOTS ) do printf "%3d" ${Slots[$i]} done echo #row of slots: echo "|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|" echo " ||" echo } Move () { i=0 while [ "$i" -lt "$ROWS" ] do Move ((i++)); done SHIFT=11 let "POS += $SHIFT" (( Slots[$POS]++ )) } Run () { p=0 while [ "$p -lt $PASSES" ] do play (( p++ )) POS=0 done } exit $?
run
|
edit
|
history
|
help
0
test
dico.txt
lucky numbers
Array
Example
escribir_en_la_memoria.sh
baitaptrenlop
deneme2
multi
a