Created
April 10, 2020 07:58
-
-
Save CaViCcHi/3482f5de7e01b5c1c706bb820234cbf6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a= | |
b= | |
c= | |
d= | |
fix=0 | |
declare -a SEQ=( {0..130} ) | |
for a in ${SEQ[@]}; do | |
for b in ${SEQ[@]}; do | |
for c in ${SEQ[@]}; do | |
for d in ${SEQ[@]}; do | |
echo -ne " \r" | |
echo -ne "A:$a B:$b C:$c D:$d \t" | |
[ $(( a + b )) -eq 80 ] && echo -n . || continue | |
[ $(( a + c )) -eq 130 ] && echo -n . || continue | |
[ $(( c - d )) -eq 60 ] && echo -n . || continue | |
[ $(( b + d )) -eq 80 ] && echo -n . || continue | |
fix=1 | |
break | |
done | |
((fix)) && break | |
done | |
((fix)) && break | |
done | |
((fix)) && break | |
done | |
((fix)) && echo -e "Done\n" && echo -e "A:$a B:$b C:$c D:$d\n" || echo "NOPE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment