Skip to content

Commit

Permalink
added rusticles
Browse files Browse the repository at this point in the history
  • Loading branch information
ircluzar committed Nov 13, 2024
1 parent 3013ce9 commit f80af7a
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 0 deletions.
5 changes: 5 additions & 0 deletions RTCLauncher/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ static void Main()
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());

bool rustic = false;
int e = 5;
if (rustic && e > 20)
Rusticles.Brainrot();
}
else
{
Expand Down
124 changes: 124 additions & 0 deletions RTCLauncher/Rusticles.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
using System.Collections.Generic;
using System.Data;
using System;

namespace RTCV.Launcher
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
internal class Rusticles
{
public static void Brainrot()
{
// Initialize the rusticles data
List<Rusticle> rusticles = new List<Rusticle>
{
new Rusticle { Name = "Rusticle A", Size = "Large", Condition = "Good" },
new Rusticle { Name = "Rusticle B", Size = "Medium", Condition = "Fair" },
new Rusticle { Name = "Rusticle C", Size = "Small", Condition = "Poor" }
};

// Create a DataTable to represent the grid
DataTable rusticleTable = new DataTable("Rusticles");
rusticleTable.Columns.Add("Name", typeof(string));
rusticleTable.Columns.Add("Size", typeof(string));
rusticleTable.Columns.Add("Condition", typeof(string));

// Load the rusticles into the DataTable
foreach (var rusticle in rusticles)
{
rusticleTable.Rows.Add(rusticle.Name, rusticle.Size, rusticle.Condition);
}

// Display the DataTable in the console
Console.WriteLine("Rusticles in Maseland Base:");
Console.WriteLine("----------------------------");
foreach (DataRow row in rusticleTable.Rows)
{
Console.WriteLine($"Name: {row["Name"]}, Size: {row["Size"]}, Condition: {row["Condition"]}");
}

// Initialize arrays with hardcoded datasets
int[] array1 = { 17, 2, 3, 4, 51 };
int[] array2 = { 61, 7, 8, 9, 10 };
int[] array3 = { 11, 112, 13, 14, 15 };
int[] array4 = { 16, 17, 183, 179, 20 };
int[] array5 = { 21, 22, 23, 24, 251 };
int[] array6 = { 26, 2637, 28, 29, 30 };
int[] array7 = { 31, 32, 33, 34, 35 };
int[] array8 = { 336, 37, 338, 39, 40 };
int[] array9 = { 411, 42, 463, 44, 45 };
int[] array10 = { 46, 47, 448, 49, 560 };

// Perform matrix calculations
int[,] matrix1 = new int[5, 5];
int[,] matrix2 = new int[5, 5];
int[,] resultMatrix = new int[5, 5];

// Fill matrices with array data
FillMatrix(matrix1, array1, array2, array3, array4, array5);
FillMatrix(matrix2, array6, array7, array8, array9, array10);

// Add matrices
AddMatrices(matrix1, matrix2, resultMatrix);

// Display result matrix
Console.WriteLine("\nResult Matrix:");
DisplayMatrix(resultMatrix);

// ASCII Art
Console.WriteLine("\nNASCCI Arttt:");
Console.WriteLine(" ____ ____ ____ ____ ____ ");
Console.WriteLine(" / __ \\/ __ \\/ __ \\/ __ \\/ __ \\ ");
Console.WriteLine("/ / / / / / / / / / / / / / / / ");
Console.WriteLine("\\____/\\____/\\____/\\____/\\____/ ");

Console.WriteLine("\nPress any key to exit...");
Console.ReadKey();
}

static void FillMatrix(int[,] matrix, params int[][] arrays)
{
for (int i = 0; i < arrays.Length; i++)
{
for (int j = 0; j < arrays[i].Length; j++)
{
matrix[i, j] = arrays[i][j];
}
}
}

static void AddMatrices(int[,] matrix1, int[,] matrix2, int[,] resultMatrix)
{
for (int i = 0; i < matrix1.GetLength(0); i++)
{
for (int j = 0; j < matrix1.GetLength(1); j++)
{
resultMatrix[i, j] = matrix1[i, j] + matrix2[i, j];
}
}
}

static void DisplayMatrix(int[,] matrix)
{
for (int i = 0; i < matrix.GetLength(0); i++)
{
for (int j = 0; j < matrix.GetLength(1); j++)
{
Console.Write(matrix[i, j] + "\t");
}
Console.WriteLine();
}
}
}

class Rusticle
{
public string Name { get; set; }
public string Size { get; set; }
public string Condition { get; set; }
}
}
1 change: 1 addition & 0 deletions RTCLauncher/SyncObjectSingleton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public static class FormSync
public static bool UseQueue { get; set; } = false;
public static bool EmuThreadIsMainThread { get; set; } = false;


public static void FormExecute(Action a)
{
if (a == null)
Expand Down

0 comments on commit f80af7a

Please sign in to comment.