From f9bed9db931bc61722517b7a0bfa2dec325c0f1c Mon Sep 17 00:00:00 2001 From: That_One_Nerd Date: Fri, 26 May 2023 07:28:59 -0400 Subject: [PATCH] Made CorgiCoder's Shift Cipher even more awesome! --- ShiftCipher/.vs/ShiftCipher/v17/.suo | Bin 36352 -> 39936 bytes ShiftCipher/ShiftSerializer.cs | 145 +++++++++++++-------------- 2 files changed, 69 insertions(+), 76 deletions(-) diff --git a/ShiftCipher/.vs/ShiftCipher/v17/.suo b/ShiftCipher/.vs/ShiftCipher/v17/.suo index 8fd6dfd49ec9fc0ed20d0d085ec0c9439ea48045..d4da19b24951eed5d10e9ba2b39dddbab41ac40e 100644 GIT binary patch delta 1890 zcmcIlO>7%Q6!uKlsng7+KsT|qfV zaBxB5N3zsr-xV$^E=WkI*$Q!t)F2_XQc8R3jVt0resURle}%FBdzg5B+`j*32Zc*O{N8KXZ8m{P4Six^s7wAuK#%K=UY$2D19K` z*2QsbI0|5Yla}=%uP&7kF%nw8>II(#I)LR_qtGAh%LkHmUI~5koX3j+Hwd{ro6x3x znHS~VW3kH3oC&6ndRy@5oYZa*dt&LhuG+M zm~>I&*Qzd?E%lPgs6DZPO1I)lC@WVjKe6SISisyUdwx zkx^~|&1Px>dmqYpD}$d69z9?@Hv{6dZ6 zQ=7TF3Lp5v;6`fgA$y_b^jR{!Yjb~|?(w=`dn%lXm=`?wLSZ4O*p2d*ex!!wp(UJaVMq1d-&gMw04&bkW z-%aZ-W#=co)z36Rzkhsi=fdHDb7tGOL*eYE9JrBoQ4R-cWXhN`(cyJ3KHcwrBHhn5 zq0!CWGhS(WHToQhdFQckYto&UZb7cx_(E>;yZgU>d+?i2qwlBtsPv`bWowTFbpHk0 CMvgrI delta 1755 zcmb_cO>7%Q6y6!HlT9+461%u2aenG1#Z7Ey?WT!1gW*)00*RI5aQ57rS^d6A)!d9y+uMos)Ue0dx#HU-dq1<+akoF zBYm2AZ{ECl^WOWW{2ec^@{f&vt~ACYiqeTolK-yNYNYkSF*SH)?l;CpU^gG^*ytL2 z=kiB)SOm`Tqj24qk`5P)g@LJkMbS983+FZj`lxl|jD8gj(Svvtu@gai?KnS%=tWE; zf(RW!mv`VyHt@C7}ysiyKVrcPi5tC>5 z&xqGLr@79^Q?hXjtn>^+`3V)yi-Jbar%hMsh@v*;RhW8FV;+Tc^!&r~=BFZtp_-Vb z%KN`UX%#LcT?w3Ip0r?&TXr-nsQ&$)NWhHN_nl~7XH<3Lp4~lpAB!vSsuhCIdcuCn zdQnz`?c7dI*Zns9Z{M>a0%(=G$Bj`Cl%3GFG6q}5k-CReK~Q^9+ci_@Uq<13sE*te zRAef8b4xmV1+#l+w6sSFW^Z0sC^}+E(-fTE#^d|k+5aVOcFF1>h9AGKGwPXEzhX6| z6GzvXGFz34nRnU4$`@2qSPLC%kj8B8X=T%%RblJIO`Q#39OIt2?Tp$^q{RWXLlJfk zmZuKD#UTxr&UeDeT+C<04Oq@CvA3ZA@Go{O3paEF%-FiF5OanQtsI#9tjYqnU(WJq z>t-+qiZBz6gEN3>BU2*9_K{aCJCGGb=O(?}zBWS}JmPT@#Fn8?W4Gt9AS$8kj*7+Y z(X62UB<3|QkY=R71bsim)TY+|3<{d8PPX&4(@aQ~t1*~=dQQ%nmwc7kHgpEJUI@rQ z;df@|`X0j`+&@1tArr@cVzxD$zHngky`RnZN1l2kD8E*ISh#w|K7Muc z%5%5kf2@D;e|u=JfzY`<&M#7{f%|@8%P#s77Uu8k9yu>RX@_zvQ CA4@3! diff --git a/ShiftCipher/ShiftSerializer.cs b/ShiftCipher/ShiftSerializer.cs index 5c18af7..2da3f8a 100644 --- a/ShiftCipher/ShiftSerializer.cs +++ b/ShiftCipher/ShiftSerializer.cs @@ -9,7 +9,7 @@ public class ShiftSerializer static ShiftSerializer() { - // Print the logo! That's the most important part. + // Print the logo! // This is the best way I, CorgiCoder, can think of to do this. string[] textElements1 = new string[] { @@ -140,51 +140,54 @@ public class ShiftSerializer ██████ ██ ██ ██ - ██ - ██ - ██ + ██████ + ██ + ██ ██ ██ ██████ """, + """ + + ██ + ██ + ██ + ██████ + ██ ██ + ██ ██ + ██ ██ + """, + """ + + + ██ + + ██ + ██ + ██ + ██ + """, + """ + + ██████ + ██ + ██ + ██████ + ██ + ██ + ██ + """, """ - - - ██████ - ██ ██ - ██ ██ - ██ ██ - ██████ + ██ + ██ + ██ + ██████ + ██ + ██ + ██ """, """ - - - - ██ ████ - ████ - ██ - ██ - ██ - """, - """ - - ██████ - ██ ██ - ██ ██ - ██████ - ██ - ██ ██ - ██████ - """, - """ - - - - ██ - - ██ - ██ - ██ + """, """ ██████ @@ -197,24 +200,34 @@ public class ShiftSerializer ██████ """, """ - - ██████ - ██ ██ - ██ ██ - ██ ██ - ██████ + ██ + + ██ + ██ + ██ + ██ """, """ - ██ - ██ - ██ - ████████ + + ████████ ██ ██ ██ ██ - ██ ██ - ████████ + ████████ + ██ + ██ + ██ + """, + """ + + ██ + ██ + ██ + ██████ + ██ ██ + ██ ██ + ██ ██ """, """ @@ -235,26 +248,6 @@ public class ShiftSerializer ██ ██ ██ - """, - """ - ██ - ██ - ██ - - - - - - """, - """ - - - - ██████ - ██ - ██████ - ██ - ██████ """ }; ConsoleColor[] colors = { ConsoleColor.Red, ConsoleColor.DarkYellow, ConsoleColor.Yellow, @@ -279,19 +272,19 @@ public class ShiftSerializer } position = 0; - for (int i = 0; i < textElements1.Length; i++) + for (int i = 0; i < textElements2.Length; i++) { int maxLength = 0; - string[] lines = textElements1[i].Split('\n'); + string[] lines = textElements2[i].Split('\n'); - Console.ForegroundColor = colors[i % colors.Length]; + Console.ForegroundColor = colors[colors.Length - (i % colors.Length) - 1]; for (int j = 0; j < lines.Length; j++) { - Console.SetCursorPosition(position, j + textElements1.Length + 1); + Console.SetCursorPosition(position, j + textElements2.Length + 1); Console.WriteLine(lines[j]); if (maxLength < lines[j].Length) maxLength = lines[j].Length; } - if (i < textElements1.Length - 1) position += maxLength; + if (i < textElements2.Length - 1) position += maxLength; } Console.ResetColor(); }