From 4542c594babf47fafc15fadadbfa345f6febc574 Mon Sep 17 00:00:00 2001 From: martins Date: Thu, 28 Apr 2022 20:43:37 +0200 Subject: [PATCH] condition de victoire ajouter --- CASE/Case.class | Bin 2455 -> 2538 bytes CASE/Case.java | 7 ++++ CASE/main_ex.class | Bin 1183 -> 1166 bytes CASE/main_ex.java | 5 +-- CASE/observateurCase.class | Bin 8356 -> 7449 bytes CASE/observateurCase.java | 84 +++++++++++-------------------------- CASE/plateau.class | Bin 1100 -> 1680 bytes CASE/plateau.java | 75 ++++++++++++++++++++++----------- 8 files changed, 85 insertions(+), 86 deletions(-) diff --git a/CASE/Case.class b/CASE/Case.class index e663edb90f0317a91983344a55ff5a65ff25fcb2..d615a6b20603fc3ce02f3c8d06831a9d251ec54b 100644 GIT binary patch delta 523 zcmWlVOHWf#6otQi`?%$LY>a43bVh(g6Wat@kcy953$(O61PT-du3Bpm@2#ai1|&Gp zk)x&qr_Nl-{=UZ#-oqck$-}WB%?tT6L=?jox$Kf2~ zJ)Gr=!BvB62GOnmA+Jtiha#^ES5}PP1Ub zqQep;kdG*MFnOtCi-$)17*)S@XT2_O8rIx&2KN18a)g+!4;i;<;jaG8?b^ zHLs~prQyfwURANqMti_Y70QZDT*Y1DihJBwRCu7MGNO2BP-9DoZn@9gxcj^r&-mMZ zLovuB#Ws&^JcUnP@q|X_y%n?MSm%52r=*fth+dPra6l;dPT&2&zRnisHKPPHhlntY zLz0U+1rSG%B-$UsgZ7wqNk-Z~!u|F*K}NaM>9K8VFHMLHiY%v?ppPm2UQW03x-w0P z0=pD>#S90`@tJvkv&bKo#G)i8SeAZPB+sgpDT~XRywIC^$-1=IkdJK2FTDrzpOb|C V(PuN(r8U~+O&1S|kkT!S%SZ7nUo-#! delta 453 zcmWlWOG_J37>1v3(4IIPq*jZlJ5iwvGqf0E<2A+@O^x@)B*wN=@3%}Er0qh`g{}&P zFbjW3ghE^V0sReKxGPAP-ISE#95_7h`+jHhUG7@1TF-v`|9S%qP_gM^xQR|i3`Pyc z490CHh=-UonlP2A5J{ucAyP(XY-UN@fqP*vXJW>Fh zTpZ0?HZ@ypYj%ieb`AE}7n%>;_pal9IB^o*kyp|5aiBTmNO7zw;c3det9`S=me{qs zhFkH6l=eGRi+Y9xyNUQuRga3$z#!3DQ7P*zMk6C=#%N=lZsI&)k|+t1Opy(E$}|_G zxDMw0PMY6j_`|$dEXYF^rH3U+vn&Nx#AQ`Jl9hATq)JY{ke6Q+=?_lxh{k_(D~9S+ Rqjf&jgN`M{^We)Ob`K+qR5btq diff --git a/CASE/Case.java b/CASE/Case.java index 60cf67b..8728ada 100644 --- a/CASE/Case.java +++ b/CASE/Case.java @@ -46,6 +46,13 @@ public class Case extends JComponent{ return false; } } + public boolean getSuspition2(){ + if(this.suspition==1){ + return true; + }else{ + return false; + } + } public boolean getVisibiliter(){ return this.visibilite; } diff --git a/CASE/main_ex.class b/CASE/main_ex.class index ee5ee768cdaf9534e08ba6fb0690a83ccf2d2ba6..3d3eba0809e3a0fca6e4372c20d6e72fc06a28ca 100644 GIT binary patch delta 463 zcmYL_xlUU_6o$Vsn6WPdK|o^6mVk*dki@KE4Lg`i3py{@v$Kr#?DcdaYT ze|tTf&ZU1!b?n8Yjo0!m_V`fpk_KT|REtC<(cgWEI+u&0QCLw*1_{zsOS1^6RlSl9 zhg>nn?>&79MJ*H8TolHrxrL zc}2WXthM)6^{j+SMEl23+#}Qem7DaKGt5&qJff^fzYN|6rC={ARo;Xzs=>SFZe;MR zzQCekiDkoMRyxZnpZBO3p5PmvvZ~Op8$nbLcI|xC@QgLXI+>&Qs-pIL3tL;&rJz-x zDb^Idt$MW3Xe>5gJ+I4}1>g5AZT{1>X4ndM80M1vlRYt%cxD8zNH-|Ak~=Yag8C|j zVnER8k||O$FeJ5%s+R;9=bR62+N}Xam9Yblq|J-}`-n)~+2%)u; z$$$6!=iKl7=l}lyKj)sOPCtGaz+AjPf=h61C8ppy5sO4LM^KK%VJwMYDOyClN5nD_ z%SF6bL~DdYS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C@JzQKfct%u)yTy-_Qi10sz{FT3 zby6+!WtNP}Y>7#&e3O>Pq`|0=IYyn#n+{F)WRoA6Y&45*Ek%2^&z5-Puf5v3>($m>uS$2l+O2-?DXHz(efzQf zYCY#y>p8!cp7X0){pv*BS_}=Ewwybw&U6;9+r920?lg6)a<`xH+>?uslLf49DV*VO!iWoE~{`E?9|9 z>z0 && this.tableau[ligneDelta-1][collonneDelta].getVisibiliter()==false && this.tableau[ligneDelta-1][collonneDelta].getVoisin()==0 && this.tableau[ligneDelta-1][collonneDelta].getBombe()==false){ this.haut(ligneDelta-1, collonneDelta); } + if(collonneDelta>0 && ligneDelta>0 && this.tableau[ligneDelta-1][collonneDelta-1].getVisibiliter()==false && this.tableau[ligneDelta-1][collonneDelta-1].getVoisin()==0 && this.tableau[ligneDelta-1][collonneDelta-1].getBombe()==false){ + this.diaghautgauche(ligneDelta-1, collonneDelta-1); + } if(ligneDelta0 && this.tableau[ligneDelta][collonneDelta-1].getVisibiliter()==false && this.tableau[ligneDelta][collonneDelta-1].getVoisin()==0 && this.tableau[ligneDelta][collonneDelta-1].getBombe()==false){ this.gauche(ligneDelta, collonneDelta-1); } - if(collonneDelta>0 && ligneDelta>0 && this.tableau[ligneDelta-1][collonneDelta-1].getVisibiliter()==false && this.tableau[ligneDelta-1][collonneDelta-1].getVoisin()==0 && this.tableau[ligneDelta-1][collonneDelta-1].getBombe()==false){ - this.diaghautgauche(ligneDelta-1, collonneDelta-1); - } if(collonneDelta>0 && ligneDelta0 && this.tableau[ligneDelta-1][collonneDelta].getVisibiliter()==false && this.tableau[ligneDelta-1][collonneDelta].getVoisin()==0 && this.tableau[ligneDelta-1][collonneDelta].getBombe()==false){ this.haut(ligneDelta-1, collonneDelta); } - if(collonneDelta0 && this.tableau[ligneDelta][collonneDelta-1].getVisibiliter()==false && this.tableau[ligneDelta][collonneDelta-1].getVoisin()==0 && this.tableau[ligneDelta][collonneDelta-1].getBombe()==false){ this.gauche(ligneDelta, collonneDelta-1); } + if(collonneDelta0 && ligneDelta>0 && this.tableau[ligneDelta-1][collonneDelta-1].getVisibiliter()==false && this.tableau[ligneDelta-1][collonneDelta-1].getVoisin()==0 && this.tableau[ligneDelta-1][collonneDelta-1].getBombe()==false){ this.diaghautgauche(ligneDelta-1, collonneDelta-1); } - if(collonneDelta>0 && ligneDelta0 && this.tableau[ligneDelta-1][collonneDelta+1].getVisibiliter()==false && this.tableau[ligneDelta-1][collonneDelta+1].getVoisin()==0 && this.tableau[ligneDelta-1][collonneDelta+1].getBombe()==false){ this.diaghautdroite(ligneDelta-1, collonneDelta+1); } - if(collonneDelta0 && this.tableau[ligneDelta][collonneDelta-1].getVisibiliter()==false && this.tableau[ligneDelta][collonneDelta-1].getVoisin()==0 && this.tableau[ligneDelta][collonneDelta-1].getBombe()==false){ this.gauche(ligneDelta, collonneDelta-1); } - if(collonneDelta>0 && ligneDelta>0 && this.tableau[ligneDelta-1][collonneDelta-1].getVisibiliter()==false && this.tableau[ligneDelta-1][collonneDelta-1].getVoisin()==0 && this.tableau[ligneDelta-1][collonneDelta-1].getBombe()==false){ - this.diaghautgauche(ligneDelta-1, collonneDelta-1); + if(collonneDelta0 && ligneDelta0 && this.tableau[ligneDelta-1][collonneDelta+1].getVisibiliter()==false && this.tableau[ligneDelta-1][collonneDelta+1].getVoisin()==0 && this.tableau[ligneDelta-1][collonneDelta+1].getBombe()==false){ - this.diaghautdroite(ligneDelta-1, collonneDelta+1); - } if(collonneDelta0 && ligneDelta0 && this.tableau[ligneDelta-1][collonneDelta+1].getVisibiliter()==false && this.tableau[ligneDelta-1][collonneDelta+1].getVoisin()==0 && this.tableau[ligneDelta-1][collonneDelta+1].getBombe()==false){ - this.diaghautdroite(ligneDelta-1, collonneDelta+1); - } - if(collonneDelta0 && ligneDelta>0 && this.tableau[ligneDelta-1][collonneDelta-1].getVisibiliter()==false && this.tableau[ligneDelta-1][collonneDelta-1].getVoisin()==0 && this.tableau[ligneDelta-1][collonneDelta-1].getBombe()==false){ - this.diaghautgauche(ligneDelta-1, collonneDelta-1); - } - if(collonneDelta>0 && ligneDelta0 && this.tableau[ligneDelta-1][collonneDelta+1].getVisibiliter()==false && this.tableau[ligneDelta-1][collonneDelta+1].getVoisin()==0 && this.tableau[ligneDelta-1][collonneDelta+1].getBombe()==false){ this.diaghautdroite(ligneDelta-1, collonneDelta+1); } @@ -183,12 +173,6 @@ public class observateurCase implements MouseListener{ if(ligneDelta>0 && this.tableau[ligneDelta-1][collonneDelta].getVisibiliter()==false && this.tableau[ligneDelta-1][collonneDelta].getVoisin()==0 && this.tableau[ligneDelta-1][collonneDelta].getBombe()==false){ this.haut(ligneDelta-1, collonneDelta); } - if(ligneDelta0 && this.tableau[ligneDelta][collonneDelta-1].getVisibiliter()==false && this.tableau[ligneDelta][collonneDelta-1].getVoisin()==0 && this.tableau[ligneDelta][collonneDelta-1].getBombe()==false){ this.gauche(ligneDelta, collonneDelta-1); } @@ -206,15 +190,9 @@ public class observateurCase implements MouseListener{ this.tableau[ligneDelta][collonneDelta].setVisibiliter(true); this.tableau[ligneDelta][collonneDelta].repaint(); this.affichageVoisinEvident(ligneDelta, collonneDelta); - if(ligneDelta>0 && this.tableau[ligneDelta-1][collonneDelta].getVisibiliter()==false && this.tableau[ligneDelta-1][collonneDelta].getVoisin()==0 && this.tableau[ligneDelta-1][collonneDelta].getBombe()==false){ - this.haut(ligneDelta-1, collonneDelta); - } if(ligneDelta0 && this.tableau[ligneDelta][collonneDelta-1].getVisibiliter()==false && this.tableau[ligneDelta][collonneDelta-1].getVoisin()==0 && this.tableau[ligneDelta][collonneDelta-1].getBombe()==false){ this.gauche(ligneDelta, collonneDelta-1); } @@ -235,15 +213,9 @@ public class observateurCase implements MouseListener{ if(ligneDelta>0 && this.tableau[ligneDelta-1][collonneDelta].getVisibiliter()==false && this.tableau[ligneDelta-1][collonneDelta].getVoisin()==0 && this.tableau[ligneDelta-1][collonneDelta].getBombe()==false){ this.haut(ligneDelta-1, collonneDelta); } - if(ligneDelta0 && this.tableau[ligneDelta][collonneDelta-1].getVisibiliter()==false && this.tableau[ligneDelta][collonneDelta-1].getVoisin()==0 && this.tableau[ligneDelta][collonneDelta-1].getBombe()==false){ - this.gauche(ligneDelta, collonneDelta-1); - } if(collonneDelta>0 && ligneDelta>0 && this.tableau[ligneDelta-1][collonneDelta-1].getVisibiliter()==false && this.tableau[ligneDelta-1][collonneDelta-1].getVoisin()==0 && this.tableau[ligneDelta-1][collonneDelta-1].getBombe()==false){ this.diaghautgauche(ligneDelta-1, collonneDelta-1); } @@ -258,18 +230,12 @@ public class observateurCase implements MouseListener{ this.tableau[ligneDelta][collonneDelta].setVisibiliter(true); this.tableau[ligneDelta][collonneDelta].repaint(); this.affichageVoisinEvident(ligneDelta, collonneDelta); - if(ligneDelta>0 && this.tableau[ligneDelta-1][collonneDelta].getVisibiliter()==false && this.tableau[ligneDelta-1][collonneDelta].getVoisin()==0 && this.tableau[ligneDelta-1][collonneDelta].getBombe()==false){ - this.haut(ligneDelta-1, collonneDelta); - } if(ligneDelta0 && this.tableau[ligneDelta][collonneDelta-1].getVisibiliter()==false && this.tableau[ligneDelta][collonneDelta-1].getVoisin()==0 && this.tableau[ligneDelta][collonneDelta-1].getBombe()==false){ - this.gauche(ligneDelta, collonneDelta-1); - } if(collonneDelta>0 && ligneDeltab(xDthY?!0&Z_niCg{QdQ9 z08e5fh(j1OFcgFbgGvksaTLdtcvOiIC5|gGs>BH;k_J)+(gMCoyKFmC0$MUv5YVS9 zMJdoTYnSEK`pTlLzG^L&sOhRn=ebhpe1$rJ?qoinUs#x(wrcW>iaRvtSW9nRu~uDo zHX~p*BMKF}W|x^D+3DXc9m}~O3-*#zv8yWofjQ6Hs;n04m#pQotQvSsAUId4SC{0B zt$Hz6OO_+8`uI(2%`(xA9)VtU&eR>dlzGJ}7b`0!9>9i0dyz^8Lla?aDV;dV4MG(8`ULabFcFA^Rm8eoNSFf$w zj$J8d1rGE6K<%2q(PZj>`|GR9mCBlYAXG*E_gtw07scdq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R{o9_|CfUsKX)Y1`|98btJfk$?{ptBtlZB_L{;} z5n4mwB+k2U-O`;Xj=|1Y0){ - if(tableau[i-1][t].getBombe()==true){ + if(tableau0[i-1][t].getBombe()==true){ voisin++; } if(t>0){ - if(tableau[i-1][t-1].getBombe()==true){ + if(tableau0[i-1][t-1].getBombe()==true){ voisin++; } } - if(t0){ - if(tableau[i+1][t-1].getBombe()==true){ + if(tableau0[i+1][t-1].getBombe()==true){ voisin++; } } - if(t0){ - if(tableau[i][t-1].getBombe()==true){ + if(tableau0[i][t-1].getBombe()==true){ voisin++; } } - if(t0){ + return 0; + } + return 1; + } + public static void perduGagner(Case[][] tableau0){ + for(int i=0; i