-
Notifications
You must be signed in to change notification settings - Fork 1
/
h
3802 lines (3800 loc) · 218 KB
/
h
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
[33mcommit 20832ec4425bcd2f4bb7d09d764d63aa1994a992[m
Author: Hristo Dobrev <[email protected]>
Date: Tue Feb 2 00:10:59 2016 +0200
Uploading latest homeworks and exercises
[1mdiff --git a/High Quality Code/Homeworks/15. SOLID Principles.zip b/High Quality Code/Homeworks/15. SOLID Principles.zip[m
[1mnew file mode 100644[m
[1mindex 0000000..3f3e8a2[m
Binary files /dev/null and b/High Quality Code/Homeworks/15. SOLID Principles.zip differ
[1mdiff --git a/High Quality Code/Homeworks/17. Refactoring/Matrica.cs b/High Quality Code/Homeworks/17. Refactoring/Matrica.cs[m
[1mnew file mode 100644[m
[1mindex 0000000..d00c999[m
[1m--- /dev/null[m
[1m+++ b/High Quality Code/Homeworks/17. Refactoring/Matrica.cs[m
[36m@@ -0,0 +1,178 @@[m
[32m+[m[32mnamespace GameFifteen[m
[32m+[m[32m{[m
[32m+[m[32m using System;[m
[32m+[m[32m using System.IO;[m
[32m+[m[32m using System.Text;[m
[32m+[m
[32m+[m[32m class Matrix[m
[32m+[m[32m {[m
[32m+[m[32m static void Main(string[] args)[m
[32m+[m[32m {[m
[32m+[m[32m int size = GetInput();[m
[32m+[m
[32m+[m[32m int[,] matrix = new int[size, size];[m
[32m+[m[32m int value = 1;[m
[32m+[m[32m int y = 0;[m
[32m+[m[32m int x = 0;[m
[32m+[m[32m int directionX = 1;[m
[32m+[m[32m int directionY = 1;[m
[32m+[m
[32m+[m[32m IterateMatrix(matrix, y, x, ref value, directionX, size, directionY);[m
[32m+[m
[32m+[m[32m value++;[m
[32m+[m[32m FindCell(matrix, out y, out x);[m
[32m+[m
[32m+[m[32m // Swap sides of matrix when the right side is filled[m
[32m+[m[32m if (x != 0 && y != 0)[m
[32m+[m[32m {[m
[32m+[m[32m directionX = 1;[m
[32m+[m[32m directionY = 1;[m
[32m+[m[32m IterateMatrix(matrix, y, x, ref value, directionX, size, directionY);[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m string result = GetResult(matrix);[m
[32m+[m[32m Console.WriteLine(result);[m
[32m+[m
[32m+[m[32m WriteTestsOnFile(size, result);[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m public static void WriteTestsOnFile(int input, string output)[m
[32m+[m[32m {[m
[32m+[m[32m using (var writer = new StreamWriter("../../tests.txt", true))[m
[32m+[m[32m {[m
[32m+[m[32m writer.WriteLine("Input: " + input);[m
[32m+[m[32m writer.WriteLine("Output:");[m
[32m+[m[32m writer.WriteLine(output);[m
[32m+[m[32m writer.WriteLine(new string('-', 30));[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m public static int GetInput()[m
[32m+[m[32m {[m
[32m+[m[32m Console.WriteLine("Enter a positive number ");[m
[32m+[m[32m string input = Console.ReadLine();[m
[32m+[m
[32m+[m[32m int result = 0;[m
[32m+[m[32m while (!int.TryParse(input, out result) || result < 0 || result > 100)[m
[32m+[m[32m {[m
[32m+[m[32m Console.WriteLine("You haven't entered a correct positive number");[m
[32m+[m[32m input = Console.ReadLine();[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m return result;[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m public static string GetResult(int[,] matrix)[m
[32m+[m[32m {[m
[32m+[m[32m StringBuilder result = new StringBuilder();[m
[32m+[m[32m int size = matrix.GetLength(0);[m
[32m+[m[32m for (int row = 0; row < size; row++)[m
[32m+[m[32m {[m
[32m+[m[32m for (int col = 0; col < size; col++)[m
[32m+[m[32m {[m
[32m+[m[32m result.AppendFormat("{0,3}", matrix[row, col]);[m
[32m+[m[32m }[m
[32m+[m[32m result.AppendLine();[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m return result.ToString();[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m private static void IterateMatrix(int[,] matrix, int y, int x, ref int value, int directionX, int n, int directionY)[m
[32m+[m[32m {[m
[32m+[m[32m while (true)[m
[32m+[m[32m {[m
[32m+[m[32m matrix[y, x] = value;[m
[32m+[m
[32m+[m[32m if (!Check(matrix, y, x))[m
[32m+[m[32m {[m
[32m+[m[32m break;[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m if (y + directionX >= n || y + directionX < 0 || x + directionY >= n || x + directionY < 0 ||[m
[32m+[m[32m matrix[y + directionX, x + directionY] != 0)[m
[32m+[m[32m {[m
[32m+[m[32m while (y + directionX >= n || y + directionX < 0 || x + directionY >= n || x + directionY < 0 ||[m
[32m+[m[32m matrix[y + directionX, x + directionY] != 0)[m
[32m+[m[32m {[m
[32m+[m[32m ChangeDirection(matrix, ref directionY, ref directionX);[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m y += directionX;[m
[32m+[m[32m x += directionY;[m
[32m+[m[32m value++;[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m private static void ChangeDirection(int[,] matrix, ref int dy, ref int dx)[m
[32m+[m[32m {[m
[32m+[m[32m int[] dirX = { 1, 1, 1, 0, -1, -1, -1, 0 };[m
[32m+[m[32m int[] dirY = { 1, 0, -1, -1, -1, 0, 1, 1 };[m
[32m+[m
[32m+[m[32m int cd = 0;[m
[32m+[m[32m for (int count = 0; count < 8; count++)[m
[32m+[m[32m {[m
[32m+[m[32m if (dirY[count] == dy && dirX[count] == dx)[m
[32m+[m[32m {[m
[32m+[m[32m cd = count;[m
[32m+[m[32m break;[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m if (cd == 7)[m
[32m+[m[32m {[m
[32m+[m[32m dy = dirY[0];[m
[32m+[m[32m dx = dirX[0];[m
[32m+[m[32m return;[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m dy = dirY[cd + 1];[m
[32m+[m[32m dx = dirX[cd + 1];[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m private static bool Check(int[,] arr, int y, int x)[m
[32m+[m[32m {[m
[32m+[m[32m int[] dirY = { 1, 1, 1, 0, -1, -1, -1, 0 };[m
[32m+[m[32m int[] dirX = { 1, 0, -1, -1, -1, 0, 1, 1 };[m
[32m+[m
[32m+[m[32m for (int i = 0; i < 8; i++)[m
[32m+[m[32m {[m
[32m+[m[32m if (y + dirY[i] >= arr.GetLength(0) || y + dirY[i] < 0)[m
[32m+[m[32m {[m
[32m+[m[32m dirY[i] = 0;[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m if (x + dirX[i] >= arr.GetLength(0) || x + dirX[i] < 0)[m
[32m+[m[32m {[m
[32m+[m[32m dirX[i] = 0;[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m if (arr[y + dirY[i], x + dirX[i]] == 0)[m
[32m+[m[32m {[m
[32m+[m[32m return true;[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m return false;[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m private static void FindCell(int[,] arr, out int y, out int x)[m
[32m+[m[32m {[m
[32m+[m[32m x = 0;[m
[32m+[m[32m y = 0;[m
[32m+[m[32m for (int currentY = 0; currentY < arr.GetLength(0); currentY++)[m
[32m+[m[32m {[m
[32m+[m[32m for (int currentX = 0; currentX < arr.GetLength(0); currentX++)[m
[32m+[m[32m {[m
[32m+[m[32m if (arr[currentY, currentX] == 0)[m
[32m+[m[32m {[m
[32m+[m[32m y = currentY;[m
[32m+[m[32m x = currentX;[m
[32m+[m[32m return;[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m[32m}[m
[1mdiff --git a/High Quality Code/Homeworks/17. Refactoring/Matrica.csproj b/High Quality Code/Homeworks/17. Refactoring/Matrica.csproj[m
[1mnew file mode 100644[m
[1mindex 0000000..2156300[m
[1m--- /dev/null[m
[1m+++ b/High Quality Code/Homeworks/17. Refactoring/Matrica.csproj[m
[36m@@ -0,0 +1,50 @@[m
[32m+[m[32m<?xml version="1.0" encoding="utf-8"?>[m
[32m+[m[32m<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">[m
[32m+[m[32m <PropertyGroup>[m
[32m+[m[32m <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>[m
[32m+[m[32m <Platform Condition=" '$(Platform)' == '' ">x86</Platform>[m
[32m+[m[32m <ProductVersion>8.0.30703</ProductVersion>[m
[32m+[m[32m <SchemaVersion>2.0</SchemaVersion>[m
[32m+[m[32m <ProjectGuid>{4D520899-7061-4EAA-B67E-D14EE8B30462}</ProjectGuid>[m
[32m+[m[32m <OutputType>Exe</OutputType>[m
[32m+[m[32m <RootNamespace>GameFifteen</RootNamespace>[m
[32m+[m[32m <AssemblyName>GameFifteen</AssemblyName>[m
[32m+[m[32m <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>[m
[32m+[m[32m <TargetFrameworkProfile>Client</TargetFrameworkProfile>[m
[32m+[m[32m <FileAlignment>512</FileAlignment>[m
[32m+[m[32m </PropertyGroup>[m
[32m+[m[32m <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">[m
[32m+[m[32m <PlatformTarget>x86</PlatformTarget>[m
[32m+[m[32m <DebugSymbols>true</DebugSymbols>[m
[32m+[m[32m <DebugType>full</DebugType>[m
[32m+[m[32m <Optimize>false</Optimize>[m
[32m+[m[32m <OutputPath>bin\Debug\</OutputPath>[m
[32m+[m[32m <DefineConstants>DEBUG;TRACE</DefineConstants>[m
[32m+[m[32m <ErrorReport>prompt</ErrorReport>[m
[32m+[m[32m <WarningLevel>4</WarningLevel>[m
[32m+[m[32m </PropertyGroup>[m
[32m+[m[32m <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">[m
[32m+[m[32m <PlatformTarget>x86</PlatformTarget>[m
[32m+[m[32m <DebugType>pdbonly</DebugType>[m
[32m+[m[32m <Optimize>true</Optimize>[m
[32m+[m[32m <OutputPath>bin\Release\</OutputPath>[m
[32m+[m[32m <DefineConstants>TRACE</DefineConstants>[m
[32m+[m[32m <ErrorReport>prompt</ErrorReport>[m
[32m+[m[32m <WarningLevel>4</WarningLevel>[m
[32m+[m[32m </PropertyGroup>[m
[32m+[m[32m <ItemGroup>[m
[32m+[m[32m <Reference Include="System" />[m
[32m+[m[32m <Reference Include="System.Core" />[m
[32m+[m[32m </ItemGroup>[m
[32m+[m[32m <ItemGroup>[m
[32m+[m[32m <Compile Include="Matrica.cs" />[m
[32m+[m[32m </ItemGroup>[m
[32m+[m[32m <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />[m
[32m+[m[32m <!-- To modify your build process, add your task inside one of the targets below and uncomment it.[m[41m [m
[32m+[m[32m Other similar extension points exist, see Microsoft.Common.targets.[m
[32m+[m[32m <Target Name="BeforeBuild">[m
[32m+[m[32m </Target>[m
[32m+[m[32m <Target Name="AfterBuild">[m
[32m+[m[32m </Target>[m
[32m+[m[32m -->[m
[32m+[m[32m</Project>[m
\ No newline at end of file[m
[1mdiff --git a/High Quality Code/Homeworks/17. Refactoring/Matrica.sln b/High Quality Code/Homeworks/17. Refactoring/Matrica.sln[m
[1mnew file mode 100644[m
[1mindex 0000000..fde680e[m
[1m--- /dev/null[m
[1m+++ b/High Quality Code/Homeworks/17. Refactoring/Matrica.sln[m
[36m@@ -0,0 +1,20 @@[m
[32m+[m[32m[m
[32m+[m[32mMicrosoft Visual Studio Solution File, Format Version 12.00[m
[32m+[m[32m# Visual Studio 2012[m
[32m+[m[32mProject("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Matrica", "Matrica.csproj", "{4D520899-7061-4EAA-B67E-D14EE8B30462}"[m
[32m+[m[32mEndProject[m
[32m+[m[32mGlobal[m
[32m+[m [32mGlobalSection(SolutionConfigurationPlatforms) = preSolution[m
[32m+[m [32mDebug|x86 = Debug|x86[m
[32m+[m [32mRelease|x86 = Release|x86[m
[32m+[m [32mEndGlobalSection[m
[32m+[m [32mGlobalSection(ProjectConfigurationPlatforms) = postSolution[m
[32m+[m [32m{4D520899-7061-4EAA-B67E-D14EE8B30462}.Debug|x86.ActiveCfg = Debug|x86[m
[32m+[m [32m{4D520899-7061-4EAA-B67E-D14EE8B30462}.Debug|x86.Build.0 = Debug|x86[m
[32m+[m [32m{4D520899-7061-4EAA-B67E-D14EE8B30462}.Release|x86.ActiveCfg = Release|x86[m
[32m+[m [32m{4D520899-7061-4EAA-B67E-D14EE8B30462}.Release|x86.Build.0 = Release|x86[m
[32m+[m [32mEndGlobalSection[m
[32m+[m [32mGlobalSection(SolutionProperties) = preSolution[m
[32m+[m [32mHideSolutionNode = FALSE[m
[32m+[m [32mEndGlobalSection[m
[32m+[m[32mEndGlobal[m
[1mdiff --git a/High Quality Code/Homeworks/17. Refactoring/Matrix.cs b/High Quality Code/Homeworks/17. Refactoring/Matrix.cs[m
[1mnew file mode 100644[m
[1mindex 0000000..74e02ee[m
[1m--- /dev/null[m
[1m+++ b/High Quality Code/Homeworks/17. Refactoring/Matrix.cs[m
[36m@@ -0,0 +1,165 @@[m
[32m+[m[32musing System;[m
[32m+[m
[32m+[m[32mnamespace Task3[m
[32m+[m[32m{[m
[32m+[m[32m internal class Matrix[m
[32m+[m[32m {[m
[32m+[m[32m private static void Change(ref int dX, ref int dY)[m
[32m+[m[32m {[m
[32m+[m[32m int[] directionsX = { 1, 1, 1, 0, -1, -1, -1, 0 };[m
[32m+[m[32m int[] directionsY = { 1, 0, -1, -1, -1, 0, 1, 1 };[m
[32m+[m[32m int cd = 0;[m
[32m+[m[32m for (int count = 0; count < 8; count++)[m
[32m+[m[32m {[m
[32m+[m[32m if (directionsX[count] == dX && directionsY[count] == dY)[m
[32m+[m[32m {[m
[32m+[m[32m cd = count;[m
[32m+[m[32m break;[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m if (cd == 7)[m
[32m+[m[32m {[m
[32m+[m[32m dX = directionsX[0];[m
[32m+[m[32m dY = directionsY[0];[m
[32m+[m[32m return;[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m dX = directionsX[cd + 1];[m
[32m+[m[32m dY = directionsY[cd + 1];[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m private static bool CheckCell(int[,] arr, int x, int y)[m
[32m+[m[32m {[m
[32m+[m[32m int[] dirX = { 1, 1, 1, 0, -1, -1, -1, 0 };[m
[32m+[m[32m int[] dirY = { 1, 0, -1, -1, -1, 0, 1, 1 };[m
[32m+[m[32m for (int i = 0; i < 8; i++)[m
[32m+[m[32m {[m
[32m+[m[32m if (x + dirX[i] >= arr.GetLength(0) || x + dirX[i] < 0)[m
[32m+[m[32m {[m
[32m+[m[32m dirX[i] = 0;[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m if (y + dirY[i] >= arr.GetLength(0) || y + dirY[i] < 0)[m
[32m+[m[32m {[m
[32m+[m[32m dirY[i] = 0;[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m for (int i = 0; i < 8; i++)[m
[32m+[m[32m {[m
[32m+[m[32m if (arr[x + dirX[i], y + dirY[i]] == 0)[m
[32m+[m[32m {[m
[32m+[m[32m return true;[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m return false;[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m private static void FindCell(int[,] arr, out int x, out int y)[m
[32m+[m[32m {[m
[32m+[m[32m x = 0;[m
[32m+[m[32m y = 0;[m
[32m+[m[32m for (int row = 0; row < arr.GetLength(0); row++)[m
[32m+[m[32m {[m
[32m+[m[32m for (int col = 0; col < arr.GetLength(0); col++)[m
[32m+[m[32m {[m
[32m+[m[32m if (arr[row, col] == 0)[m
[32m+[m[32m {[m
[32m+[m[32m x = row;[m
[32m+[m[32m y = col;[m
[32m+[m[32m return;[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m private static void Main(string[] args)[m
[32m+[m[32m {[m
[32m+[m[32m Console.WriteLine("Enter a positive number ");[m
[32m+[m[32m string input = Console.ReadLine();[m
[32m+[m[32m int number;[m
[32m+[m[32m while (!int.TryParse(input, out number) || number < 0 || number > 100)[m
[32m+[m[32m {[m
[32m+[m[32m Console.WriteLine("You haven't entered a correct positive number");[m
[32m+[m[32m input = Console.ReadLine();[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m int[,] matrix = new int[number, number];[m
[32m+[m[32m int step = number;[m
[32m+[m[32m int value = 1;[m
[32m+[m[32m int row = 0;[m
[32m+[m[32m int col = 0;[m
[32m+[m[32m int directionX = 1;[m
[32m+[m[32m int directionY = 1;[m
[32m+[m[32m while (true)[m
[32m+[m[32m {[m
[32m+[m[32m // malko e kofti tova uslovie, no break-a raboti 100% : )[m
[32m+[m[32m matrix[row, col] = value;[m
[32m+[m
[32m+[m[32m if (!CheckCell(matrix, row, col))[m
[32m+[m[32m {[m
[32m+[m[32m break;[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m // prekusvame ako sme se zadunili[m
[32m+[m[32m bool outOfBoundaries =[m[41m [m
[32m+[m[32m row + directionX >= number || // out from right side[m
[32m+[m[32m row + directionX < 0 || // out from left side[m
[32m+[m[32m col + directionY >= number || // out from top side[m
[32m+[m[32m col + directionY < 0 || // out from bottom side[m
[32m+[m[32m matrix[row + directionX, col + directionY] != 0;[m
[32m+[m
[32m+[m[32m while (row + directionX >= number || row + directionX < 0 || col + directionY >= number || col + directionY < 0 || matrix[row + directionX, col + directionY] != 0)[m
[32m+[m[32m {[m
[32m+[m[32m Change(ref directionX, ref directionY);[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m row += directionX;[m
[32m+[m[32m col += directionY;[m
[32m+[m[32m value++;[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m FindCell(matrix, out row, out col);[m
[32m+[m[32m if (row != 0 && col != 0)[m
[32m+[m[32m {[m
[32m+[m[32m // taka go napravih, zashtoto funkciqta ne mi davashe da ne si definiram out parametrite[m
[32m+[m[32m directionX = 1;[m
[32m+[m[32m directionY = 1;[m
[32m+[m
[32m+[m[32m while (true)[m
[32m+[m[32m {[m
[32m+[m[32m // malko e kofti tova uslovie, no break-a raboti 100% : )[m
[32m+[m[32m matrix[row, col] = value;[m
[32m+[m[32m if (!CheckCell(matrix, row, col))[m
[32m+[m[32m {[m
[32m+[m[32m break;[m
[32m+[m[32m }[m
[32m+[m[32m // prekusvame ako sme se zadunili[m
[32m+[m[32m if (row + directionX >= number || row + directionX < 0 || col + directionY >= number || col + directionY < 0 || matrix[row + directionX, col + directionY] != 0)[m
[32m+[m[32m {[m
[32m+[m[32m while (row + directionX >= number || row + directionX < 0 || col + directionY >= number || col + directionY < 0 || matrix[row + directionX, col + directionY] != 0)[m
[32m+[m[32m {[m
[32m+[m[32m Change(ref directionX, ref directionY);[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m row += directionX;[m
[32m+[m[32m col += directionY;[m
[32m+[m[32m value++;[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m for (int pp = 0; pp < number; pp++)[m
[32m+[m[32m {[m
[32m+[m[32m for (int qq = 0; qq < number; qq++)[m
[32m+[m[32m {[m
[32m+[m[32m Console.Write("{0,3}", matrix[pp, qq]);[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m Console.WriteLine();[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m[32m}[m
\ No newline at end of file[m
[1mdiff --git a/High Quality Code/Homeworks/17. Refactoring/tests.txt b/High Quality Code/Homeworks/17. Refactoring/tests.txt[m
[1mnew file mode 100644[m
[1mindex 0000000..d584864[m
[1m--- /dev/null[m
[1m+++ b/High Quality Code/Homeworks/17. Refactoring/tests.txt[m
[36m@@ -0,0 +1,95 @@[m
[32m+[m[32mInput: 1[m
[32m+[m[32mOutput:[m
[32m+[m[32m 1[m
[32m+[m
[32m+[m[32m------------------------------[m
[32m+[m[32mInput: 2[m
[32m+[m[32mOutput:[m
[32m+[m[32m 1 4[m
[32m+[m[32m 3 2[m
[32m+[m
[32m+[m[32m------------------------------[m
[32m+[m[32mInput: 3[m
[32m+[m[32mOutput:[m
[32m+[m[32m 1 7 8[m
[32m+[m[32m 6 2 9[m
[32m+[m[32m 5 4 3[m
[32m+[m
[32m+[m[32m------------------------------[m
[32m+[m[32mInput: 4[m
[32m+[m[32mOutput:[m
[32m+[m[32m 1 10 11 12[m
[32m+[m[32m 9 2 15 13[m
[32m+[m[32m 8 16 3 14[m
[32m+[m[32m 7 6 5 4[m
[32m+[m
[32m+[m[32m------------------------------[m
[32m+[m[32mInput: 5[m
[32m+[m[32mOutput:[m
[32m+[m[32m 1 13 14 15 16[m
[32m+[m[32m 12 2 21 22 17[m
[32m+[m[32m 11 23 3 20 18[m
[32m+[m[32m 10 25 24 4 19[m
[32m+[m[32m 9 8 7 6 5[m
[32m+[m
[32m+[m[32m------------------------------[m
[32m+[m[32mInput: 6[m
[32m+[m[32mOutput:[m
[32m+[m[32m 1 16 17 18 19 20[m
[32m+[m[32m 15 2 27 28 29 21[m
[32m+[m[32m 14 31 3 26 30 22[m
[32m+[m[32m 13 36 32 4 25 23[m
[32m+[m[32m 12 35 34 33 5 24[m
[32m+[m[32m 11 10 9 8 7 6[m
[32m+[m
[32m+[m[32m------------------------------[m
[32m+[m[32mInput: 7[m
[32m+[m[32mOutput:[m
[32m+[m[32m 1 19 20 21 22 23 24[m
[32m+[m[32m 18 2 33 34 35 36 25[m
[32m+[m[32m 17 40 3 32 39 37 26[m
[32m+[m[32m 16 48 41 4 31 38 27[m
[32m+[m[32m 15 47 49 42 5 30 28[m
[32m+[m[32m 14 46 45 44 43 6 29[m
[32m+[m[32m 13 12 11 10 9 8 7[m
[32m+[m
[32m+[m[32m------------------------------[m
[32m+[m[32mInput: 8[m
[32m+[m[32mOutput:[m
[32m+[m[32m 1 22 23 24 25 26 27 28[m
[32m+[m[32m 21 2 39 40 41 42 43 29[m
[32m+[m[32m 20 50 3 38 48 49 44 30[m
[32m+[m[32m 19 61 51 4 37 47 45 31[m
[32m+[m[32m 18 60 62 52 5 36 46 32[m
[32m+[m[32m 17 59 64 63 53 6 35 33[m
[32m+[m[32m 16 58 57 56 55 54 7 34[m
[32m+[m[32m 15 14 13 12 11 10 9 8[m
[32m+[m
[32m+[m[32m------------------------------[m
[32m+[m[32mInput: 9[m
[32m+[m[32mOutput:[m
[32m+[m[32m 1 25 26 27 28 29 30 31 32[m
[32m+[m[32m 24 2 45 46 47 48 49 50 33[m
[32m+[m[32m 23 61 3 44 57 58 59 51 34[m
[32m+[m[32m 22 75 62 4 43 56 60 52 35[m
[32m+[m[32m 21 74 76 63 5 42 55 53 36[m
[32m+[m[32m 20 73 81 77 64 6 41 54 37[m
[32m+[m[32m 19 72 80 79 78 65 7 40 38[m
[32m+[m[32m 18 71 70 69 68 67 66 8 39[m
[32m+[m[32m 17 16 15 14 13 12 11 10 9[m
[32m+[m
[32m+[m[32m------------------------------[m
[32m+[m[32mInput: 10[m
[32m+[m[32mOutput:[m
[32m+[m[32m 1 28 29 30 31 32 33 34 35 36[m
[32m+[m[32m 27 2 51 52 53 54 55 56 57 37[m
[32m+[m[32m 26 73 3 50 66 67 68 69 58 38[m
[32m+[m[32m 25 90 74 4 49 65 72 70 59 39[m
[32m+[m[32m 24 89 91 75 5 48 64 71 60 40[m
[32m+[m[32m 23 88 99 92 76 6 47 63 61 41[m
[32m+[m[32m 22 87 98100 93 77 7 46 62 42[m
[32m+[m[32m 21 86 97 96 95 94 78 8 45 43[m
[32m+[m[32m 20 85 84 83 82 81 80 79 9 44[m
[32m+[m[32m 19 18 17 16 15 14 13 12 11 10[m
[32m+[m
[32m+[m[32m------------------------------[m
[1mdiff --git a/High Quality Code/Trash/Debugging Lab/Debugging Lab.sln b/High Quality Code/Trash/Debugging Lab/Debugging Lab.sln[m
[1mnew file mode 100644[m
[1mindex 0000000..3b15d10[m
[1m--- /dev/null[m
[1m+++ b/High Quality Code/Trash/Debugging Lab/Debugging Lab.sln[m
[36m@@ -0,0 +1,22 @@[m
[32m+[m[32m[m
[32m+[m[32mMicrosoft Visual Studio Solution File, Format Version 12.00[m
[32m+[m[32m# Visual Studio 2013[m
[32m+[m[32mVisualStudioVersion = 12.0.40629.0[m
[32m+[m[32mMinimumVisualStudioVersion = 10.0.40219.1[m
[32m+[m[32mProject("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Debugging Lab", "Debugging Lab\Debugging Lab.csproj", "{2023E93E-970C-4940-ACAE-14D1CFFEAF3E}"[m
[32m+[m[32mEndProject[m
[32m+[m[32mGlobal[m
[32m+[m [32mGlobalSection(SolutionConfigurationPlatforms) = preSolution[m
[32m+[m [32mDebug|Any CPU = Debug|Any CPU[m
[32m+[m [32mRelease|Any CPU = Release|Any CPU[m
[32m+[m [32mEndGlobalSection[m
[32m+[m [32mGlobalSection(ProjectConfigurationPlatforms) = postSolution[m
[32m+[m [32m{2023E93E-970C-4940-ACAE-14D1CFFEAF3E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU[m
[32m+[m [32m{2023E93E-970C-4940-ACAE-14D1CFFEAF3E}.Debug|Any CPU.Build.0 = Debug|Any CPU[m
[32m+[m [32m{2023E93E-970C-4940-ACAE-14D1CFFEAF3E}.Release|Any CPU.ActiveCfg = Release|Any CPU[m
[32m+[m [32m{2023E93E-970C-4940-ACAE-14D1CFFEAF3E}.Release|Any CPU.Build.0 = Release|Any CPU[m
[32m+[m [32mEndGlobalSection[m
[32m+[m [32mGlobalSection(SolutionProperties) = preSolution[m
[32m+[m [32mHideSolutionNode = FALSE[m
[32m+[m [32mEndGlobalSection[m
[32m+[m[32mEndGlobal[m
[1mdiff --git a/High Quality Code/Trash/Debugging Lab/Debugging Lab/App.config b/High Quality Code/Trash/Debugging Lab/Debugging Lab/App.config[m
[1mnew file mode 100644[m
[1mindex 0000000..8e15646[m
[1m--- /dev/null[m
[1m+++ b/High Quality Code/Trash/Debugging Lab/Debugging Lab/App.config[m
[36m@@ -0,0 +1,6 @@[m
[32m+[m[32m<?xml version="1.0" encoding="utf-8" ?>[m
[32m+[m[32m<configuration>[m
[32m+[m[32m <startup>[m[41m [m
[32m+[m[32m <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />[m
[32m+[m[32m </startup>[m
[32m+[m[32m</configuration>[m
\ No newline at end of file[m
[1mdiff --git a/High Quality Code/Trash/Debugging Lab/Debugging Lab/Debugging Lab.csproj b/High Quality Code/Trash/Debugging Lab/Debugging Lab/Debugging Lab.csproj[m
[1mnew file mode 100644[m
[1mindex 0000000..a19e486[m
[1m--- /dev/null[m
[1m+++ b/High Quality Code/Trash/Debugging Lab/Debugging Lab/Debugging Lab.csproj[m
[36m@@ -0,0 +1,58 @@[m
[32m+[m[32m<?xml version="1.0" encoding="utf-8"?>[m
[32m+[m[32m<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">[m
[32m+[m[32m <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />[m
[32m+[m[32m <PropertyGroup>[m
[32m+[m[32m <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>[m
[32m+[m[32m <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>[m
[32m+[m[32m <ProjectGuid>{2023E93E-970C-4940-ACAE-14D1CFFEAF3E}</ProjectGuid>[m
[32m+[m[32m <OutputType>Exe</OutputType>[m
[32m+[m[32m <AppDesignerFolder>Properties</AppDesignerFolder>[m
[32m+[m[32m <RootNamespace>Debugging_Lab</RootNamespace>[m
[32m+[m[32m <AssemblyName>Debugging Lab</AssemblyName>[m
[32m+[m[32m <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>[m
[32m+[m[32m <FileAlignment>512</FileAlignment>[m
[32m+[m[32m </PropertyGroup>[m
[32m+[m[32m <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">[m
[32m+[m[32m <PlatformTarget>AnyCPU</PlatformTarget>[m
[32m+[m[32m <DebugSymbols>true</DebugSymbols>[m
[32m+[m[32m <DebugType>full</DebugType>[m
[32m+[m[32m <Optimize>false</Optimize>[m
[32m+[m[32m <OutputPath>bin\Debug\</OutputPath>[m
[32m+[m[32m <DefineConstants>DEBUG;TRACE</DefineConstants>[m
[32m+[m[32m <ErrorReport>prompt</ErrorReport>[m
[32m+[m[32m <WarningLevel>4</WarningLevel>[m
[32m+[m[32m </PropertyGroup>[m
[32m+[m[32m <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">[m
[32m+[m[32m <PlatformTarget>AnyCPU</PlatformTarget>[m
[32m+[m[32m <DebugType>pdbonly</DebugType>[m
[32m+[m[32m <Optimize>true</Optimize>[m
[32m+[m[32m <OutputPath>bin\Release\</OutputPath>[m
[32m+[m[32m <DefineConstants>TRACE</DefineConstants>[m
[32m+[m[32m <ErrorReport>prompt</ErrorReport>[m
[32m+[m[32m <WarningLevel>4</WarningLevel>[m
[32m+[m[32m </PropertyGroup>[m
[32m+[m[32m <ItemGroup>[m
[32m+[m[32m <Reference Include="System" />[m
[32m+[m[32m <Reference Include="System.Core" />[m
[32m+[m[32m <Reference Include="System.Xml.Linq" />[m
[32m+[m[32m <Reference Include="System.Data.DataSetExtensions" />[m
[32m+[m[32m <Reference Include="Microsoft.CSharp" />[m
[32m+[m[32m <Reference Include="System.Data" />[m
[32m+[m[32m <Reference Include="System.Xml" />[m
[32m+[m[32m </ItemGroup>[m
[32m+[m[32m <ItemGroup>[m
[32m+[m[32m <Compile Include="Program.cs" />[m
[32m+[m[32m <Compile Include="Properties\AssemblyInfo.cs" />[m
[32m+[m[32m </ItemGroup>[m
[32m+[m[32m <ItemGroup>[m
[32m+[m[32m <None Include="App.config" />[m
[32m+[m[32m </ItemGroup>[m
[32m+[m[32m <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />[m
[32m+[m[32m <!-- To modify your build process, add your task inside one of the targets below and uncomment it.[m[41m [m
[32m+[m[32m Other similar extension points exist, see Microsoft.Common.targets.[m
[32m+[m[32m <Target Name="BeforeBuild">[m
[32m+[m[32m </Target>[m
[32m+[m[32m <Target Name="AfterBuild">[m
[32m+[m[32m </Target>[m
[32m+[m[32m -->[m
[32m+[m[32m</Project>[m
\ No newline at end of file[m
[1mdiff --git a/High Quality Code/Trash/Debugging Lab/Debugging Lab/Program.cs b/High Quality Code/Trash/Debugging Lab/Debugging Lab/Program.cs[m
[1mnew file mode 100644[m
[1mindex 0000000..d5c83f1[m
[1m--- /dev/null[m
[1m+++ b/High Quality Code/Trash/Debugging Lab/Debugging Lab/Program.cs[m
[36m@@ -0,0 +1,38 @@[m
[32m+[m[32mnamespace Debugging_BitCarousel[m
[32m+[m[32m{[m
[32m+[m[32m using System;[m
[32m+[m
[32m+[m[32m class BitCarousel_broken[m
[32m+[m[32m {[m
[32m+[m[32m static void Main()[m
[32m+[m[32m {[m
[32m+[m[32m byte number = byte.Parse(Console.ReadLine());[m
[32m+[m[32m byte rotations = byte.Parse(Console.ReadLine());[m
[32m+[m
[32m+[m[32m for (int i = 0; i < rotations; i++)[m
[32m+[m[32m {[m
[32m+[m[32m string direction = Console.ReadLine();[m
[32m+[m
[32m+[m[32m if (direction == "right")[m
[32m+[m[32m {[m
[32m+[m[32m int rightMostBit = number & 1;[m
[32m+[m[32m number >>= 1;[m
[32m+[m[32m number |= (byte)(rightMostBit << 5);[m
[32m+[m[32m }[m
[32m+[m[32m else if (direction == "left")[m
[32m+[m[32m {[m
[32m+[m[32m int leftMostBit = (number >> 5) & 1;[m
[32m+[m[32m if (leftMostBit == 1)[m
[32m+[m[32m {[m
[32m+[m[32m int reversed = ~(1 << 5);[m
[32m+[m[32m number &= (byte) reversed;[m
[32m+[m[32m }[m
[32m+[m[32m number <<= 1;[m
[32m+[m[32m number |= (byte) leftMostBit;[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m Console.WriteLine(number);[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m[32m}[m
\ No newline at end of file[m
[1mdiff --git a/High Quality Code/Trash/Debugging Lab/Debugging Lab/Properties/AssemblyInfo.cs b/High Quality Code/Trash/Debugging Lab/Debugging Lab/Properties/AssemblyInfo.cs[m
[1mnew file mode 100644[m
[1mindex 0000000..60a83c1[m
[1m--- /dev/null[m
[1m+++ b/High Quality Code/Trash/Debugging Lab/Debugging Lab/Properties/AssemblyInfo.cs[m
[36m@@ -0,0 +1,36 @@[m
[32m+[m[32musing System.Reflection;[m
[32m+[m[32musing System.Runtime.CompilerServices;[m
[32m+[m[32musing System.Runtime.InteropServices;[m
[32m+[m
[32m+[m[32m// General Information about an assembly is controlled through the following[m[41m [m
[32m+[m[32m// set of attributes. Change these attribute values to modify the information[m
[32m+[m[32m// associated with an assembly.[m
[32m+[m[32m[assembly: AssemblyTitle("Debugging Lab")][m
[32m+[m[32m[assembly: AssemblyDescription("")][m
[32m+[m[32m[assembly: AssemblyConfiguration("")][m
[32m+[m[32m[assembly: AssemblyCompany("")][m
[32m+[m[32m[assembly: AssemblyProduct("Debugging Lab")][m
[32m+[m[32m[assembly: AssemblyCopyright("Copyright © 2016")][m
[32m+[m[32m[assembly: AssemblyTrademark("")][m
[32m+[m[32m[assembly: AssemblyCulture("")][m
[32m+[m
[32m+[m[32m// Setting ComVisible to false makes the types in this assembly not visible[m[41m [m
[32m+[m[32m// to COM components. If you need to access a type in this assembly from[m[41m [m
[32m+[m[32m// COM, set the ComVisible attribute to true on that type.[m
[32m+[m[32m[assembly: ComVisible(false)][m
[32m+[m
[32m+[m[32m// The following GUID is for the ID of the typelib if this project is exposed to COM[m
[32m+[m[32m[assembly: Guid("08d0a5a2-a670-4292-84bd-93db48521bf6")][m
[32m+[m
[32m+[m[32m// Version information for an assembly consists of the following four values:[m
[32m+[m[32m//[m
[32m+[m[32m// Major Version[m
[32m+[m[32m// Minor Version[m[41m [m
[32m+[m[32m// Build Number[m
[32m+[m[32m// Revision[m
[32m+[m[32m//[m
[32m+[m[32m// You can specify all the values or you can default the Build and Revision Numbers[m[41m [m
[32m+[m[32m// by using the '*' as shown below:[m
[32m+[m[32m// [assembly: AssemblyVersion("1.0.*")][m
[32m+[m[32m[assembly: AssemblyVersion("1.0.0.0")][m
[32m+[m[32m[assembly: AssemblyFileVersion("1.0.0.0")][m
[1mdiff --git a/JavaScript Basics/Exersizes/.idea/.name b/JavaScript Basics/Exersizes/.idea/.name[m
[1mnew file mode 100644[m
[1mindex 0000000..40ab76a[m
[1m--- /dev/null[m
[1m+++ b/JavaScript Basics/Exersizes/.idea/.name[m
[36m@@ -0,0 +1 @@[m
[32m+[m[32mExersizes[m
\ No newline at end of file[m
[1mdiff --git a/JavaScript Basics/Exersizes/.idea/Exersizes.iml b/JavaScript Basics/Exersizes/.idea/Exersizes.iml[m
[1mnew file mode 100644[m
[1mindex 0000000..c956989[m
[1m--- /dev/null[m
[1m+++ b/JavaScript Basics/Exersizes/.idea/Exersizes.iml[m
[36m@@ -0,0 +1,8 @@[m
[32m+[m[32m<?xml version="1.0" encoding="UTF-8"?>[m
[32m+[m[32m<module type="WEB_MODULE" version="4">[m
[32m+[m[32m <component name="NewModuleRootManager">[m
[32m+[m[32m <content url="file://$MODULE_DIR$" />[m
[32m+[m[32m <orderEntry type="inheritedJdk" />[m
[32m+[m[32m <orderEntry type="sourceFolder" forTests="false" />[m
[32m+[m[32m </component>[m
[32m+[m[32m</module>[m
\ No newline at end of file[m
[1mdiff --git a/JavaScript Basics/Exersizes/.idea/misc.xml b/JavaScript Basics/Exersizes/.idea/misc.xml[m
[1mnew file mode 100644[m
[1mindex 0000000..19f74da[m
[1m--- /dev/null[m
[1m+++ b/JavaScript Basics/Exersizes/.idea/misc.xml[m
[36m@@ -0,0 +1,14 @@[m
[32m+[m[32m<?xml version="1.0" encoding="UTF-8"?>[m
[32m+[m[32m<project version="4">[m
[32m+[m[32m <component name="ProjectLevelVcsManager" settingsEditedManually="false">[m
[32m+[m[32m <OptionsSetting value="true" id="Add" />[m
[32m+[m[32m <OptionsSetting value="true" id="Remove" />[m
[32m+[m[32m <OptionsSetting value="true" id="Checkout" />[m
[32m+[m[32m <OptionsSetting value="true" id="Update" />[m
[32m+[m[32m <OptionsSetting value="true" id="Status" />[m
[32m+[m[32m <OptionsSetting value="true" id="Edit" />[m
[32m+[m[32m <ConfirmationsSetting value="0" id="Add" />[m
[32m+[m[32m <ConfirmationsSetting value="0" id="Remove" />[m
[32m+[m[32m </component>[m
[32m+[m[32m <component name="ProjectRootManager" version="2" />[m
[32m+[m[32m</project>[m
\ No newline at end of file[m
[1mdiff --git a/JavaScript Basics/Exersizes/.idea/modules.xml b/JavaScript Basics/Exersizes/.idea/modules.xml[m
[1mnew file mode 100644[m
[1mindex 0000000..0026061[m
[1m--- /dev/null[m
[1m+++ b/JavaScript Basics/Exersizes/.idea/modules.xml[m
[36m@@ -0,0 +1,8 @@[m
[32m+[m[32m<?xml version="1.0" encoding="UTF-8"?>[m
[32m+[m[32m<project version="4">[m
[32m+[m[32m <component name="ProjectModuleManager">[m
[32m+[m[32m <modules>[m
[32m+[m[32m <module fileurl="file://$PROJECT_DIR$/.idea/Exersizes.iml" filepath="$PROJECT_DIR$/.idea/Exersizes.iml" />[m
[32m+[m[32m </modules>[m
[32m+[m[32m </component>[m
[32m+[m[32m</project>[m
\ No newline at end of file[m
[1mdiff --git a/JavaScript Basics/Exersizes/.idea/vcs.xml b/JavaScript Basics/Exersizes/.idea/vcs.xml[m
[1mnew file mode 100644[m
[1mindex 0000000..6564d52[m
[1m--- /dev/null[m
[1m+++ b/JavaScript Basics/Exersizes/.idea/vcs.xml[m
[36m@@ -0,0 +1,6 @@[m
[32m+[m[32m<?xml version="1.0" encoding="UTF-8"?>[m
[32m+[m[32m<project version="4">[m
[32m+[m[32m <component name="VcsDirectoryMappings">[m
[32m+[m[32m <mapping directory="" vcs="" />[m
[32m+[m[32m </component>[m
[32m+[m[32m</project>[m
\ No newline at end of file[m
[1mdiff --git a/JavaScript Basics/Exersizes/.idea/workspace.xml b/JavaScript Basics/Exersizes/.idea/workspace.xml[m
[1mnew file mode 100644[m
[1mindex 0000000..31d10a8[m
[1m--- /dev/null[m
[1m+++ b/JavaScript Basics/Exersizes/.idea/workspace.xml[m
[36m@@ -0,0 +1,401 @@[m
[32m+[m[32m<?xml version="1.0" encoding="UTF-8"?>[m
[32m+[m[32m<project version="4">[m
[32m+[m[32m <component name="ChangeListManager">[m
[32m+[m[32m <list default="true" id="b028b616-ee08-46fa-99e9-26ebdf00ceaf" name="Default" comment="" />[m
[32m+[m[32m <ignored path="Exersizes.iws" />[m
[32m+[m[32m <ignored path=".idea/workspace.xml" />[m
[32m+[m[32m <ignored path=".idea/dataSources.local.xml" />[m
[32m+[m[32m <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />[m
[32m+[m[32m <option name="TRACKING_ENABLED" value="true" />[m
[32m+[m[32m <option name="SHOW_DIALOG" value="false" />[m
[32m+[m[32m <option name="HIGHLIGHT_CONFLICTS" value="true" />[m
[32m+[m[32m <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />[m
[32m+[m[32m <option name="LAST_RESOLUTION" value="IGNORE" />[m
[32m+[m[32m </component>[m
[32m+[m[32m <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />[m
[32m+[m[32m <component name="CreatePatchCommitExecutor">[m
[32m+[m[32m <option name="PATCH_PATH" value="" />[m
[32m+[m[32m </component>[m
[32m+[m[32m <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />[m
[32m+[m[32m <component name="FavoritesManager">[m
[32m+[m[32m <favorites_list name="Exersizes" />[m
[32m+[m[32m </component>[m
[32m+[m[32m <component name="FileEditorManager">[m
[32m+[m[32m <leaf>[m
[32m+[m[32m <file leaf-file-name="index.html" pinned="false" current-in-tab="false">[m
[32m+[m[32m <entry file="file://$PROJECT_DIR$/Layout/index.html">[m
[32m+[m[32m <provider selected="true" editor-type-id="text-editor">[m
[32m+[m[32m <state vertical-scroll-proportion="-14.0">[m
[32m+[m[32m <caret line="92" column="20" selection-start-line="92" selection-start-column="20" selection-end-line="92" selection-end-column="20" />[m
[32m+[m[32m <folding />[m
[32m+[m[32m </state>[m
[32m+[m[32m </provider>[m
[32m+[m[32m </entry>[m
[32m+[m[32m </file>[m
[32m+[m[32m <file leaf-file-name="main.css" pinned="false" current-in-tab="true">[m
[32m+[m[32m <entry file="file://$PROJECT_DIR$/Layout/styles/main.css">[m
[32m+[m[32m <provider selected="true" editor-type-id="text-editor">[m
[32m+[m[32m <state vertical-scroll-proportion="0.41880342">[m
[32m+[m[32m <caret line="131" column="30" selection-start-line="131" selection-start-column="30" selection-end-line="131" selection-end-column="30" />[m
[32m+[m[32m <folding />[m
[32m+[m[32m </state>[m
[32m+[m[32m </provider>[m
[32m+[m[32m </entry>[m
[32m+[m[32m </file>[m
[32m+[m[32m </leaf>[m
[32m+[m[32m </component>[m
[32m+[m[32m <component name="FileTemplateManagerImpl">[m
[32m+[m[32m <option name="RECENT_TEMPLATES">[m
[32m+[m[32m <list>[m
[32m+[m[32m <option value="JavaScript File" />[m
[32m+[m[32m <option value="Html5" />[m
[32m+[m[32m <option value="CSS File" />[m
[32m+[m[32m </list>[m
[32m+[m[32m </option>[m
[32m+[m[32m </component>[m
[32m+[m[32m <component name="IdeDocumentHistory">[m
[32m+[m[32m <option name="CHANGED_PATHS">[m
[32m+[m[32m <list>[m
[32m+[m[32m <option value="$PROJECT_DIR$/Dices/js/dices.js" />[m
[32m+[m[32m <option value="$PROJECT_DIR$/Dices/js/side-scrolling-text.js" />[m
[32m+[m[32m <option value="$PROJECT_DIR$/Dices/styles/style.css" />[m
[32m+[m[32m <option value="$PROJECT_DIR$/Dices/index.html" />[m
[32m+[m[32m <option value="$PROJECT_DIR$/Layout/index.html" />[m
[32m+[m[32m <option value="$PROJECT_DIR$/Layout/styles/main.css" />[m
[32m+[m[32m </list>[m
[32m+[m[32m </option>[m
[32m+[m[32m </component>[m
[32m+[m[32m <component name="JsBuildToolGruntFileManager" detection-done="true" />[m
[32m+[m[32m <component name="JsGulpfileManager">[m
[32m+[m[32m <detection-done>true</detection-done>[m
[32m+[m[32m </component>[m
[32m+[m[32m <component name="NamedScopeManager">[m
[32m+[m[32m <order />[m
[32m+[m[32m </component>[m
[32m+[m[32m <component name="PhpServers">[m
[32m+[m[32m <servers />[m
[32m+[m[32m </component>[m
[32m+[m[32m <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />[m
[32m+[m[32m <component name="ProjectFrameBounds">[m
[32m+[m[32m <option name="x" value="-8" />[m
[32m+[m[32m <option name="y" value="-8" />[m
[32m+[m[32m <option name="width" value="1382" />[m
[32m+[m[32m <option name="height" value="744" />[m
[32m+[m[32m </component>[m
[32m+[m[32m <component name="ProjectLevelVcsManager" settingsEditedManually="false">[m
[32m+[m[32m <OptionsSetting value="true" id="Add" />[m
[32m+[m[32m <OptionsSetting value="true" id="Remove" />[m
[32m+[m[32m <OptionsSetting value="true" id="Checkout" />[m
[32m+[m[32m <OptionsSetting value="true" id="Update" />[m
[32m+[m[32m <OptionsSetting value="true" id="Status" />[m
[32m+[m[32m <OptionsSetting value="true" id="Edit" />[m
[32m+[m[32m <ConfirmationsSetting value="0" id="Add" />[m
[32m+[m[32m <ConfirmationsSetting value="0" id="Remove" />[m
[32m+[m[32m </component>[m
[32m+[m[32m <component name="ProjectView">[m
[32m+[m[32m <navigator currentView="ProjectPane" proportions="" version="1">[m
[32m+[m[32m <flattenPackages />[m
[32m+[m[32m <showMembers />[m
[32m+[m[32m <showModules />[m
[32m+[m[32m <showLibraryContents />[m
[32m+[m[32m <hideEmptyPackages />[m
[32m+[m[32m <abbreviatePackageNames />[m
[32m+[m[32m <autoscrollToSource />[m
[32m+[m[32m <autoscrollFromSource />[m
[32m+[m[32m <sortByType />[m
[32m+[m[32m </navigator>[m
[32m+[m[32m <panes>[m
[32m+[m[32m <pane id="ProjectPane">[m
[32m+[m[32m <subPane>[m
[32m+[m[32m <PATH>[m
[32m+[m[32m <PATH_ELEMENT>[m
[32m+[m[32m <option name="myItemId" value="Exersizes" />[m
[32m+[m[32m <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />[m
[32m+[m[32m </PATH_ELEMENT>[m
[32m+[m[32m </PATH>[m
[32m+[m[32m <PATH>[m
[32m+[m[32m <PATH_ELEMENT>[m
[32m+[m[32m <option name="myItemId" value="Exersizes" />[m
[32m+[m[32m <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />[m
[32m+[m[32m </PATH_ELEMENT>[m
[32m+[m[32m <PATH_ELEMENT>[m
[32m+[m[32m <option name="myItemId" value="Exersizes" />[m
[32m+[m[32m <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />[m
[32m+[m[32m </PATH_ELEMENT>[m
[32m+[m[32m <PATH_ELEMENT>[m
[32m+[m[32m <option name="myItemId" value="Layout" />[m
[32m+[m[32m <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />[m
[32m+[m[32m </PATH_ELEMENT>[m
[32m+[m[32m </PATH>[m
[32m+[m[32m <PATH>[m
[32m+[m[32m <PATH_ELEMENT>[m
[32m+[m[32m <option name="myItemId" value="Exersizes" />[m
[32m+[m[32m <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />[m
[32m+[m[32m </PATH_ELEMENT>[m
[32m+[m[32m <PATH_ELEMENT>[m
[32m+[m[32m <option name="myItemId" value="Exersizes" />[m
[32m+[m[32m <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />[m
[32m+[m[32m </PATH_ELEMENT>[m
[32m+[m[32m <PATH_ELEMENT>[m
[32m+[m[32m <option name="myItemId" value="Layout" />[m
[32m+[m[32m <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />[m
[32m+[m[32m </PATH_ELEMENT>[m
[32m+[m[32m <PATH_ELEMENT>[m
[32m+[m[32m <option name="myItemId" value="styles" />[m
[32m+[m[32m <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />[m
[32m+[m[32m </PATH_ELEMENT>[m
[32m+[m[32m </PATH>[m
[32m+[m[32m <PATH>[m
[32m+[m[32m <PATH_ELEMENT>[m
[32m+[m[32m <option name="myItemId" value="Exersizes" />[m
[32m+[m[32m <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />[m
[32m+[m[32m </PATH_ELEMENT>[m
[32m+[m[32m <PATH_ELEMENT>[m
[32m+[m[32m <option name="myItemId" value="Exersizes" />[m
[32m+[m[32m <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />[m
[32m+[m[32m </PATH_ELEMENT>[m
[32m+[m[32m <PATH_ELEMENT>[m
[32m+[m[32m <option name="myItemId" value="Layout" />[m
[32m+[m[32m <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />[m
[32m+[m[32m </PATH_ELEMENT>[m
[32m+[m[32m <PATH_ELEMENT>[m
[32m+[m[32m <option name="myItemId" value="images" />[m
[32m+[m[32m <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />[m
[32m+[m[32m </PATH_ELEMENT>[m
[32m+[m[32m </PATH>[m
[32m+[m[32m <PATH>[m
[32m+[m[32m <PATH_ELEMENT>[m
[32m+[m[32m <option name="myItemId" value="Exersizes" />[m
[32m+[m[32m <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />[m
[32m+[m[32m </PATH_ELEMENT>[m
[32m+[m[32m <PATH_ELEMENT>[m
[32m+[m[32m <option name="myItemId" value="Exersizes" />[m
[32m+[m[32m <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />[m
[32m+[m[32m </PATH_ELEMENT>[m
[32m+[m[32m <PATH_ELEMENT>[m
[32m+[m[32m <option name="myItemId" value="Dices" />[m
[32m+[m[32m <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />[m
[32m+[m[32m </PATH_ELEMENT>[m
[32m+[m[32m </PATH>[m