From 63fee94b0db8c3f45ee619a9129b18089462bff9 Mon Sep 17 00:00:00 2001 From: The_miro Date: Thu, 3 Oct 2024 11:19:14 +0200 Subject: [PATCH] arbeit an TUI Klasse --- Program-Core_GPT.cs | 6 ++++-- Program-Core_GPT.exe | Bin 4096 -> 4608 bytes TUI.cs | 31 +++++++++++++++++++++++++++---- 3 files changed, 31 insertions(+), 6 deletions(-) diff --git a/Program-Core_GPT.cs b/Program-Core_GPT.cs index 46c3109..b3274ff 100644 --- a/Program-Core_GPT.cs +++ b/Program-Core_GPT.cs @@ -5,8 +5,8 @@ class SlotMachine { static void Main() { - TUI Test = new TUI(); - Test.Generate(); + TUI Test = new TUI(); + Random random = new Random(); string[] symbols = { "Kirsche", "Zitrone", "Orange", "Pflaume", "Melone", "Glocke", "Bar" }; @@ -37,5 +37,7 @@ class SlotMachine } Console.WriteLine("Vielen Dank fürs Spielen!"); + + Console.WriteLine(Test.Generate()); } } diff --git a/Program-Core_GPT.exe b/Program-Core_GPT.exe index 318fd38195f0d6dea661c216ab3861cf73388e3c..64a6ee3a7f5e0584408db438bb1339b73419ebfa 100755 GIT binary patch delta 939 zcmY*YO-NKx6#nk}z4IKOa~&H?G{;8sRaBB7BL@CdXcQ#aFGgY|Du`p_Y=Tf%ffAHl zf}n&5BB({gKm{#Y^?Zt+qZV*F3L9&wO3G{;4C*u00Xch^*Dt4v&Ibf`h$AXK(F5saH zh!TdUMXW{lTk&v>1s2t`&6R<^W__FWat`yzBJbXvR^*$QY;j<*k42SV5ts@hE)UA0 z7=7HA)4Xy}?nh+|vgBi_T%2Gtul|>(l1_GlOH)ZVdzw)>Q91kapGX>o%x0Ba8d6Ss z#{BQL*OuD02s_xrVr-MLi#rfgj&kcWQ3a=!TYWz1Dpyut=zO%Xv7sDdM>#(60&yzo zWe;&CmGrYUj9$!_QG$cFD7c6ekO>0ibI4b|A^B=ZJYr9IhGd!8)AM%o><#LXnE}2t z9ya+vAwNDjI!#tIQqC`?c4h!;l#?5f={ zQk&0;;)7Hm1uA(+X?ji62OU=$3^WOyb6v!2wZG1Z8x{? zXD)Dc6JZ&H`i;{*7RP@6cAy8X*n|5BnLlQ3yo)%VAxr-poltm#tsP^gMBLzux_5o7a(SI__85mXX6vTS7_)LP#%dGqqW< zC55)a+FI%-%6zvnUg_3_b)h6*nDAvN<<_{AdR(@JeOup*x$>n*i}D()KPtYLM}CT>q2}qfi)teP|}DYB$`+T-82@O z!ey{98W1Io*j=&FA7G;_f^A9*5fw?bHh#0Kg$K_0<~#G9$1shNM*MJdR|vqT)4nIo zmzSew32@QUNg#BZ#XeJ%t9r+3VtQ!q%eZLsM#dyE+cFflSYYiOUBSb8ktz?64u@~n zbj3`o-0mGFm@KR~9I5>!mynow_2pQ3P?Z8em-{M$!ERll#MQJeWf-%5NfUxjT>c=q zX>Pe=cPH6x_zv)jn78Np?d2Pb*H_p8?-bCoxtTiFIVsQF@YKxt8u2Olg5}kPr8%NC z%JWnG3LFQt8)H`u%AF3F|Vc6TFn8jJf({LLs`OjXE*~$NG4!>Y7`J3iIu$n#&K1u<# z&s($Yq4Da2C(pmVm8}i4ni)OlLL}tck`27xT(36}4Md?6BXR>}zGfzR@c!?w+0NUE bk)Hjkm82JRP0}dWcGS;_w2=QH%}VeGjB8Yf diff --git a/TUI.cs b/TUI.cs index 2ba0192..afbd19f 100644 --- a/TUI.cs +++ b/TUI.cs @@ -6,18 +6,41 @@ namespace _TUI { public TUI() { - + } public string Generate() { + string returnstring = ""; + int w = Console.WindowWidth; int h = Console.WindowHeight; - + char[,] Terminal = new char[w,h]; - + #Console.WriteLine(w); + #Console.WriteLine(h); + #Console.WriteLine(Terminal.GetLength(0)); + #Console.WriteLine(Terminal.GetLength(1)); - return ""; + for (int i=0; i