From de420d68d77050ab54df8f5cfea0cc4da9ae2d1b Mon Sep 17 00:00:00 2001 From: martins Date: Thu, 5 May 2022 02:06:48 +0200 Subject: [PATCH] petite modif --- CASE/Case.class | Bin 3027 -> 3027 bytes CASE/Case.java | 3 ++- CASE/observateurCase.class | Bin 3344 -> 3344 bytes CASE/observateurCase.java | 38 ++++++++++++++++++------------------- CASE/paintMenuJeu.class | Bin 3680 -> 3670 bytes CASE/paintMenuJeu.java | 6 +++--- CASE/plateau.class | Bin 6402 -> 6415 bytes CASE/plateau.java | 4 ++-- CASE/sauvegarde.data | Bin 10750 -> 10750 bytes 9 files changed, 26 insertions(+), 25 deletions(-) diff --git a/CASE/Case.class b/CASE/Case.class index 41c6fa65877c87aceee25000151689a7c7973415..1abfa9d41d1707dfd332d203c474a2f377c4c906 100644 GIT binary patch delta 335 zcmWNJNhpO;97oUpUf;(vmGPM(V-L~OTbPnk7KkKc$WUa+Ob8)_u;3D5CmUHP3uURS z>{!W4S+SR;+u8gU=ltHhZ{EAVptu-fUbLs}9(!98NQg#39 z{^->jo753bJ+U;9K@+(&Q%nohv|8F&rh`p7IiQP2dU&Fj7y9{QP+&+R8I}}A#LuX- zGA7+j$N-Zv&Xim*BUjAIEpzhDynM1C-z+LGODc_J<*Q{ywXmwXSyO|oE5nAmWK&(U rrC!-qAMB_vc6AhcI*EOq$$@UWSKhKa%{^r z6Hc8spJ)n5pwMzf=FzDVzX@BS%o61$-3@puh$LY5Doux5>!~J+8tc@WGq+0W&8u4? z4G+I=Sg$o%B}gpI_P&KY+VIm(H61k4NtewEA-3q|kRG1s2agY_&$*SsQO%1WG3>)f- uO?AVTdShFCvZKD))$#1

5q2fCFb9pYFIVDt6C%Bav&r%IjPL}q72>` zaKyn|RR-a~(Kj6^jt`8F4m17$N5}EOSDEp}2ZG|a≪_I83MOoVE5^-~QIx-_CjP z&v*9$tcMZC9K>od8|%cZ7qdak#xO$I6vE~(wqR=*E!ZYzyO>rnZDMwa*%@a3E_rJg zvs)@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GO$NoM!PCtueyy6 zMhdY)4>3!0p+g1PX$MrU3m?RQe%$LD#OK~pSJqOz<>;u34!Gw}-gZ+Nu1dw$ zy;N-7NoCkd#lnx3fy5&IVLKbU9!D>MIJyl&U%MW=7u<6yDaDFj9xJ*VD>bkeyC{#R`1nLCaV4!vT-V|y zDn0Y=>j}&w@dx=j9^#EX%lmpBef-!C^5gmulK7lA^jD1H4;X3%E~>RisdE@pIx^~O zjH^4ysv>e)4f0w)CbV<7V%^1ss4HTScdv;3MI2}?qPK|SMgA4gF`XZyZEc zTZQOaJVe{#A-WzFJ*vvmp<-E<78NV99QMk!vJ{UB%*Ur&2`$M~Lfe+gbS-F)=ohT_ z`73t5-=KU8-{NijfNS^(*YP($Lyzz-KRh?oPTW+7@t!(`_tiCg zzz@!c>MMM#e#0l~FBH^2_*C14&$KSw(oSR2B7Y<5+KcEU``d~*Qbb=7{Y73dg-zC{ GXY+r`cfrH} diff --git a/CASE/observateurCase.java b/CASE/observateurCase.java index c25d81e..f8d91fc 100644 --- a/CASE/observateurCase.java +++ b/CASE/observateurCase.java @@ -17,25 +17,6 @@ public class observateurCase implements MouseListener{ } @Override public void mouseClicked(MouseEvent evenement){ - //nous testons si le joueur a gagner/perdu - //si perdu - if(plat.etatDeVictoire()==-1){ - plateau.removeListener(this.tableau); - for(int i=0;iSbhR)9~Cplkp@Iw>J+%6hkx*!*Yfdn{!!`7$@Ig z{VvJ^RC!iwI|HMZ^i~EYEt#zh%v!RWpRnCx5tz!r&cMvTz$B!#g@JiCns+*;GIT>w&7#bKO7#bOy7@8S77+M%NF|;vmV`yi5%+SRo$k59W0knXZ Xf!jSbhN)!00X@gx)Xavp{#hG-s!6$~pk=dmO)GO=k) zKFRt|lo_b@tk!l0MlI>B3`|-wTN#+OWH#SnyTu|koq?SJD9t3IwS|FsHseDXmIVyD z+CUD+WJWI4$zQoY^6G=QB3j!Rv<295CU4+X*euA)$!HV8(7+hQ(8$=r(9GDy(89Qd sp^b3|Lp$SBhAt*yhF*pUpryPF+-7<}pl_(JZ=lP-$Pfb*WMYT~0Peyta{vGU diff --git a/CASE/paintMenuJeu.java b/CASE/paintMenuJeu.java index c4d44ff..0739021 100644 --- a/CASE/paintMenuJeu.java +++ b/CASE/paintMenuJeu.java @@ -7,10 +7,10 @@ public class paintMenuJeu extends JComponent{ private int scoreMax, score; private Image un, deux, trois, quatre, cinq, six, sept, huit, neuf, zero, err, sav, lose, win, replay; private boolean survol; - public paintMenuJeu(int choix0, int score0){ + public paintMenuJeu(int choix0, int score0, int scoreMax0){ this.choix=choix0; this.score=score0; - this.scoreMax=score0; + this.scoreMax=scoreMax0; this.un=Toolkit.getDefaultToolkit().getImage("./IMAGE/unD.png"); this.deux=Toolkit.getDefaultToolkit().getImage("./IMAGE/deuxD.png"); this.trois=Toolkit.getDefaultToolkit().getImage("./IMAGE/troisD.png"); @@ -123,7 +123,7 @@ public class paintMenuJeu extends JComponent{ secondPinceau.drawImage(this.six, this.getWidth()/6, this.getHeight()/6, this.getWidth()/6*4, this.getHeight()/6*4 ,this); } if(nombre==7){ - secondPinceau.drawImage(this.sept, this.getWidth()/6, this.getHeight()/20*5, this.getWidth()/6*4, this.getHeight()/6*4 ,this); + secondPinceau.drawImage(this.sept, this.getWidth()/6, this.getHeight()/6, this.getWidth()/6*4, this.getHeight()/6*4 ,this); } if(nombre==8){ secondPinceau.drawImage(this.huit, this.getWidth()/6, this.getHeight()/6, this.getWidth()/6*4, this.getHeight()/6*4 ,this); diff --git a/CASE/plateau.class b/CASE/plateau.class index ecca147c74c325f9b9da19b10e34aba99918c1de..189b57744ced09ce45044a5b2352d3d2c559698c 100644 GIT binary patch delta 1009 zcmYk5du)_N6vcn1?RIv*j#Nr34H$Jr0zR-%8wC_o(3F5^Y>XyC{A0DNE;eo5Zo$Tc zMkLWhh`}$$m?j4GFC|*E_0=jM&r*uzC1QEh77$uqB8snq&h#%c$;sR^_ug~QeDf_Y zeZ4g3y3)QLC{xkuAZ+^B&=L^mqkt^d1w6_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plateau.java +++ b/CASE/plateau.java @@ -190,7 +190,7 @@ public class plateau{ this.fenetre=new JFrame("démineur"); GridLayout grille = new GridLayout(ligne+1,collonne); for(int i=0; iuT4nV@wadMW zBG>(hcGe;x4B7}n%fPyKM(x7ooOAEtdCz+~yPe&~eF?v+j#Za{ij+kqoWX`%!e)%t zzU45%v#ev?en1AXqf)f&MmM`1F$gi=)*QX8>=V&;q*bYccS;Lhl-_JAN5^O;YpI$CQ6pFI1fct0~i~b_V zYH0dREnZMGgLzbyG>&5emK1~WbbKh5#(YG;Wgy#Ur&up{+z1xL0d{PtBq%P%tUc%< zOXofGZ{B6L^)7P~$-ZcT|@v