-
Notifications
You must be signed in to change notification settings - Fork 0
/
TODOLIST.txt
54 lines (49 loc) · 3.04 KB
/
TODOLIST.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
LISTE DE CHOSES A FAIRE (NON OFFICIELLES)
/**
* Le plateau est composé de deux niveaux. Un niveau 0 qui sert à connaitre ce qu'il y a sur le le plateau et un niveau 1 qui sert à savoir les actions subit par le plateau.
* Au niveau 0 : 0 correspond à une case vide, -1 à une récif, 1,2,3,...,n au numéro du bateau.
* C'est le plateau qui appelle la méthode du bateau tireur (On devrait faire de la hiérarchie, avec le classe bateau, puis la classe bateau principal, puis bateau tireur)
* Le plateau tire aux coordonnées x,y sur le plateau du joueur Z. La méthode sera donc Tire(Plateau Z, int x, int y)
* Si il touche une case au niveau 0 qui a pour valeur : 0, le tire tombe dans l'eau. -1 le tire ne fait rien (probabilité de rebondir?), 1,2,...n le tire touche un bateau.
* Si le tire touche un bateau, dans ce cas, le bateau en question en est informé. Il met à jour son statut, son état, etc...
*
* Chaque joueur tire tour à tour.
* Le niveau 1 du plateau permet de savoir quelles cases ont déjà été touchées.
*
* Evolutions possibles :
* Ajouter plusieurs points de vie à une même case.
* Permet de gérer la forme du plateau en mettant une valeur -2 qui indique que le plateau n'existe pas à cette endroit.
* Permet de ne pas tirer deux fois au même endroit si la couche 1 du plateau a pour valeur 1. (on pourrait également mettre le numéro du joueur à la palce, de manière à savoir qui a déjà tiré à cet endroit)
* L'IA a gérer est indépendante de ces caractères. PAs plus compliqué à gérer.
* La représentation en fenetre peut se faire facilement grace justement au nombre de la couche 0 ! On pourrait rajouter une troisième couche pour le brouillard de guerre, et ainsi savoir quelles cases cacher au joueur.
*/
/** AVANCEMENT CAHIER DES CHARGES
* Au début chaque participant place ses bateaux : DONE
*
* BRANCHE IA ------------------------------ DONE --------------------------------------
* Soit HvsH soit IAvsH : DONE
* Les Deux : DONE
* Plusieurs niveaux d'IA : DONE
*
* NOMBRE DE JOUEUR ------------------------------ DONE --------------------------------------
* 2 Joueurs : DONE
* 3 joueurs circulaires : DONE
* Plus de 3 joueurs non circulaires : DONE
*
* FORME DE PLATEAU ------------------------------ DONE --------------------------------------
* Rectangulaire fixe, nb de bateaux fixe : DONE
* Rectangulaire taille variable par l'utilisateur, nb de bateaux avec les tailles : DONE
* REctangulaire avec nb de bateaux automatiquement : DONE
* Autres formes de plateaux : DONE
*
* AFFICHAGE ------------------------------ A COMPLETER --------------------------------------
* Simple Terminal : DONE (inclus)
* affichage graphique (depuis classe donnée) : A COMPLETER / non fonctionnel, cause : non attente du joueur
* affichage complet Terminal : DONE
*
* SAISIE ------------------------------ A COMPLETER --------------------------------------
* numéo et ligne séparéemment : DONE
* Clic sur les cases : A COMPLETER / identique.
* chaine avec lettres suivis de chiffres : DONE (La méthode existe, elle s'apelle "coordonnes")
*/
BEUG :