-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
687 lines (636 loc) Β· 20.9 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
#!/usr/bin/bash
clear
echo -e '\e[1;32m
_ _ _ _____ _ _ _
/\ (_) | | | | | __ \ | | | | | |
/ \ _ _ _ ___ | |_ __ _ | |_ _ _ | |__) | __ _ _ __ | |_ __ _ | | | | __ _
/ /\ \ | | | | | | / __| | __| / _` | | __| | | | | | ___/ / _` | | `_ \ | __| / _` | | | | | / _` |
/ ____ \ | | | |_| | \__ \ | |_ | (_| | | |_ | |_| | | | | (_| | | | | | | |_ | (_| | | | | | | (_| |
/_/ \_\ | | \__,_| |___/ \__| \__,_| \__| \__,_| |_| \__,_| |_| |_| \__| \__,_| |_| |_| \__,_|
_/ |
|__/
\e[0m\e[1;33m
____ \e[0m\e[1;36mTenaBot By\e[0m\e[1;33m
/\ __``\ __ __ __ __
\ \ \__\ \ /\ \ \/ /\ \ /`__`\ /\ \
\ \ \__\ \ \ \ \/\/\ \ \ /\ __/ \ \ \__ _
\ \ \_/\ \ \ \ \/\/\ \ \\ \____\ \ \_____\
\/_/ \/_/ \/_/ /\ \/_/ \/____/ \/_____/
____
/\ __\ \e[0m\e[1;31mAxel y Fernanda\e[0m\e[1;33m _
\ \ \___ __ _ __ _ ___ __ _ ___ /\ \ __
\ \ ,__/ /`__`\ /\``__\/\``___``\ /`__`\ \/\``___``\ ___\_\ \ /`__`\
\ \ \/ /\ __/ \ \ \/ \ \ \__/\ \ /\ \L\.\_\ \ \__/\ \ /\ \__/\ \ /\ \L\.\_
\ \_\ \ \____\ \ \_\ \ \_\ \ \_\\ \__/.\_\\ \_\ \ \_\\ \_\L\_\_\\ \__/.\_\
\/_/ \/____/ \/_/ \/_/ \/_/ \/__/\/_/ \/_/ \/_/ \/____\/_/ \/__/\/_/\e[0m
\e[4;32;41mAJUSTA LA PANTALLA PARA QUE LAS LETRAS DE ARRIBA SE PUEDAN VER. PELLIZCA PARA MIMINIZAR:v\e[0m'
sleep 5.0
echo -e '\e[1;36mBuscame en \e[4;34mG\e[0m\e[4;31mo\e[0m\e[4;33mo\e[0m\e[4;34mg\e[0m\e[4;32ml\e[0m\e[4;31me\e[0m\e[1;36m y en \e[1;30;47mY\e[0m\e[1;30;47mo\e[0m\e[1;30;47mu\e[0m\e[1;37;41mT\e[0m\e[0m\e[1;37;41mu\e[0m\e[0m\e[1;37;41mb\e[0m\e[0m\e[1;37;41me\e[0m
\e[1;36mComo: \e[4;32;41mBroz\033[0m'
sleep 5.0
echo -e '\033[0m\033[1;32m
_ _ _ _ _
/ \ ___ | |_ _ _ __ _ | | (_) ____ __ _ _ __ __| | ___
/ _ \ / __| | __| | | | | / _` | | | | | |_ / / _` | | `_ \ / _` | / _ \
/ ___ \ | (__ | |_ | |_| | | (_| | | | | | / / | (_| | | | | | | (_| | | (_) |
/_/ \_\ \___| \__| \__,_| \__,_| |_| |_| /___| \__,_| |_| |_| \__,_| \___/
_
_ __ __ _ __ _ _ _ ___ | |_ ___ ___
| `_ \ / _` | / _` | | | | | / _ \ | __| / _ \ / __|
| |_) | | (_| | | (_| | | |_| | | __/ | |_ | __/ \__ \
| .__/ \__,_| \__, | \__,_| \___| \__| \___| |___/
|_| |_|
\033[0m'
apt-get update
apt-get upgrade
echo -e '\033[0m\033[1;36m
___ _ _ _
|_ _| _ __ ___ | |_ __ _ | | __ _ _ __ __| | ___
| | | `_ \ / __| | __| / _` | | | / _` | | `_ \ / _` | / _ \
| | | | | | \__ \ | |_ | (_| | | | | (_| | | | | | | (_| | | (_) |
|___| |_| |_| |___/ \__| \__,_| |_| \__,_| |_| |_| \__,_| \___/
_ _ _ ____
| \ | | ___ __| | ___ _ | _ \
| \| | / _ \ / _` | / _ \ (_) | | | |
| |\ | | (_) | | (_| | | __/ _ | |_| |
|_| \_| \___/ \__,_| \___| (_) |____/
\033[0m'
apt-get install nodejs -y
apt-get install ffmpeg libwebp -y
apt-get install wget -y
apt-get install imagemagick -y
apt-get install tesseract -y
npm i node-tesseract-ocr
npm i @adiwajshing/[email protected]
echo -e '\033[0m\033[1;31m
___ _ _ _
|_ _| _ __ ___ | |_ __ _ | | __ _ _ __ __| | ___
| | | `_ \ / __| | __| / _` | | | / _` | | `_ \ / _` | / _ \
| | | | | | \__ \ | |_ | (_| | | | | (_| | | | | | | (_| | | (_) |
|___| |_| |_| |___/ \__| \__,_| |_| \__,_| |_| |_| \__,_| \___/
__ __
/ _| / _| _ __ ___ _ __ ___ __ _
| |_ | |_ | `_ ` _ \ | `_ \ / _ \ / _` |
| _| | _| | | | | | | | |_) | | __/ | (_| |
|_| |_| |_| |_| |_| | .__/ \___| \__, |
|_| |___/
\033[0m'
pkg install pulseaudio
pkg install sox
pulse audio -D
pkg install termimage
pkg install toilet
pkg install cowsay
echo -e '\033[0m\033[1;35m
_ _ _ _ _ _ ____
| | | | | | | | | | | | __ __ | _ \
_ | | | | | | _ | | | | | | \ \/ / | | | |
| |_| | | |_| | | |_| | | |_| | > < | |_| |
\___/ \___/ \___/ \___/ /_/\_\ |____/
\033[0m'
pkg install neofetch
neofetch
echo -e '\033[0m\033[1;31m
_ _ _
___ __ _ _ __ ___ | |__ (_) __ _ _ __ __| | ___
/ __| / _` | | `_ ` _ \ | `_ \ | | / _` | | `_ \ / _` | / _ \
| (__ | (_| | | | | | | | | |_) | | | | (_| | | | | | | (_| | | (_) |
\___| \__,_| |_| |_| |_| |_.__/ |_| \__,_| |_| |_| \__,_| \___/
_ _ __
(_) _ __ | |_ ___ _ __ / _| __ _ ____
| | | `_ \ | __| / _ \ | `__| | |_ / _` | |_ /
| | | | | | | |_ | __/ | | | _| | (_| | / / _ _ _
|_| |_| |_| \__| \___| |_| |_| \__,_| /___| (_) (_) (_)
\033[0m'
mv Bro.wav $HOME
mv Broz.png $HOME
cd
cd ..
cd usr
cd etc
rm -r bash.bashrc
cd
cd TenaBot
mv bash.bashrc $HOME/../usr/etc
echo -e '\033[0m\033[1;33m
____ _
/ ___| _ __ __ _ ___ (_) __ _ ___ _ __ ___ _ __
| | _ | `__| / _` | / __| | | / _` | / __| | `_ \ / _ \ | `__|
| |_| | | | | (_| | | (__ | | | (_| | \__ \ | |_) | | (_) | | |
\____| |_| \__,_| \___| |_| \__,_| |___/ | .__/ \___/ |_|
|_|
__ _
_ __ _ __ ___ / _| ___ _ __ (_) _ __
| `_ \ | `__| / _ \ | |_ / _ \ | `__| | | | `__|
| |_) | | | | __/ | _| | __/ | | | | | |
| .__/ |_| \___| |_| \___| |_| |_| |_|
|_|
_____ ____ _
|_ _| ___ _ __ __ _ | __ ) ___ | |_
| | / _ \ | `_ \ / _` | | _ \ / _ \ | __|
| | | __/ | | | | | (_| | | |_) | | (_) | | |_
|_| \___| |_| |_| \__,_| |____/ \___/ \__|
\033[0m'
sleep 3.0
echo -e '\033[0m\033[1;31m
____ _ _ ____ ____ ____ ___ ____ _____ _____ _____
/ ___| | | | | / ___| / ___| | _ \ |_ _| | __ ) | ____| |_ _| | ____|
\___ \ | | | | \___ \ | | | |_) | | | | _ \ | _| | | | _|
___) | | |_| | ___) | | |___ | _ < | | | |_) | | |___ | | | |___
|____/ \___/ |____/ \____| |_| \_\ |___| |____/ |_____| |_| |_____|
_ __ __ ___ ____ _ _ _ _ _
/ \ | \/ | |_ _| / ___| / \ | \ | | / \ | |
/ _ \ | |\/| | | | | | / _ \ | \| | / _ \ | |
/ ___ \ | | | | | | | |___ / ___ \ | |\ | / ___ \ | |___
/_/ \_\ |_| |_| |___| \____| /_/ \_\ |_| \_| /_/ \_\ |_____|
\033[0m'
echo -e '\033[0m\033[1;36m
_ __ __ _____ _
/ \ \ \/ / | ____| | |
/ _ \ \/ / | _| | |
/ ___ \ / /\ | |___ | |___
/_/ \_\ /_/\_\ |_____| |_____|
| |
,---.,---. ,---.. .|---.,---. ,---.,---.,---|,---.
| || | `---.| || || | | |,---|| |,---|
` ``---` `---``---``---Β΄`---Β΄ ` ``---^`---``---^
|
,---.,---.,---.,---. ,---.,---.|--- ,---.,---. o. ,
| ||---Β΄| | | |---Β΄| || | ,---| \ /
|---``---`` `---` `---`` ``---`` `---^ o ``
|
\033[0m'
sleep 3.0
echo -e '\033[0m\033[1;31m
VERIFICANDO SI TODO ESTA CORRECTO
\033[0m'
echo -e '\033[0m\033[1;36m
__ __ _____ ____ ___ _____ ___ ____ _ _ _ ____ ___
\ \ / / | ____| | _ \ |_ _| | ___| |_ _| / ___| / \ | \ | | | _ \ / _ \
\ \ / / | _| | |_) | | | | |_ | | | | / _ \ | \| | | | | | | | | |
\ V / | |___ | _ < | | | _| | | | |___ / ___ \ | |\ | | |_| | | |_| | _ _ _
\_/ |_____| |_| \_\ |___| |_| |___| \____| /_/ \_\ |_| \_| |____/ \___/ (_) (_) (_)
\033[0m'
sleep 3.0
npm i ffmpeg
npm i cfonts
echo -e '\033[0m\033[1;32m
__ __
/ _| / _| _ __ ___ _ __ ___ __ _
| |_ | |_ | `_ ` _ \ | `_ \ / _ \ / _` |
| _| | _| | | | | | | | |_) | | __/ | (_| |
|_| |_| |_| |_| |_| | .__/ \___| \__, |
|_| |___/
_ _ _ _
(_) _ __ ___ | |_ __ _ | | __ _ __| | ___
| | | Β΄_ \ / __| | __| / _` | | | / _` | / _` | / _ \
| | | | | | \__ \ | |_ | (_| | | | | (_| | | (_| | | (_) |
|_| |_| |_| |___/ \__| \__,_| |_| \__,_| \__,_| \___/
\033[0m'
sleep 3.0
echo -e '\033[0m\033[1;32m
_ _ _
| \ | | ___ __| | ___
| \| | / _ \ / _` | / _ \
| |\ | | (_) | | (_| | | __/
|_| \_| \___/ \__,_| \___|
_ _ _ _
(_) _ __ ___ | |_ __ _ | | __ _ __| | ___
| | | Β΄_ \ / __| | __| / _` | | | / _` | / _` | / _ \
| | | | | | \__ \ | |_ | (_| | | | | (_| | | (_| | | (_) |
|_| |_| |_| |___/ \__| \__,_| |_| \__,_| \__,_| \___/
\033[0m'
npm i
sleep 3.0
echo -e '\033[0m\033[1;36m
____ _ _
| _ \ _ __ _ _ ___ | |__ __ _ __| | ___
| |_) | | Β΄__| | | | | / _ \ | `_ \ / _` | / _` | / _ \
| __/ | | | |_| | | __/ | |_) | | (_| | | (_| | | __/
|_| |_| \__,_| \___| |_.__/ \__,_| \__,_| \___|
_ _
__ _ _ _ __| | (_) ___
/ _` | | | | | / _` | | | / _ \
| (_| | | |_| | | (_| | | | | (_) | _ _ _
\__,_| \__,_| \__,_| |_| \___/ (_) (_) (_)
\033[0m'
play Broz.wav
termimage nyan.png
npm audit fix --force
# Author: Ashton Seth Reimer
# Date: Summer 2010
# License: See the license file included in the repository on github:
# https://github.com/asreimer/bash_hangman
# ---
# Date: Fall 2019
declare -a word
declare -a word_img
declare -a alpha_img
i=0
incorrect=0
wordindex=0
correct=0
alpha=("a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" "p" "q" "r" "s" "t" "u" "v" "w" "x" "y" "z")
char=0
idioma=0
resp_idioma=0
RED="\033[0;31m"
GREEN="\033[0;32m"
YELLOW="\033[1;33m"
NC="\033[0m" #No color
#this function reads the list of words from the dict.dat file and
#put them into the word array
function readfile
{
exec 3<&0
while [[ $resp_idioma != 1 && $resp_idioma != 2 ]]
do
# Borra pantalla
printf "\e[2J\e[H"
echo -e '\033[0m\033[1;36m
Vamos a jugar Al muertito :D (Ahorcado:v)
\033[0m'
echo -e '\033[0m\033[1;31m
Si no quieres jugar solo presiona CTRL+c
\033[0m'
echo -ne "Elige un idioma: / Choose a language:
EspaΓ±ol (Es) / English (En) \n"
echo -n "Es = 1 / En = 2: "
read resp_idioma
char=$resp_idioma
done
if [ ${resp_idioma} -eq "1" ]
then
exec 0< dict_es.dat
else
exec 0< dict_en.dat
fi
while read LINE
do
word[i]=$LINE
i=`expr $i + 1`
done
exec 0<&3
}
#this function randomly selects a word from the word array.
function readword {
word_index=$RANDOM
while [ $word_index -ge $i ]
do
word_index=$RANDOM
done
a=0
while [ $a -lt ${#word[${word_index}]} ]
do
word_img[$a]=0
a=`expr $a + 1`
done
}
#this function solicits a guess from the user and then checks
#the guess to see if it is valid/correct/incorrect.
function guess
{
j=0
correct=0
if [ ${resp_idioma} -eq "1" ]
then
echo -n "Escoje una letra: "
else
echo -n "Guess a letter: "
fi
read guess
char=$guess
if [ ${#guess} -eq "1" ]
then
guess=`echo $guess | tr "[:upper:]" "[:lower:]"`
while [ $j -lt ${#word[${word_index}]} ]
do
if [ "$guess" == "${word[${word_index}]:$j:1}" ]
then
word_img[${j}]=1
correct=1
fi
j=`expr $j + 1`
done
fi
r=0
numletter=0
while [ ! $r == ${#word[${word_index}]} ]
do
numletter=`expr $numletter + ${word_img[$r]}`
r=`expr $r + 1`
done
}
#the following functions draw the gallows and hanged man to the terminal
function gallows
{
clear
printf "$GREEN"
echo " __________"
echo " | |"
echo " | |"
echo " |"
echo " |"
echo " |"
echo " |"
echo " |"
echo " |"
echo " |"
echo " |"
echo " |"
echo " _____________|_____"
echo " "
printf "$NC"
}
function gallows_head
{
clear
printf "$GREEN"
echo " __________"
echo " | |"
echo " | |"
echo " _/_\_ |"
echo " |_| |"
echo " |"
echo " |"
echo " |"
echo " |"
echo " |"
echo " |"
echo " |"
echo " _____________|_____"
echo " "
printf "$NC"
}
function gallows_body {
clear
printf "$GREEN"
echo " __________"
echo " | |"
echo " | |"
echo " _/_\_ |"
echo " |_| |"
echo " | |"
echo " | |"
echo " | |"
echo " | |"
echo " |"
echo " |"
echo " |"
echo " _____________|_____"
echo " "
printf "$NC"
}
function gallows_arm1 {
clear
printf "$YELLOW"
echo " __________"
echo " | |"
echo " | |"
echo " _/_\_ |"
echo " |_| |"
echo " | |"
echo " ---| |"
echo " | |"
echo " | |"
echo " |"
echo " |"
echo " |"
echo " _____________|_____"
echo " "
printf "$NC"
}
function gallows_arm2 {
clear
printf "$YELLOW"
echo " __________"
echo " | |"
echo " | |"
echo " _/_\_ |"
echo " |_| |"
echo " | |"
echo " ---|--- |"
echo " | |"
echo " | |"
echo " |"
echo " |"
echo " |"
echo " _____________|_____"
echo " "
printf "$NC"
}
function gallows_leg1 {
clear
printf "$RED"
echo " __________"
echo " | |"
echo " | |"
echo " _/_\_ |"
echo " |_| |"
echo " | |"
echo " ---|--- |"
echo " | |"
echo " | |"
echo " / |"
echo " / |"
echo " |"
echo " _____________|_____"
echo " "
printf "$NC"
}
function gallows_leg2 {
clear
printf "$RED"
echo " __________"
echo " | |"
echo " | |"
echo " _/_\_ |"
echo " |_| |"
echo " | |"
echo " ---|--- |"
echo " | |"
echo " | |"
echo " / \ |"
echo " / \ |"
echo " |"
echo " _____________|_____"
echo " "
printf "$NC"
}
#this function prints the win screen
function win_es {
echo " ____ _ _ "
echo "| __ )(_) ___ _ __ | |"
echo "| _ || |/ _ | '_ | | |"
echo "| |_) | || __/ | | | |_|"
echo "|____/|_||___|_| |_| (_)"
echo -en "\n\n\n"
}
#this function prints the win screen
function win_en {
echo "* * ******* * * * "
echo "* * * ** * * "
echo "* * * * * * * "
echo "* * * * * * * "
echo " * * * * * ** "
echo " * * ******* * * * "
echo -en "\n\n\n"
}
#this function prints the lose screen
function lose_en {
echo "lose..."
echo "The word was: ${word[$word_index]}"
}
#this function prints the lose screen
function lose_es {
echo "Perdiste..."
echo "La palabra era: ${word[$word_index]}"
}
#this function prints the guessed letters to the screen and
#underscores for letters that haven't been guessed
function print_alpha {
if [ ${resp_idioma} -eq "1" ]
then
echo -e "\nLetras ya dichas:"
else
echo -e "\nLetters Guessed:"
fi
e=0
while [ ! "$e" == "26" ]
do
if [ "$char" == "${alpha[$e]}" ]
then
alpha_img[$e]="1"
fi
if [ ${alpha_img[$e]} == "1" ]
then
echo -n ${alpha[$e]}
else
echo -n "-"
fi
if [ $e == "12" ]
then
echo -e "\n"
fi
e=`expr $e + 1`
done
echo -ne "\n\n"
char=""
}
#a function to print the correctly guessed letters of the word to the
#screen or else an underscore for letters no yet guessed
function print_word {
if [ ${resp_idioma} -eq "1" ]
then
echo -ne "\nPalabra: "
else
echo -ne "\nWord: "
fi
t=0
while [ ! $t == ${#word[${word_index}]} ]
do
if [ ${word_img[${t}]} == "1" ]
then
echo -n "${word[${word_index}]:$t:1}"
else
echo -n "-"
fi
t=`expr $t + 1`
done
echo -e "\n\n"
}
#####################################
# beginning of the main program here!
#####################################
readfile;
gameover=0
incorrect=0
correct=0
while [ "$gameover" == "0" ]
do
a=0
while [ ! "$a" == "26" ]
do
alpha_img[$a]=0
a=`expr $a + 1`
done
word_img=0
alpha_img=0
incorrect=0
correct=0
readword;
a=0
gallows;
print_alpha;
print_word;
#check for winning/losing conditions and update status of hanged man
while [[ ! "${numletter}" == "${#word[${word_index}]}" && ! "$incorrect" == "6" ]]
do
guess;
if [ $correct == "0" ]
then
incorrect=`expr $incorrect + 1`
fi
if [ $incorrect == "0" ]
then
gallows;
elif [ $incorrect == "1" ]
then
gallows_head;
elif [ $incorrect == "2" ]
then
gallows_body;
elif [ $incorrect == "3" ]
then
gallows_arm1;
elif [ $incorrect == "4" ]
then
gallows_arm2;
elif [ $incorrect == "5" ]
then
gallows_leg1;
elif [ $incorrect == "6" ]
then
gallows_leg2;
fi
print_alpha;
print_word;
done
if [ "${numletter}" == "${#word[${word_index}]}" ]
then
#clear
if [ ${resp_idioma} -eq "1" ]
then
win_es;
else
win_en;
fi
gameover=1
fi
if [ $incorrect == "6" ]
then
if [ ${resp_idioma} -eq "1" ]
then
lose_es;
else
lose_en;
fi
gameover=1
fi
if [ "$gameover" == "1" ]
then
if [ ${resp_idioma} -eq "1" ]
then
echo -e "\n\n ΒΏJugar de nuevo? (s/n)"
else
echo -e "\n\n Play again? (y/n)"
fi
read answer
if [ $answer == 'y' ] || [ $answer == 's' ]
then
gameover=0
fi
clear
fi
done
exit 0