From d562e47be5b4c4a91155157e178d86a12e22cbc7 Mon Sep 17 00:00:00 2001 From: M'Henni Adem Date: Mon, 16 Dec 2024 12:48:43 +0100 Subject: [PATCH] debut code SAE --- BatailleNavale.c | 22 ++++++++++++++++++++++ BatailleNavale.o | Bin 0 -> 20344 bytes 2 files changed, 22 insertions(+) create mode 100644 BatailleNavale.c create mode 100755 BatailleNavale.o diff --git a/BatailleNavale.c b/BatailleNavale.c new file mode 100644 index 0000000..bca1298 --- /dev/null +++ b/BatailleNavale.c @@ -0,0 +1,22 @@ +#include"biblioNavale.h" +#include +#include + + +/*commande pour compiler :"gcc BatailleNavale.c -o BatailleNavale.o biblioNavale.o + "*/ +int main(int argc, char const *argv[]){ + /*Tout d'abord on va créer les plateaux des 2 joueurs et y placer les bateaux + on fait une boucle qui permet de recommencer l'initialisation si la + verification renvoi une erreur*/ + char p1 [10][10]; + char p2 [10][10]; + while(verif(p1)==0||verif(p2)==0){ + printf("Joueur 1 :\n"); + initPlateau(p1); + printf("Joueur 2 :\n"); + initPlateau(p2); + afficheduo(p1,p2);} + +return 0; +} \ No newline at end of file diff --git a/BatailleNavale.o b/BatailleNavale.o new file mode 100755 index 0000000000000000000000000000000000000000..479edd80d18eed0860a4ae41f2923e2aaa4ef0d8 GIT binary patch literal 20344 zcmeHPe{@vUoxd{)<%i+~1w}!5BG`l~4N+qDW>tYHF_L=JTaWtCN|v9)%>pv5IEBc{CleDAw=GBZpt z?Dp*OkGbc(`QH1z-(UB8f4uL#^WM8(U9rS$GBKHQ*e#4oJMs+70#OlPDlz~ISScHc z-|N`5>}x3Ja-31WzyPQ<(lK)?947ENfW$YJG8y1_1I;9q77`@Bfzr;QMva6_w1fDD zP?adB!?Mu^pM9DpQYG9Oh%=JRS6DNlv#gL8!Iusf3wjAj2c^}2@H_uE`YHt9;TeXUbl7B| znS@f`ZQv8G78Dl-vYT%g`UdKULg9Z2gJe~2Crkz99x6K?x|+PMB`-^ zTe@P|!bP@X>+D3XB$1oZpDnh|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