From 2037f8fd7a2eb2da9d1e309933ac2f03d5640110 Mon Sep 17 00:00:00 2001 From: martins Date: Fri, 29 Apr 2022 14:20:40 +0200 Subject: [PATCH] ajout de la classe plateau effective --- CASE/IMAGE/replay.png | Bin 0 -> 21242 bytes CASE/main_ex.class | Bin 1672 -> 480 bytes CASE/main_ex.java | 48 +----------- CASE/observateurCase.class | Bin 3488 -> 3344 bytes CASE/observateurCase.java | 39 ++++------ CASE/observateurSAV.class | Bin 824 -> 1167 bytes CASE/observateurSAV.java | 18 ++++- CASE/paintMenuJeu.class | Bin 3407 -> 3585 bytes CASE/paintMenuJeu.java | 10 ++- CASE/plateau.class | Bin 1683 -> 4246 bytes CASE/plateau.java | 155 ++++++++++++++++++++++++++++++------- 11 files changed, 170 insertions(+), 100 deletions(-) create mode 100644 CASE/IMAGE/replay.png diff --git a/CASE/IMAGE/replay.png b/CASE/IMAGE/replay.png new file mode 100644 index 0000000000000000000000000000000000000000..ff643b1f5a5d34083c5552fa439b136cf4bb7b41 GIT binary patch literal 21242 zcmV*IKxe;+P)EX>4Tx062}6Q%y(|VHkeapEQgNi?HahgouVKxudy42Te-^&BdS4E;cjY>`yt< zFf*&`O(;5b=oEF9>K2{WLl=*oLI?^vS9A&?5JF{pzHf$Ii#BkEcb?~azxRE=_vag+ zF|};ke#2$Jb^>o^{91fr@pioFD_U?GZ5V{6o4z}ePEVrdv-=S-i60U&*6Xfcdk1g( z9(Fs%n+L__o!WltIVmjP1Y$kpNz?TL@;l^@Rs&b^@8oC9oG!@s$$LB|2-I~+y%F-O zl4nDnmfV}086~F=PGt{q;}AD0yp zmeroHocUSeS;_@0AdOkX(FcuRb`3+2J^i=OUF9=}9P;pK@4~}7HL9I{n@<1oowtkEKmEaL>!No$`>>P%vuHV!qtfSl>yv+^@qGR&-HlQljqmw(;@ zn!165Pv!Dnsa!sI0n~p6wsx!jF6$i{qkf~R>v#pUE&`?Xs?InMY_j%q$6ejiE7Pvi zw6O1d>g8u+3z%C6CW+69os`y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cJu2|xUJ;&6ID_2K^b zkx{EuT6F3)k+W-_s0x?i=z%n1Q&hdwAqPJ!NMQ^^2RyS*Wy7hG_vGMCnevwVN*V@P zrr&Iafdhd%x<#vMtqa!&?<3DyamT8cy=>X3iKPwU?y{qiY1yvXJ2RcQA(@I1V|%Ur zAL-J}H_9|27LAi6dZt{y;LvkH(?enZ#Ysnf$Gq$iJ~g5xu?H%R$_70iG#;s?fkJ1n2_+ZR&PKbZ zm5h=M1{(-%BV33nx8qIliBR|ls1xB}h8sNo7@uuJEd&jviO7U%s@u>C(NeV3L`ws@ z!Iej7H^V_w&6}#yK&!z+zDDsiAzu^rH6dRU_BC;(^ay>X%IPFA+X|+dY@)q^Xwp<0 z=vaBc+1D@bCrv`=Oj1x+lF++j@n2vBCU`KT8fxq@O2JITh|n#so7_;-Mr0d3g(iCQ zyT`PD-E=hVU$<{xYZeUEh?v|AH__j~KyuII=Z;YBCl6GTUm8j*Zt`ytlOmpM;E3cp z;B);L3EJz#Z7coT5Jfw>NSf#-?hTxzm*^OJF@ru_CG86OaT5b5QuAyafkUmWQ%gUk zrrxJceNH`lNReOQ1ir!`o>2T#B+5&H}J-{|Ks*mJ1t P8CISlMAI|u*E;eq(0Xni diff --git a/CASE/main_ex.java b/CASE/main_ex.java index 73807f2..f61dfdc 100644 --- a/CASE/main_ex.java +++ b/CASE/main_ex.java @@ -12,54 +12,12 @@ public class main_ex{ JFrame fenetre = new JFrame("Démineur"); int ligne=10; int collonne=20; - int bombe=1; + int bombe=12; fenetre.setLocation(0,0); //on choisi une taille arbitraire //nous utiliserons un gestionnaire GridLayout de dimensions choisi précédament - GridLayout grille = new GridLayout(ligne+1,collonne); - paintMenuJeu[] tabScore= new paintMenuJeu[3]; - for(int i=0; i{NtOBTf>?+xBDRXyCSrRCJFrv4t`MF>tBBpA?h(-@qCJEe*c-q;+1oFoL&O0Q zogrczl+_^-hsD23Y)1k(8bEgdJqk4`V>GQRs4j)NL?)HWq(u#w@sX4s&(nD3Om{~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KLQ=IH`CEpaVgOI(Z7k`YD-TuD6@J$9-p>9JTmK%S#jxdWJR zYAXS}bE4(Al2$pcYw;45o_QC0H=0QNL;UAE%uh><7dy^h1|7q^!tcVsB^<*qNa8o7 z)Ka9?N<6C$BBOMeyqGz41*cR26TT{(_6_2U?;xJDF6aW(6fj&sZvmSM*xXUT_5yYm zAZ+Jfg2VPd$aP`+FbUaNB%4iu)unpF6c%~9`${IG?OWlUp@YJ*%TR3HLlNCWu~%zL zkI%+&+R4jdXXCcl&BoG;IL>Mo7+DOr7+DgY@X}zotV;Mc_G3%2UYCt)%Pp*C zS*fL%hjgU~wae>`gUD(t5M7IhXj?o)*Q2aQ6@i%zEvg<#*{EqId~ico|1=9us(lU#M5{C0@ffcpcy4P5gzoa2szc z4ezM+xS+P;U9|`Asq>grlXzc!iVxJUm{Nb@L-jW<`5wb%Umrg5?Zw9y`RAdgtAHM| Wzq5dC1?(zdu)zOqg@>(APxN1Syz#F9 diff --git a/CASE/observateurCase.java b/CASE/observateurCase.java index df1daa4..c25d81e 100644 --- a/CASE/observateurCase.java +++ b/CASE/observateurCase.java @@ -9,18 +9,17 @@ public class observateurCase implements MouseListener{ private int ligne, collonne; private Case[][] tableau; private plateau plat; - private paintMenuJeu[] tabScore; - public observateurCase(int ligne0, int collonne0, Case[][] tableau0, paintMenuJeu[] tabScore0){ + public observateurCase(int ligne0, int collonne0, Case[][] tableau0, plateau plat0){ this.ligne=ligne0; this.collonne=collonne0; this.tableau=tableau0; - this.tabScore=tabScore0; + this.plat=plat0; } @Override public void mouseClicked(MouseEvent evenement){ //nous testons si le joueur a gagner/perdu //si perdu - if(plateau.etatDeVictoire(this.tableau)==-1){ + if(plat.etatDeVictoire()==-1){ plateau.removeListener(this.tableau); for(int i=0;iA4E}D^1IGWmUN0j$ljTi|00^ z%{FC^9M^2umg@>8vb~;NvfM6ZD0%xr!9c}!#k=shF8ohc-62gX5OTXqsAc!q+dTHd zK$IN2aU}K?OlK>HR?8|_C$b<~!j*+8+qd{xWdC$cT8*Qs)$EYA&u$f1~DwenV{AT-}IQ4}{;Mp@e>IV|SU$Fptr!HG>wJKMf>ENE}TOx3HUO84!c=>-&* zAd-rG;L?*=%QQ7olsw1rT-LF9)1$>ji@r`(ESJmC>aJc3ofNIN7WysE!7QC-Kj;P! zgUXYm16FyAk)$D#)XAQ~7~yUDt&u%Oax{MdCBJwEHNSL*SUz?J?K|lej1y+iN0@{L zgD^!oOyW$Fbpn$era59#$t#|p?1?oZ?Eod+$Pz1z(`->H_l zRP7w*WwY&qr;v!8XKoImQm=)~P{=H0neB$~?06>1C3~D4fO*2X|GVYL?Ow!j{~xyU B+y(#u literal 824 zcmah`O>fgc5Pj=}xOSbSB&8p;w3If*2?!tHR#XX9>7hyi5tIWrJDH+w9lKhu)BY_a zS|kqq0Dcr=){$EJAt6h%o;UN}%)b5o=jSf~Z_svOW7$Ckk4;!{v5F@y*065lsf`UA z&jjovN=PdbnC~5jlkhyq&Sdg6IM`R=n05pzQLc5G2-JF~p-l84CHVp6rt(%MQtt}1 z{F|lwgxUjv@?JXPLG_+Y=zTtpNPP~Ym=SNB<{9n9a(F@`fi=HS2*NWR(1a2l9GZI9 z{O%Z`X@57-q)h*8LGPYRZL(?cqoOP`X|*VRqL{)Wcl&9shO{ru;AR?Sq$Z)JT=m}# zUKs~GRI%w{7M=$Ou8l1ZEo|D@_V64&8*!5)FlT5%9I|a6qGK9rfz<-Kb%CDDG`p0{V(kSHuzO-2+Y9Zk9Xx~x6I;vRv53M z#<9-XYsO1_);m8SIxj9@bzWYe^o=22pJM}Mjx!vcLa4?v0uLFV3T*LdnU2nPlrB-e zX1WDl<3;M+)4XD|7&i=u8CLlc4{lQ$Jg&)<`THq6bbVXU_31*78RyQ{X QRyZ#Fzipk{77LA~zX`OPIRF3v diff --git a/CASE/observateurSAV.java b/CASE/observateurSAV.java index 69a9c28..9089f84 100644 --- a/CASE/observateurSAV.java +++ b/CASE/observateurSAV.java @@ -3,15 +3,25 @@ import java.awt.event.*; import javax.swing.*; public class observateurSAV implements MouseListener{ - private JFrame fenetre; + private plateau plat; private paintMenuJeu button; - public observateurSAV(paintMenuJeu button0, JFrame fenetre0){ + private boolean fonction; + public observateurSAV(paintMenuJeu button0, plateau plat0){ this.button=button0; - this.fenetre=fenetre0; + this.plat=plat0; + this.fonction=false; + } + public void setFonction(boolean fonction0){ + this.fonction=fonction0; } @Override public void mouseClicked(MouseEvent evenement){ - this.fenetre.dispose(); + if(this.fonction==false){ + plat.getFenetre().dispose(); + } + if(this.fonction==true){ + plateau nouvellePartie= new plateau(plat.getFenetre(), plat.getLigne(), plat.getCollonne(), plat.getBombe()); + } } @Override // un bouton cliqué public void mouseEntered(MouseEvent evenement){ diff --git a/CASE/paintMenuJeu.class b/CASE/paintMenuJeu.class index 582d6452cfcc7e6d648eaac88fd0aa10524a56a1..1bd21b81107fcedb67f63d2ada508682b101ecbb 100644 GIT binary patch literal 3585 zcmb7GTW}lI8UBtWTWfip$hQO&o8ZKNtk_l@5-xEt1P6jcoKPGRFc4TvYiSc%E3YIw z3E|Q}1BAArEq7Wlw|1t`ht3d(DKnjE`%v1qKDDnr^qCo+7=~&2{FlEtoN23(gqG3g!$r zf+q}|6wDi#6)YHV1&ape1U&;K!Losh;Jkqa!BYlK3!X9XnBZ9hj|)B_!;>)%PsQ+K zoD=r64A02tPlTP9;aT~7E{f-47{mp!ydajJM)9*Key-4v&biJh1vO4yO1qw|5ULau z;s;My^H$1QD5u6}t*kww5XsmThBlNv*C{D9&Q+|k#7ELjVNM}jl8GWEyI3aVDvm(G zuFMe5*q+M>+w&yOnx`r6mY5q}aJX2bXBYF>HVNY2{CU3k&N_1I}*7j{PR3lqP@uejf#)cC~S{dc4) zg?&TCLe|7fc-h1axRKLTeR4N}_aw#&9{qrxl+-W zZy#F~PQm%+ePUidCSQTR=MLOx;!f;0@d{q#6`Ob!ubFrqZ^b7P`IFLLt;(;cB&}DP(xgwTb$GBum;>4vV6! z=^EcHJC>S{Ihk^fO-p*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&ncacw_w@D$sAAu%bQ1CtN*H+$scPBqYsycdW*mtk3&Rs56ve#ATPD&{E z`s&=J(~^BYkP!<~hMQs!%?JQ=sb2y=Wg_GLXcvSlhrvi;QtvFkcx-C8YN%f{u O8@ox*gWNKJL;nI1hs`no diff --git a/CASE/paintMenuJeu.java b/CASE/paintMenuJeu.java index c76d91f..ab90593 100644 --- a/CASE/paintMenuJeu.java +++ b/CASE/paintMenuJeu.java @@ -5,7 +5,7 @@ import javax.swing.JComponent; public class paintMenuJeu extends JComponent{ private int choix; private int score; - private Image un, deux, trois, quatre, cinq, six, sept, huit, neuf, zero, err, sav, lose, win; + 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){ this.choix=choix0; @@ -24,6 +24,7 @@ public class paintMenuJeu extends JComponent{ this.sav=Toolkit.getDefaultToolkit().getImage("./IMAGE/sav.png"); this.lose=Toolkit.getDefaultToolkit().getImage("./IMAGE/lose.png"); this.win=Toolkit.getDefaultToolkit().getImage("./IMAGE/win.png"); + this.replay=Toolkit.getDefaultToolkit().getImage("./IMAGE/replay.png"); this.survol=false; } public void setChoix(int choix0){ @@ -89,6 +90,13 @@ public class paintMenuJeu extends JComponent{ if(this.choix==6){ secondPinceau.drawImage(this.win, this.getWidth()/6, this.getHeight()/6, this.getWidth()/6*4, this.getHeight()/6*4 ,this); } + if(this.choix==7){ + if(this.survol==true){ + secondPinceau.setColor(new Color(0,255,0)); + secondPinceau.fillRect(0, 0, this.getWidth(), this.getHeight()); + } + secondPinceau.drawImage(this.replay, this.getWidth()/6, this.getHeight()/6, this.getWidth()/6*4, this.getHeight()/6*4 ,this); + } } private void paintNombre(Graphics secondPinceau, int nombre){ if(this.score>=0){ diff --git a/CASE/plateau.class b/CASE/plateau.class index 6c4ede1ee0ba8960ad3a311dd3ad6f4f9546c900..13c84d3c43d5ec30769d85f9ec68053896263664 100644 GIT binary patch literal 4246 zcmai1YjBj+8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hIyt=d$;JYCGsZcO3=kNFFEb%EE|--aGDg$FnTNko~1JOXk_&Zyv5 gf}{}U6MTobbRV1%I*`8;1^?jldy(4BT=Ssw|Nlv)4FCWD literal 1683 zcmah|Urbw782_E#+g{q;6$TWcEil-|+D=yNlsRB*x`|fVmJHJn_ zRm*d7!dB&&OGV3-R`vKbYuPdpMYBMQ+Gne-UCds#ocYqCiN`T$;JAq_hDI&Sttsan~oZEOkYg+Xg%;ia18;ULatzcF}fanZQypRjn-9 zu3d6+0ta}0=2-^|kqkJ`}1V|GTerfwN+AzSJiO)`w=w7M{Af3Z>25hWLsb z)!+N_Cax3TAn@vKXd}8d9E=6yYZ&g*6PwV7LtT1Ot;S$1l#3a; zO$1lavU3QnBUB4+*Meew`>whx;N3OATfpMNEUJ~7IAuTD$#w_E(1kP9KZhhW;9uW@ zX&@%HkQL%S0)MfgFg+jhs}!F@gHF#swXsCz&KiE#PA4;o9C!D$@x&@#$RzanTvFAh zf5v(=kz7TGucTp*T1DyeYdglPdyGu2Oe)#ce@jN?qmwD)-efGGotHf#!Z+>pSH8LK zO&GNRkvv=zlpVWxzK34+-$$0&MPgf^t^@r-`I$c$5Oc6zz-q6OoGf72QflD_*Z(6~D z`j+z)V!sUo8QigO9}H~NE#VckHbOj_g&@=G+h2N+t#A&4+J?SCoctLa;gbMf;b|HX z%&>@>(rChCKEc4sh$JVG}Sxu^~6F@2Du^#x*{axkV7fPFQcwg2kX{-a0t_q%la&*wVn uzCpU*MFQ{RC_camu8PPrxXu7-9by~In diff --git a/CASE/plateau.java b/CASE/plateau.java index bd9427d..cbea287 100644 --- a/CASE/plateau.java +++ b/CASE/plateau.java @@ -5,21 +5,101 @@ import java.util.*; import java.awt.event.*; +import java.awt.*; +import javax.swing.*; public class plateau{ + private paintMenuJeu logo; + private JFrame fenetre; + private observateurSAV observateur; + private int ligne, collonne, bombe; + private paintMenuJeu[] tabScore= new paintMenuJeu[3]; + private Case[][] tableau; + public plateau(JFrame fenetre0, int ligne0, int collonne0, int bombe0){ + this.fenetre=fenetre0; + this.ligne=ligne0; + this.collonne=collonne0; + this.bombe=bombe0; + this.tableau=new Case[ligne][collonne]; + this.fenetre.dispose(); + this.fenetre=new JFrame("démineur"); + GridLayout grille = new GridLayout(ligne+1,collonne); + for(int i=0; i0){ - if(tableau0[i-1][t].getBombe()==true){ + if(this.tableau[i-1][t].getBombe()==true){ //si elle le sont alors nous augmentons le nombre de voisin voisin++; } if(t>0){ - if(tableau0[i-1][t-1].getBombe()==true){ + if(this.tableau[i-1][t-1].getBombe()==true){ voisin++; } } - if(t0){ - if(tableau0[i+1][t-1].getBombe()==true){ + if(this.tableau[i+1][t-1].getBombe()==true){ voisin++; } } - if(t0){ - if(tableau0[i][t-1].getBombe()==true){ + if(this.tableau[i][t-1].getBombe()==true){ voisin++; } } - if(t