Changeset 9499 for 2017/30/MikkoH/Matrix
- Timestamp:
- 2018-02-11 20:14:59 (4 years ago)
- Location:
- 2017/30/MikkoH/Matrix
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
2017/30/MikkoH/Matrix/Matrix.sln
r9498 r9499 1 1 2 2 Microsoft Visual Studio Solution File, Format Version 12.00 3 # Visual Studio 1 54 VisualStudioVersion = 1 5.0.26430.63 # Visual Studio 14 4 VisualStudioVersion = 14.0.25420.1 5 5 MinimumVisualStudioVersion = 10.0.40219.1 6 6 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Matrix", "Matrix\Matrix.csproj", "{8261E806-4EC8-4200-AB21-070B09578FE5}" 7 EndProject8 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CopyPaste", "CopyPaste\CopyPaste.csproj", "{16EE4099-5D52-4A2F-BFD4-EC32391D48A4}"9 7 EndProject 10 8 Global … … 18 16 {8261E806-4EC8-4200-AB21-070B09578FE5}.Release|Any CPU.ActiveCfg = Release|Any CPU 19 17 {8261E806-4EC8-4200-AB21-070B09578FE5}.Release|Any CPU.Build.0 = Release|Any CPU 20 {16EE4099-5D52-4A2F-BFD4-EC32391D48A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU21 {16EE4099-5D52-4A2F-BFD4-EC32391D48A4}.Debug|Any CPU.Build.0 = Debug|Any CPU22 {16EE4099-5D52-4A2F-BFD4-EC32391D48A4}.Release|Any CPU.ActiveCfg = Release|Any CPU23 {16EE4099-5D52-4A2F-BFD4-EC32391D48A4}.Release|Any CPU.Build.0 = Release|Any CPU24 18 EndGlobalSection 25 19 GlobalSection(SolutionProperties) = preSolution -
2017/30/MikkoH/Matrix/Matrix/Program.cs
r9498 r9499 19 19 } 20 20 21 static char Rand() => (char)r.Next(0x01F8, 0x0248); 21 static char RC() => (char) r.Next(0x01F8, 0x0248); 22 23 static void Print(int y, int x, ConsoleColor c, char ch) 24 { 25 Console.SetCursorPosition(y, x); 26 Console.ForegroundColor = c; 27 Console.Write(ch); 28 } 22 29 23 30 static void Update(int col) … … 25 32 int t = hs[col]; 26 33 27 Console.SetCursorPosition(col, t++ % h);28 Console.Write(' ');34 Print(col, t++ % h, ConsoleColor.Gray, ' '); t += 10; 35 Print(col, t++ % h, ConsoleColor.DarkGreen, RC()); 29 36 30 Console.ForegroundColor = ConsoleColor.DarkGreen;31 for (int i = 0; i < 8; i++)32 {33 Console.SetCursorPosition(col, t++ % h);34 Console.Write(Rand());35 }36 37 Console.ForegroundColor = ConsoleColor.Green;38 37 for (int i = 0; i < 2; i++) 39 { 40 Console.SetCursorPosition(col, t++ % h); 41 Console.Write(Rand()); 42 } 43 44 Console.SetCursorPosition(col, t++ % h); 45 Console.ForegroundColor = ConsoleColor.White; 46 Console.Write(Rand()); 38 Print(col, t++ % h, ConsoleColor.Green, RC()); 39 Print(col, t++ % h, ConsoleColor.White, RC()); 47 40 48 41 if (hs[col] < h) hs[col]++; -
2017/30/MikkoH/Matrix/Matrix/obj/Debug/Matrix.csproj.FileListAbsolute.txt
r9498 r9499 5 5 C:\Users\Mikko\Desktop\code\jypeli\Matrix\Matrix\obj\Debug\Matrix.pdb 6 6 C:\Users\Mikko\Desktop\code\jypeli\Matrix\Matrix\obj\Debug\Matrix.csprojResolveAssemblyReference.cache 7 C:\Users\Mikko\Desktop\code\MikkoH\Matrix\Matrix\bin\Debug\Matrix.exe.config 8 C:\Users\Mikko\Desktop\code\MikkoH\Matrix\Matrix\obj\Debug\Matrix.exe 9 C:\Users\Mikko\Desktop\code\MikkoH\Matrix\Matrix\obj\Debug\Matrix.pdb 10 C:\Users\Mikko\Desktop\code\MikkoH\Matrix\Matrix\bin\Debug\Matrix.exe 11 C:\Users\Mikko\Desktop\code\MikkoH\Matrix\Matrix\bin\Debug\Matrix.pdb 12 C:\Users\Mikko\Desktop\code\MikkoH\Matrix\Matrix\obj\Debug\Matrix.csprojResolveAssemblyReference.cache
Note: See TracChangeset
for help on using the changeset viewer.