-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphainocode.sh
executable file
·1633 lines (1579 loc) · 56.6 KB
/
phainocode.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
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/bin/bash
set -e
clear
start(){
echo -e "Phainocode 4.1\n"
echo -e "Welcome to Phainocode 4.1 bash implementation (v0.5)!\nSource: https://github.com/Whiletruedoend/phainocode\n\nPlease, choose option:\n"
echo "1. Encrypt"
echo "2. Decrypt (NOT YET)"
echo -e "3. Quit\n"
menu;
}
menu(){
read -e -p "Enter value [1-3]: " OPTION
if [[ $OPTION -eq 1 ]]; then
encryptMenu;
elif [[ $OPTION -eq 2 ]]; then
decryptMenu;
elif [[ $OPTION -eq 3 ]]; then
exit 0;
else
echo "Wrong option value!"
menu;
fi
}
finish(){
CODE="$1"
read -e -p "Export results into file? [y/N]: " EXPORT
EXPORT=${EXPORT:-"N"}
if [[ $EXPORT == "Y" ]] || [[ $EXPORT == "y" ]]; then
FILE_NAME=`date +"%Y_%m_%d_%H_%M_%S"`
EXPORT_PATH="$HOME/pcode_$FILE_NAME.txt"
echo $CODE > $EXPORT_PATH
echo "Successfully exported to: $EXPORT_PATH"
fi
read -e -p "Show results? [Y/n]: " SHOW
SHOW=${SHOW:-"Y"}
if [[ $SHOW == "y" ]] || [[ $SHOW == "Y" ]]; then
echo -e "Results:\n"
echo $CODE
fi
}
encryptMenu(){
read -e -p "Read instructions? [y/N]: " INSTRUCTIONS
INSTRUCTIONS=${INSTRUCTIONS:-"N"}
if [[ $INSTRUCTIONS == "Y" ]] || [[ $INSTRUCTIONS == "y" ]]; then
instructions
fi
NEW_CODE="Phaino 4.1"
CURRENT_ANSWER=1
TOTAL_ANSWER_COUNT=72
#template
#clear
#echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
#echo -e "Answer"
#EXAMPLE="AnBdfg"
#PERMITTED_SYMBOLS="A B C D E G H J L M N O P S T U W a c d e l m n p s u x # 0 @ & ? ~ + - * $ > ! % < = 1 2 3 4 5"
#NEW_CODE="$NEW_CODE$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS") "
#CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#hobby
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Choose your hobby (maybe several):
A - artistic arts;
B - biology and medicine;
C - communications;
D - home economics and construction;
E - electrical equipment;
G - graphics;
H - social manipulation (hacking);
J - jurisprudence;
L - linguistics and semiotics;
M - mathematics and computer science;
N - exact natural sciences;
O - exploitation and improvement of the organism;
P - computer science {PC};
S - social sciences;
T - publishing and proofreading {typing};
U - journalism;
W - security and military activities;
a - mechanical engineering {automobile};
c - commerce;
d - design;
e - education;
l - literature;
m - music;
h - philosophy;
p - policy;
s - psychology;
u - cooking;
x - non-academic sciences and theories {x-science}.\n"
EXAMPLE="AMPSam"
PERMITTED_SYMBOLS="A B C D E G H J L M N O P S T U W a c d e l m h n p s u x # 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE _$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#birthdate
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Enter your date of Birth: <n1><n2><n3>
The <n1> parameter specifies the day as a two-digit number;
The <n2> parameter specifies the month as a two-digit number;
The <n3> parameter specifies the year as the last 2 digits in the Gregorian
lendar. The parameter can be omitted;\n"
EXAMPLE="151295"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5 6 7 8 9"
NEW_CODE="$NEW_CODE b$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#gender&sexuality
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Enter your gender and sexuality: <l><s>
The l parameter indicates gender and related characteristics:
X - female;
Y - male;
' - virginity;
The parameter s describes the degree of sexuality:
5 - 'I think only about sex';
4 - active;
3 - normal;
2 - below average;
1 - 'antisex';\n"
EXAMPLE="X'1"
PERMITTED_SYMBOLS="X Y ' # 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE X$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#bod
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Enter your body type: <n><s>
The parameter n describes the height in cm.
The parameter s describes the relative nature of the transverse physique:
5 - fat;
4 - thicker than average;
3 - normal;
2 - thinner than average;
1 - thin;\n"
EXAMPLE="1803"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5 6 7 8 9"
NEW_CODE="$NEW_CODE bod$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#kg
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Enter your body weight in kg\n"
EXAMPLE="85"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5 6 7 8 9"
NEW_CODE="$NEW_CODE kg$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#Har
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Enter Hair color and type: <l><s>
The l parameter describes the color and related characteristics:
B - black;
b - brown;
g - grey;
l - light;
r - red;
w - white;
\" - wig;
' - the hair is artificially dyed;
The s parameter describes the length/thickness of the hairstyle:
5 - below the belt;
4 - from the shoulders to the waist;
3 - thick hair, but not long;
2 - short haircut;
1 - bald or shaved;\n"
EXAMPLE="r'3"
PERMITTED_SYMBOLS="B b g l r w \" ' # 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE Har$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#har
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Enter your facial vegetation: <s1><s2><s3>
The s1 parameter describes the beard:
5 - long beard;
4 - short beard;
3 - \"weekly unshaven\";
2 - \"two days unshaven\";
1 - clean shaven;
The s2 parameter describes the mustache:
3 - \"like a cricket\";
2 - small;
1 - clean shaven;
The s3 parameter describes the sideburns:
3 - sideways;
2 - medium;
1 - absent;\n"
EXAMPLE="422"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE har$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#eye
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Enter your eye color and vision: <l><s>
The l parameter describes the color of the iris:
B - black;
G - green;
b - brown;
g - grey;
l - light-blue;
r - red;
The s parameter describes the features of vision:
5 - \"I see like an eagle\";
4 - normal;
3 - \"I don't see very well, but I don't wear glasses or contact lenses\";
2 - \"I wear contact lenses\";
1 - \"I wear glasses\";\n"
EXAMPLE="G/l4"
PERMITTED_SYMBOLS="B G b g l r # 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE eye$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#skn
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Enter your skin color:
5 - \"negro\";
4 - swarthy;
3 - tanned European;
2 - slightly tanned European;
1 - \"pale toadstool\";\n"
EXAMPLE="2"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE skn$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#drs
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Enter clothing type: <s1><s2><s3>
The s1 parameter describes the preferred clothing style:
5 - strictly official;
4 - with a tendency towards formality;
3 - standard;
2 - with a tendency to the caller;
1 - the caller;
The s2 parameter describes the fashion of the clothes:
5 - \"according to the last squeak\";
4 - \"I try to keep up\";
3 - indifferent;
2 - with a tendency towards conservatism;
1 - stubborn conservative;
The s3 parameter describes the personality of the garment:
5 - completely individual style;
4 - \"I try to stick to a certain style\";
3 - indifferent;
2 - \"I dress normally\";
1 - \"I completely blend in with the crowd on the street\";\n"
EXAMPLE="332"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE drs$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#bad
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Enter bad habits: <s1><s2><s3>
The s1 parameter describes the consumption of alcoholic beverages:
5 - a convinced teetotaler;
4 - only on special days;
3 - moderate;
2 - \"I love it more often\";
1 - \"Nutro demands regularly.\"
The s2 parameter describes smoking:
5 - \"I can't stand tobacco smoke organically\";
4 - \"I do not smoke\";
3 - occasionally;
2 - moderate;
1 - \"This is what my lungs love\";
The s3 parameter describes the use of other psychoactive substances:
5 - \"I don't even eat chocolate\";
4 - \"I do not use\";
3 - \"I love tonic drinks\";
2 - \"I play around, sometimes, with easy means\";
1 - \"This is necessary for me regularly to maintain clarity of mind\";\n"
EXAMPLE="323"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE bad$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#Hea
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Enter your health condition:
5 - \"Healthy as a bull\";
4 - \"I hardly get sick\";
3 - \"I am sick like everyone else\";
2 - \"chronicle\";
1 - \"wreck\";\n"
EXAMPLE="3"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE Hea$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#hea
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Attitude towards the idea of a rational healthy lifestyle:
5 - an ardent adherent;
4 - approving;
3 - indifferent;
2 - devil-may-care;
1 - \"It is better to have some fun than torment yourself all your life\";\n"
EXAMPLE="4~"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE hea$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#sp
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Attitude to physical education:
5 - professional athlete;
4 - amateur;
3 - moderate;
2 - rarely;
1 - \"frail\";\n"
EXAMPLE="3*"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE sp$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#pc
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Enter your role of the computer in life: <n><s1><s2>
The n parameter indicates the year of starting work with the computer in the
form of the last 2 digits.
The s1 parameter describes the intensity of the session:
5 - almost round the clock every day;
4 - a lot;
3 - moderately;
2 - rarely;
1 - extremely rare;
The s2 parameter describes psychological attachment:
5 - \"crazy\";
4 - \"I'm fond of\";
3 - \"I use it as a familiar tool\";
2 - \"I use it only when necessary\";
1 - \"I try not to use\";\n"
EXAMPLE="084+4"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5 6 7 8 9"
NEW_CODE="$NEW_CODE pc$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#hw
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Enter your hardware: <s><l>
The s parameter describes the general modernity of the
base part of the computer system you are using as your base:
5 - \"Just installed the processor announced 2 weeks ago\";
4 - not older than 2 years;
3 - typical;
2 - obsolete;
1 - \"exhibits of the historical museum\".
The l parameter lists the special peripherals with which you have:
A - Arvid;
C - CD burner;
D - DVD burner;
M - precision input manipulator;
P - high quality printer;
S - Sound adapter;
a - palmtop;
d - widescreen display;
f - digital camera;
l - plotter;
m - modem;
n - notebook;
p - low quality printer;
s - scanner;
v - digital video camera;\n"
EXAMPLE="4Pmns"
PERMITTED_SYMBOLS="A C D M P S a d f l m n p s v # 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE hw$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#Net
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Attitude towards the main types of computer communications: <s1><s2><s3>
The s1 parameter describes the attitude towards BBS:
5 - old sysop / regular;
4 - approving;
3 - neutral;
2 - condemning;
1 - \"They became extinct in the last century\";
The s2 parameter describes the relationship to FTN networks:
5 - seasoned fidoshnik;
4 - approving;
3 - neutral;
2 - condemning;
1 - \"A bunch of unshaven fidoras\";
The s3 parameter describes the relationship to the Internet:
5 - a seasoned Internet user;
4 - approving;
3 - neutral;
2 - condemning;
1 - \"The World's Dump of Pornography\";\n"
EXAMPLE="3?5"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE Net$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#net
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Used types of computer communications:
B - BBS;
F - Fido;
I - IRC;
Q - ICQ;
U - Usenet;
W - WWW;
c - HTTP-chats;
e - e-mail;
f - small FTN networks;
p - file-sharing networks {peer-to-peer};
u - forums;\n"
EXAMPLE="Wceu&"
PERMITTED_SYMBOLS="B F I Q U W c e f p u # 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE net$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#Int
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "The quality of the Internet access you use:
5 - dedicated line at home;
4 - purchased dialup;
3 - dedicated line at work;
2 - donated/public/shorthand dialup;
1 - public places/at a friend's;\n"
EXAMPLE="5"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE Int$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#com
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "What is most important for you in computer communications:
5 - communication only;
4 - communication rather than data (passive information);
3 - both communication and data;
2 - data rather than communication;
1 - data only;\n"
EXAMPLE="3"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE com$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#msg
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Frequency of reading network correspondence and sending replies to it:
5 - every day;
4 - from 1 to 3 days;
3 - from 3 to 7 days;
2 - from 1 to 2 weeks;
1 - sporadically;\n"
EXAMPLE="5"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE msg$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#ech
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "How many network echo conferences do you write out approximately:
5 - > 500;
4 - 100-500;
3 - 50-100;
2 - 10-50;
1 - < 10;\n"
EXAMPLE="?"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE ech$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#sl
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Attitude towards computer slang:
5 - \"IMHO current subject and use it\";
4 - approving;
3 - neutral;
2 - condemning;
1 - \"Stop mocking the language!\";\n"
EXAMPLE="3"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE sl$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#OS
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Your relation with operating systems: <s1><s2><s3><s4>
The s1 parameter describes the relation to DOS:
5 - \"old, but reliable\";
4 - approving;
3 - neutral;
2 - condemning;
1 - \"dead long ago\".
The s2 parameter describes the relationship to OS / 2:
5 - \"the best system\";
4 - approving;
3 - neutral;
2 - condemning;
1 - \"dead-end invention\";
The s3 parameter describes the relation to Linux (Unix in general):
5 - \"system of the future\";
4 - approving;
3 - neutral;
2 - condemning;
1 - \"inventions of eccentrics\";
The s4 parameter describes the relation to Windows (all versions):
5 - \"Of course, but what else?\";
4 - approving;
3 - neutral;
2 - condemning;
1 - \"Must die!\";\n"
EXAMPLE="4?41"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE OS$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#os
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Classes of operating systems used:
D - DOS and Windows 3.x;
L - Linux;
N - Novell Netware;
O - OS / 2;
T - Windows NT +;
U - Unix (except Linux);
W - Windows'95 +;\n"
EXAMPLE="4?41"
PERMITTED_SYMBOLS="D L N O T U W # 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE os$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#prg
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Enter your programming languages skill: <l1><l2><s>
The l1 parameter lists the types of programming languages that you speak:
A is Ada;
B - Basic;
C - C ++;
F - Fortran;
J - Java;
K is Cobol;
P - Pascal;
R - REXX;
V - VisualBasic;
a - Assembler;
c - C;
d - Delphi;
f - Forth;
l - Lisp;
o - Prolog;
r - Perl;
x - FoxPro;
y - Python;
The l2 parameter lists the operating systems under which you program:
D - DOS и Windows 3.x;
L - Linux;
N - Novell Netware;
O - OS/2;
T - Windows NT+;
U - Unix (except Linux);
W - Windows'95+;
The s parameter describes the degree of programming skill:
5 - masterly;
4 - not bad;
3 - medium;
2 - with difficulty;
1 - theoretical concepts only;\n"
EXAMPLE="CJcyLW4"
PERMITTED_SYMBOLS="A B C F J K P R V a c d f l o r x y D L N O T U W # 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE prg$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#dem
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Attitude towards demomaking:
5 - \"I write myself\";
4 - approving;
3 - neutral;
2 - \"Freaks, they have nothing else to do\";
1 - \"idiocy\";\n"
EXAMPLE="?"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE dem$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#WWW
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "What web technologies do you own:
A - ASP;
C - CSS;
D - DHTML;
F - Flash;
G - CGI;
H - HTML;
I - ISAPI;
J - JavaScript, VBScript, JScript;
Q - SQL;
S - SSI;
V - VBScript;
W - WAP;
X - XML;
a - Java Applets;
h - PHP;
j - JSP;
p - PerlScript;
u - Push;\n"
EXAMPLE="QXh"
PERMITTED_SYMBOLS="A C D F G H I J Q S V W X a h j p u # 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE WWW$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#CvP
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "What style of programming languages (C/C ++ or Pascal/Delphi) do you prefer:
3 - C/C++;
2 - both equally;
1 - Pascal/Delphi;\n"
EXAMPLE="2"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE CvP$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#wrz
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "The size of the available fund of computer information (software,data,
digitized data, source codes, etc.):
5 - gigabytes of \"vares\";
4 - a lot;
3 - medium set;
2 - little;
1 - \"I try to live at a minimum\";\n"
EXAMPLE="5"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE wrz$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#hex
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Do you know how to work with programs at an undocumented (machine) level:
5 - \"I read\" hex \"like a book, crush any protection\";
4 - quite experienced;
3 - medium;
2 - with difficulty;
1 - \"I can't do it at all\";\n"
EXAMPLE="3"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE hex$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#pol
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Political views:
5 - anarchist;
4 - liberal;
3 - moderate;
2 - conservative;
1 - totalitarian;\n"
EXAMPLE="3"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE pol$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#ec
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Attitude towards regulation of the economy:
5 - \"For completely state administration\";
4 - \"I sympathize with public administration\";
3 - neutral;
2 - \"I sympathize with the free market\";
1 - \"For a completely free market\";\n"
EXAMPLE="3"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE ec$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#Eg
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Attitude towards the idea of equality of people in society:
5 - \"All are born the same and are worthy of equal rights\";
4 - \"Good equality allows for exceptions\";
3 - neutral;
2 - \"Everyone deserves what he has achieved himself\";
1 - \"Equality exists only in a herd of sheep\";\n"
EXAMPLE="3"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE Eg$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#pub
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Attitude towards publicity and public availability of information:
5 - \"Everything must be open\";
4 - \"It is necessary to secret only when absolutely necessary\";
3 - neutral;
2 - \"Freedom of information must be monitored\";
1 - \"Availability of information leads to trouble\";\n"
EXAMPLE="3"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE pub$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#gov
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Attitude towards the current government:
5 - an ardent admirer;
4 - approving;
3 - neutral;
2 - condemning;
1 - \"How long will the people endure?\"\n"
EXAMPLE="3"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE gov$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#USA
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Relationship to the United States and North American Culture:
5 - \"a model for all mankind\";
4 - \"I kind of sympathize\";
3 - neutral;
2 - \"Yankee, go home!\";
1 - \"Remove this abomination from the face of the planet\";\n"
EXAMPLE="2"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE USA$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#mil
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Attitudes towards the existence of universal conscription:
5 - \"A worthy army can only be created in this way\";
4 - approving;
3 - neutral;
2 - condemning;
1 - \"a cynical kind of legal slavery\";\n"
EXAMPLE="3"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE mil$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#gun
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Attitude towards the idea of legalizing firearms for self-defense:
5 - \"like in the Wild West\";
4 - \"Allow under strict control\";
3 - \"The society is not ready yet, and then we will see\";
2 - \"Only employees of organizations at risk\";
1 - \"In the state of drunkards and psychopaths, everyone will shoot each other\";\n"
EXAMPLE="3"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE gun$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#exe
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Attitude towards the death penalty:
5 - \"That's right, the freaks must be destroyed\";
4 - \"Sometimes it is reasonable\";
3 - neutral;
2 - condemning;
1 - \"Murder is never allowed\";\n"
EXAMPLE="3"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE exe$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#sex
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Your attitude to the sexual revolution:
5 - \"Against this, only physiologically defective\";
4 - approving;
3 - neutral;
2 - condemning;
1 - \"unhealthy idea of preoccupied libertines\";\n"
EXAMPLE="3"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE sex$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#abo
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Attitude towards abortion:
5 - \"Parenting must be a licensed profession\";
4 - approving;
3 - neutral;
2 - condemning;
1 - \"real murder\";\n"
EXAMPLE="3"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE abo$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#god
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Attitudes towards the participation of religion in society:
5 - \"Yes, we must all live according to the laws of God\";
4 - approving;
3 - neutral;
2 - condemning;
1 - \"Tired of these clerics, how long can you cling to the old days?\";\n"
EXAMPLE="3"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE god$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#(c)
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Relationship to copyright:
5 - \"Without him, no one will create anything\";
4 - approving;
3 - neutral;
2 - condemning;
1 - \"brake of progress\";\n"
EXAMPLE="3"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE (c)$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#hak
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Attitude towards computer dissidence: <s1><s2>
The parameter s1 characterizes the attitude towards computer hooligans and virus writes:
5 - \"Wolf - the orderly of the forest\";
4 - \"Only the lamer is afraid of them\";
3 - neutral;
2 - condemning;
1 - \"socially dangerous elements\";
The s2 parameter characterizes the attitude towards computer \"pirates\" and crackers:
5 - \"monopoly fighters\";
4 - approving;
3 - neutral;
2 - condemning;
1 - \"commonplace thieves\";\n"
EXAMPLE="33"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE hak$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#drg
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Attitude towards the idea of drug legalization:
5 - \"Down with the prohibition that feeds the drug mafia!\";
4 - approving;
3 - neutral;
2 - condemning;
1 - \"idiotic inventions of drug addicts\";\n"
EXAMPLE="2"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE drg$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#xsc
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Attitudes towards unofficial (non-academic) sciences and revolutionary concepts in the official sciences:
5 - \"Conservatism\" of academics \"inhibits cognition\";
4 - approving;
3 - neutral;
2 - condemning;
1 - \"There is only one science - official, the rest is charlatanism\";\n"
EXAMPLE="3"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE xsc$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#UFO
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Attitude to the problem of UFOs and extraterrestrial civilizations:
5 - \"They've been here for a long time\";
4 - \"Aliens do visit Earth, although their role is often exaggerated\";
3 - neutral;
2 - \"Perhaps there is alien life somewhere, but it is very far away and
not relevant\";
1 - \"Life on Earth is unique\";\n"
EXAMPLE="3"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE UFO$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#fuk
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Attitude towards obscene language:
5 - \"Only jerks can't swear\";
4 - \"a convenient way to express many emotions\";
3 - neutral;
2 - \"unless only in extreme cases\";
1 - \"completely unacceptable for a cultured person\";\n"
EXAMPLE="2"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE fuk$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#psy
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Personality type, determined by the following empirical test [Пинт А.А.
Самоучитель безопасной езды, практическое пособие. - М.: За рулём, 1998,
с. 178]. The test does not pretend to be scientific, but it is convenient
in practice for non-specialists. Note also the alternate Psy token described
by below.
1. Interlace your fingers and notice the hand with the finger on top:
0 - right;
1 - left.
2. Place straightened hands with thumbs spaced apart in front of you so that
they form a septum with a gap. Look at a small object through this gap with both eyes.
Then, while remaining in the same position, close your right and left eyes alternately.
You will only see the object with one eye. Notice this eye:
0 - right;
1 - left.
3. Interlace your arms over your chest and notice the hand that is on top:
0 - right;
1 - left.
4. Clap your hands and notice the palm on top:
0 - right;
1 - left.
The resulting digits are joined as the digits of a 2-ary number in the order of 1234.
Then this number is converted into a hexadecimal representation, in which it is written.
Test interpretation:\n"
read -p "Press Enter to continue..." value
clear
echo -e "Test interpretation:
0000 - Orientation to conventional wisdom. Conservatism with the most stable behavior
(\"correct\" type).
0001 - Insecure conservatism. Weak temperament. Indecision.
0010 - Strong type who does not perceive the weak. Determination. Feeling
humor. Energy. A tendency to flirt. Temperament. Artistry.
0011 - A rare and independent type. High contact, but honey lazy addiction.
0100 - Business type combining analytical mind and gentleness
(type of \"business woman\"). Slow addictive. Caution.
Prudence. Tolerance. Delayed development of relations.
Some coldness.
0101 - Weakest type. Defenselessness. Failure to go into conflict.
Exposure to various influences.
0110 - Restlessness, frequent emotional hunger. Ability not to create conflicts.
Some impermanence. Emotional slowness. Languor. Simplicity. Courage in
communication. The ability to switch to a new type of behavior.
0111 - Inconsistency and independence. Analyticity combined with
emotionality.
1000 - Good adaptability. Emotionality combined with sufficient persistence in
strategic matters. High susceptibility to other people's influence.
Easy contact with almost all other types. Phlegmatic tendency.
1001 - Softness, compliance with careful influence. Requires especially
careful attitude to yourself (type of \"little queen\").
1010 - The strongest type, difficult to convince. Perseverance, sometimes turning
into an obsession with secondary details. Strong personality.
The ability to overcome difficulties. Some conservatism due to lack of attention
to someone else's point of view. Doesn't like infantilism.
1011 - Strong, but not obsessive, almost unconvincing. Internal aggressiveness,
covered by external softness and emotionality. Fast interaction, but honey
lingering mutual understanding.
1100 - Friendliness and simplicity, some scattered interests.
1101 - Innocence. Softness. Gullibility. A very rare type.
1110 - Emotionality combined with determination. The tendency to make ill-considered
decisions under the influence of emotions.
1111 - The ability to look at things in a new way. The greatest emotionality. Individuality.
Selfishness. Stubbornness. The desire for self-defense, sometimes turning into isolation.\n"
EXAMPLE="0000"
PERMITTED_SYMBOLS="# 0 @ & ? ~ + - * $ > ! % < = \ | / 1"
NEW_CODE="$NEW_CODE psy$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#Psy
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"
echo -e "Personality type determined in socionics (analytical psychology C.G. Jung): <l1><l2><l3><l4><l5>
Work with a token requires special knowledge, or consultation with a specialist,
therefore, as an alternative convenient in practice for non-specialists,
you can use the psy token described above.
The l1 parameter describes introversion / extroversion:
I - introvert;
E - extrovert.
The l2 parameter describes the sensibility/intuitiveness:
S - sensoric;
N - intuitive.
The l3 parameter describes consistency/ethics:
T - thinking;
F - feeling;
The l4 parameter describes rationality/irrationality:
J - judging (rationality);
P - perceiving (irrationality);
The l5 parameter describes your temperament:
c - choleric;
f - phlegmatic;
s - sanguine;
m - melancholic.\n"
EXAMPLE="INTJc"
PERMITTED_SYMBOLS="I E S N T F J P c f s m # 0 @ & ? ~ + - * $ > ! % < = \ | / 1 2 3 4 5"
NEW_CODE="$NEW_CODE Psy$(checkAnswer "$EXAMPLE" "$PERMITTED_SYMBOLS")"
CURRENT_ANSWER=$(( CURRENT_ANSWER + 1 ))
#mus
clear
echo -e "[$CURRENT_ANSWER/$TOTAL_ANSWER_COUNT]\n"