💾 Archived View for rawtext.club › ~samhunter › random › rr captured on 2024-08-18 at 22:41:41.

View Raw

More Information

⬅️ Previous capture (2021-12-03)

🚧 View Differences

-=-=-=-=-=-=-

#! /bin/bash
declare -a gun=(X O O O O O)
declare -i pos=$((1+RANDOM%6))
declare -i rot=$((5+RANDOM%30))
for ((i=0;i<pos;i++)){ gun=( ${gun[@]:5} ${gun[@]:0:5} ); }
for ((i=0;i<rot;i++)){
	gun=( ${gun[@]:5} ${gun[@]:0:5} )
	printf  "\x1b[20D%s %s %s (%s) %s %s" "${gun[@]}"
	sleep 0.3
}
echo 
[ "${gun[3]}" == "X" ] && { echo "**BANG**"; echo -e "\x1b[38;5;1m\x1b[41m"; clear; sleep 2; } ||  echo "**Click**"