From 1e6561af2755236330b8d9cc52cbc2333777a26f Mon Sep 17 00:00:00 2001 From: David PC Saiz Date: Wed, 8 Feb 2023 18:13:53 +0100 Subject: [PATCH] Spielfeld wird generiert --- build/artifacts/release/Paper-Bin.out | Bin 15968 -> 16080 bytes build/release/Paper-Bin.out | Bin 15968 -> 16080 bytes build/release/out/c/Paper-Bin.o | Bin 1512 -> 2072 bytes src/Paper-Bin.c | 33 ++++++++++++++++++++++++-- 4 files changed, 31 insertions(+), 2 deletions(-) diff --git a/build/artifacts/release/Paper-Bin.out b/build/artifacts/release/Paper-Bin.out index 9d42ece52403ea775d83249fc5b644ebc8f9aeea..8f728995e6240a30abfb6b723cd31e1afbfc914c 100644 GIT binary patch delta 2271 zcmaJ?Z){Ul6u%Tk1d&CI(*&7p!x3i&uKPg3 zV6|d0#$<2|K?#PaA^o6X%chx$x>X|^`eidQsEJyF#!fH}oMt1FdhUDgE|WxW^6u~a zyXV|{-Z}TC4o`OV7uYX|L>*xbi0D7H_M+viS!2(h`c}?K3L29Xz)n5&Y2A_|(LGR< zvt@~Onn5D;Z*0}wRGTz8Unjs*)CB`{LbAFw%_2gNu&4OH{59zQ8o**`&)+-pRnE5D z*WZ06)gQdl{)YRDGxQvsFg&z88-4Pv5fW1)WWyE18Y;uB@&dSJaL@**H#)#=ETBw~6qAf3wj<%MT1LQzww5j#k7fIXxy-l8uc25=Ay1j1WrafLy zMdc#t_4wdY@R+n`a?za%M*{<#uQ>v$u zorR5VNy7oCH#wl&R01EFthuR2G%5QD2KX2?H&HsXL~4fLOpZG4g;|g3+AO45miU-h zA~$j&;^Y!})=;sz!*W`@Kl`{$$nDGny|7j++||nb+@7AwWHSAK*jC+9|NHIfByymaRKRk_z5K*dW(@t&(Be-(i^&nOnUxq zCX;T)onJP+2eP#KX#A##0b7?byYUg`K7AE!#v?O~z7ZLZ%&LU9H!`a zs7>0Qd)jUEHMO;1k6>ZlXQ(MdWR0IclgTtA?m|3)*o^oN;%kVk+`FLGy=G+?xd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S#5qL=3C&?BxX|+u-S_I9s=oIvtA$k#BGA*sZODTR}epoU?n(A~pDRVZHez;|xq6XAiA*w>J^{TX* zgca#wC|c$4gSD2PfAH|Q$-qy-?k)b0XZ_1~acC6nk;a*lAW>nvRo6t_><>h9Cr7o3X9@N={}J&uG%d``l+!_9Y{w}S+Uzel)n z@M#tV!)N%t*u8HJh2{F?ucvsToQ=o?XY06LzTP~qMha*aoJf7 zUh6!LLFqdQG#*4-S?Vw-QvLy=FQCaX6DVldHYnoeajj@SX)eY?Z23`J&pQ z<6Fap*PSCPr$pVN+N9lPDDZr_-ELQKgPl9r|N6V#CdLi1grR2{o0*=zE?=6P&!^11 z9Em7bl<{yRZ@H1e#Dp?_b&S)z2*wd4!Hv({nPVQtw!nEwfFWBk>G3R+R)W%~zt8uA z+6oa50mjg#IuKmPJDoUBgd2bH7@pnLGe$N%6;CNKwiq`O3oNO}Q!KZdGmRw6RLD{ENkma|P6JgUObx=8Vac1(~EL z_pqu!Sv;&flW(v}a3({w^G*KAYR**1FxiOBj&UwTF`EkGg2@M2#V4O&(_lKlF!>Xk o-Q*8!9Fr~BEjWKb^-Y*u$!^Zs0kunV@=kVht`AUN3CJOG0FC}e>Hq)$ diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index 4567f4b..256e384 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -1,7 +1,36 @@ #include + +char field[23][29]; + int main() { - // printf() displays the string inside quotation - printf("Hello, World!"); + while (1) + { + system("clear"); + + for (int i = 0; i < 23; i++) + { + for (int j = 0; j < 29; j++) + { + field[i][j] = ' '; + } + } + + for (int i = 0; i < 29; i++) + { + printf("|"); + for (int j = 0; j < 23; j++) + { + if (i == 0 || i == 29 - 1 || i == 2) + printf("="); + else + printf("%c", field[j][i]); + } + printf("|"); + printf("\n"); + } + sleep(1); + } + return 0; }