From afdfb96a93315c0f18f8424c1d5a1eda03afd799 Mon Sep 17 00:00:00 2001 From: martins Date: Fri, 17 Dec 2021 18:34:37 +0100 Subject: [PATCH] modif affichage --- action.c | 5 +++-- action.o | Bin 0 -> 5184 bytes decod_instruction.o | Bin 0 -> 4680 bytes graphique.c | 18 +++++++++++++----- graphique.o | Bin 0 -> 3616 bytes superviseur | Bin 21824 -> 21824 bytes vir1.mars | 2 +- 7 files changed, 17 insertions(+), 8 deletions(-) create mode 100644 action.o create mode 100644 decod_instruction.o create mode 100644 graphique.o diff --git a/action.c b/action.c index 6703c3c..1c5cc0d 100644 --- a/action.c +++ b/action.c @@ -92,7 +92,7 @@ int main(void){ int init_1=retenue1; int init_2=retenue2; -while(nombre_execution<7500){ +while(nombre_execution<10000){ int perdant=0; if(temps>5){ @@ -147,7 +147,8 @@ while(nombre_execution<7500){ on marque que les virus sont à égalité. */ -printf("\033[32m \n egalité aucun virus n'a gagner \033[0m \n"); +printf("\033[31m \n egalité aucun virus n'a gagner \033[0m \n"); +ImageFin(3); fclose(virus); diff --git a/action.o b/action.o new file mode 100644 index 0000000000000000000000000000000000000000..791207f2eb629e567c3ad5b5c1b9d66d51b98743 GIT binary patch literal 5184 zcmd6rTWl0n7=ZunQZ5y`6$O#1j1i zp;;C)Sr&PKL=CS5P0;vY6p580VDS=CFd;P<C7?ibhU#@JekdOZ$IcJamHtDr_XPwWS{qLg3Jp0wo z#byD_8+3Avv0o>57~jiz7FhP;Ik_VUFL%g={e!|=FJWgu=tQ1rPqSG zaF(@0y?qpjg4$&R3{m<;gJt_DWXRs_dmB7TmuF^~`(f_;8H|&Ciz0^dtXFj`q&;*; z160^M<4+tw*Wt(8%SG2c2gTO*>FzKT_Fly4;ubx>zAgLklGiXnw;&UAf=H#{b--^zT_a$$78=UK14 zwZJyjB@_GLc6KCfS~qUmYz5tzwuf($HVy7*+RWyb(zYJCNy`1`m{0y4F9h!BwpLMZ zAFZ9pT!6@)3xCmsjE?m&+>>6KV-Gt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#t2C;;p9z4k7enM z2X?u#6rBOxnVQ~TC3FDYT1iX+36rGe72Pi*$Ohc1A zZqi#Y)x*mHriV>B3sX%hnIZb};X5#X{HBbh7ZTccNI{NbSSGvQ75 zu_c)Crr%)8S?tNv&=^Dm`=!+~15oE1YG1{7APyxAKnbt061sBhOb_g@l4t1 zF!9HjCDE>e;v^#jQF_zZD-bF0@}@syYY5ky{s@+g=F?6zRny}@2AT}s5X|WgOAF>P z1jCox>8t{l@G2~>_}@bNsukVHiYwWN92 zy8(K8MZrwY>zHi36;``wu$fc%8@rmt?&`(t@=oKNz3C4u6?@lGvA0>p#)M=3NdXc2EIDgm4Wv++;RT?#-s|(1?3R;ob?g!FLsMQ<;3yke8_p@auAm6 z5(S(|fCpCalKyEJ(^uItmTQv$yX$bDpaM=M6-J#*6sjvsU@-XIGUrqXwZt!pS*KMocsk3c;@1u48x*fF~Ch%G$K6sYE zv+tPzfe+;I_Bobj}DxC_xNJae=hs5RHdD zxB{L(@#_s^<0AMM*tjt84?J8-`L6|zcJQA{5`SN$-Y$Pp;CA^QQF6QdS%KT-%SFlU z@?L@4<^QnYUJK7^SmQuD_{h;D77`y6`&VqZ>waOB#1vAUwh*0$f2Cctng%lRyS?KgiN9AK`Sq=1|&`NAUp>T7T5Av6f`5$7I_&-%;1IDos}QWI;J?*|OMN-Fz`0yoMZ5oH z{B59wSH#X=>Q`Hh!dm8E!mq*t{oD2Xh5sHYC}z7pcA-=KJ>vgORH29U$15oHW&NFe xqlyO=V4M}nsem<7vg@Nwd+h-tZ=nK=lYA=t+H<`MPMq`)3I19^lP~Q0e*v3gzc2s* literal 0 HcmV?d00001 diff --git a/graphique.c b/graphique.c index 8b92029..126adba 100644 --- a/graphique.c +++ b/graphique.c @@ -19,11 +19,11 @@ void DessinerVirus(unsigned long int addresse, char* coul){ int y; for(i=0;i<16;i++){ - for(j=0;j<501;j++){ + for(j=0;j<500;j++){ addresse=addresse-1; if(addresse==0){ - x=35+j*3; - y=20+i*55; + x=j*3; + y=i*55; break; } } @@ -32,7 +32,7 @@ void DessinerVirus(unsigned long int addresse, char* coul){ } } - DessinerRectangle(x, y, 3, 30); + DessinerRectangle(35+x, 20+y, 3, 30); } void PremiereImage(void){ @@ -45,7 +45,7 @@ void PremiereImage(void){ for(i=0;i<16;i++){ - for(j=0;j<501;j++){ + for(j=0;j<500;j++){ DessinerRectangle(35+j*(x), 20+i*(y), lx, ly); @@ -74,6 +74,14 @@ void ImageFin(int nb_image){ ChoisirCouleurDessin(c); EcrireTexte(650, 400, "Le virus numero 2 a gagner", 2); } + if(nb_image==3){ + c=CouleurParNom("white"); + ChoisirCouleurDessin(c); + EffacerEcran(c); + c=CouleurParNom("black"); + ChoisirCouleurDessin(c); + EcrireTexte(650, 400, "egalite", 2); + } Touche(); } #endif \ No newline at end of file diff --git a/graphique.o b/graphique.o new file mode 100644 index 0000000000000000000000000000000000000000..c6e647ec8c3c8dfdaf7646da691b50d84c3794a0 GIT binary patch literal 3616 zcmcInO=w(I6uvK0Q-AVjtv}Eb9u&02_A#kSsI)ar`jV%F{-jB9Ax>TN)q_J2|;C$wKtN`?=rw z&UeoJdw1p|dw8(LFqkrfon_lCg);WdliTlo;#a^9W z><#UWwf3@IGj5h@523KRs-XI9WqZ{qmsUIHeq1vaD)z?w%)yGiUS2$MyBlPGj=@cq zu<-jmQl+_MucLFx-slyN&8W47VXC?__3EIC&hMpq4c^x0XOC3IwxCDhAK`DJFFUHM zmvv`B%Nv$z&iolj!kP}u?H2Gj^UosT?gI4m*Ixh;)SnQGQk7~(aAhxO-?hOa6 z@e@70foS&3os3)YSC2(7WBXtVyWn~ZuAvKK3GYNcp7g=-Nzn0 zYV=^u=xwxEy*E33G12>-7`9?!G@9Z28$rQ`4mYtFd!h-7`mGIkJ0J&0{bEc3I|LWb zk8V8xG{fK61s~l7p8_27s(fOu0P`i@Er(Rh5nv^_n&l05!54PHVNJU;>CAfpx038U zFBUVf(68e9XNjTVi~Z+@6Bh>uuh^rB(R2O7c7hEQf-Da_*f$pnIW~|kWQrM2f>C^3 zW`rkwH=oLKcFE(p4EOk(IXA_bxWg7?cGAmue3Z|^W*IF6$uwv7)Rdd#9(de5lw4oi zxEI>s+Ike(add(qj&r8)uMq@8yaO(UtA(oLaXGH|b;Z4>_^(M^&ubH$=Dn=xfRwOt z!haeNrGJg!2MB&$)4>?D4+)=+!{-El26#&UOHJoFp~Bc#gim$8BRK8X51Nkp*4!g} z+OMj{$1@b|FT$sJ?-QKXU(<9{{SOGA>KHhIVETG!m$;f=aliuaFyYhsk7<0B*CKqH z_bkEbxV=Si+ONx+{@bEz#;y`R)t@3b)%P@=ccsov!l(VJ5S*?zQ^uiNQUubc;p)3I zuHovt#H`|tobOJ+)AyohTD^HZ>smhSa%N4szRRqMVv$*1A!;NGxg5`fFJJJv1!v!h zqK~I&)K29CYsM?gaL>O1F{s4Ti7C&`!TI_hmE{5e^maT!`~m&^!R@OkY|2^ literal 0 HcmV?d00001 diff --git a/superviseur b/superviseur index 66d8ecce36968513f1cac3c7fe0109bee45db469..7881661c1bc9f191636ee13cc1ca6b3765a73232 100755 GIT binary patch delta 1331 zcmZ8heQZ-z6u+lkVb8U6ABA>d*;?r~(O}n(1g91$_N{NpFk?7ziMkCXfE~JIoovQY zOf!>bEiN4X7>Oa8KxPn#`jY94v0X@9&_t$2f?~3b@W)$L%(Pol$jJ5FvH{yo&i&o< z^*iT&KuHT57NK}mKy_D1Rkl~cu#BB8o&cZPVYVSKB8)vw7I9(oH$*3P};EZ zcf)pUE9-vKd`ElF__S3TDPc@WSe`4swVE;O@#}XvR}%hb?TqQ6 zEayqluiikhN_;@iBd0p9ue;58j$DcNWZzI~w^lwzQ4y1VR(q}VXA|_{;}w6wX*4;n z!npRg^Ekj$7=APZXRvLPE9(14(8yUOPC|4-AD4B}?QC#dPUjZYO6>48P-6YpSdTs4 zl2#`m1rw?~7nk*LYMUz0&st(~8s6_uXMnMz6S>fcIVS56>({MEM`mF#F3%^rY;k!m zmfAF0PQ2gIc1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-fS+14~5OY z+x1l4Gvsb-*>O)dvW2!fXQ|sKr2eAL{`%LT0ek8{NWeqRM|&t+37LDE^FhMa8P3NE zI|;>|r)Q});i=o4Ga780&3Pr^BH`nNjycXd2@n0r`B}odgqH|kUF1ANm|o(1hLA0D z{;;?uT4i~_4}(763e`~sj}*8CRFmx?>%@s*t?zZ}D(4mK_M$A*A=pz*xcZU%h*l(`)JbsJ$_7k496P$fuTP*mqll5>Wv`O zG+Fi{`3F(j9d(V<|G2E9yRXsc%25gFpjbyki4CCOY*+<1dK$gZNBb7*vBsMKEht5V zdtYRL_Sr~OdQ1EgEg6H_VUn5JNhn2V8iwa^q$%pSRD+wMyI>RUi=G50ejXj5ci@QL v1yk0DK3xcL{OF)6Dckc|6#VgElrjfms`TH>b0oG`>ihRS>a#A!1|0tY9iPBc diff --git a/vir1.mars b/vir1.mars index f96a05a..8a16805 100644 --- a/vir1.mars +++ b/vir1.mars @@ -1 +1 @@ -7999 \ No newline at end of file +1513209474796486657 \ No newline at end of file