Code Monkey home page Code Monkey logo

bataillenavale's Introduction

BatailleNavale

  enum (Aucun, Torpilleur, Sous-Marin, Destroyer, Porte-Avion) t_bateau
  
  enum (Aucun, Obstacle) t_obstacle
  
  enum (Non, Oui) t_toucher
  
  structure case{t_bateau, t_obstacle, t_toucher)
  
  case grille1
  case grille2
  
  struture {grille1, grille2} t_grille
  t_grille grille
  
  
  struture {eBatNb, eTirNb, eTouchNb} t_donnee
  
  t_donnee donnee1
  t_donnee donnee2
  
  struture {donnee1, donnee2} t_stats
  t_stats info
  
  int bQuitter
  
  
   1. Rep jusqu'à quitter(bQuitter)
        bQuitter = 0;
        MenuAfficher
        PartieLancer
        
          PartieInitialiser($$eJoueur, Grille, info)
              eJoueur = 1 ou 2
              InfoInitialiser($$info)
              GrilleGenerer(eJoueur $$ Grille)
                ObstaclePlacer($$Grille)
                GrilleAfficher(Grille)
              BateauPlacer(eJoueur$ Grille$)
                JoueurPlacer(eJoueur $ Grille$)
                GrilleAfficher(eJoueur, Grille)
                JoueurPlacer(eJoueur $ Grille $)
                GrilleAfficher(eJoueur, Grille)
        
        
          Rep jusqu'à bPartieFini(Grille, bQuitter)
              JoueurJouer(eJoueur $ Grille, info$)
                  PlateauAfficher(eJoueur,Grille,info)
                    GrilleAfficher(eJoueur,Grille)
                    GrilleMasque(eJoueur, Grille)
                    HUDAfficher(eJoueur,info) 
                  TorpilleurDeplacer(eJoueur $Grille $)
                  PlateauAfficher(eJoueur, Grille, infos)
                  TorpilleurAttaquer(eJoueur $ Grille, info $)
                  PlateauAfficher(eJoueur, Grille, info)
              ChangerJoueur($eJoueur, bQuitter$)
          fin rep
        
          ScoreAfficher(info)
    fin rep

bataillenavale's People

Contributors

mehdi66410 avatar pnalex avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.