From c203a12d85390dd0347d934b5686eae4f7fccd07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Tue, 25 Jan 2011 17:10:09 +0100 Subject: [PATCH 02/11] =?UTF-8?q?Dossier=20"organisation"=20:=20pour=20les?= =?UTF-8?q?=20mails,=20notes,=20gantt,=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gantt.planner => organisation/gantt.planner | 0 organisation/notes | 5 +++++ pticlic.gan => organisation/pticlic.gan | 0 3 files changed, 5 insertions(+) rename gantt.planner => organisation/gantt.planner (100%) create mode 100644 organisation/notes rename pticlic.gan => organisation/pticlic.gan (100%) diff --git a/gantt.planner b/organisation/gantt.planner similarity index 100% rename from gantt.planner rename to organisation/gantt.planner diff --git a/organisation/notes b/organisation/notes new file mode 100644 index 0000000..7d8807a --- /dev/null +++ b/organisation/notes @@ -0,0 +1,5 @@ += Mail = + +demande adresse genre support@pticlic.org à M. Lafourcade +Indiquer à M. Lafourcade qu'il peut accéder au code source du projet à l'adresse https://github.com/jsmaniac/2011-m1s2-ter , et s'il veut un accès en écriture, il suffit qu'il s'inscrive sur github et envoie son login à l'un de nous. +demander à M. Lafourcade l'installation d'Android + Plugin Eclipse sur postes du bât.6 diff --git a/pticlic.gan b/organisation/pticlic.gan similarity index 100% rename from pticlic.gan rename to organisation/pticlic.gan From 64489a71ade670a0f2660c2cf16e4e4c87efd63e Mon Sep 17 00:00:00 2001 From: rm-rf-windows Date: Wed, 26 Jan 2011 00:11:43 -0800 Subject: [PATCH 03/11] =?UTF-8?q?Ajouts=20JC=20sc=C3=A9ances=20de=20W?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- organisation/notes | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/organisation/notes b/organisation/notes index 7d8807a..c164e4f 100644 --- a/organisation/notes +++ b/organisation/notes @@ -1,5 +1,11 @@ = Mail = -demande adresse genre support@pticlic.org à M. Lafourcade -Indiquer à M. Lafourcade qu'il peut accéder au code source du projet à l'adresse https://github.com/jsmaniac/2011-m1s2-ter , et s'il veut un accès en écriture, il suffit qu'il s'inscrive sur github et envoie son login à l'un de nous. -demander à M. Lafourcade l'installation d'Android + Plugin Eclipse sur postes du bât.6 +- demande adresse genre support@pticlic.org à M. Lafourcade +- Indiquer à M. Lafourcade qu'il peut accéder au code source du projet à l'adresse https://github.com/jsmaniac/2011-m1s2-ter , et s'il veut un accès en écriture, il suffit qu'il s'inscrive sur github et envoie son login à l'un de nous. +- demander à M. Lafourcade l'installation d'Android + Plugin Eclipse sur postes du bât.6 + * Pas convaincu des 6h15 pour 10 ETCS !! Ne pas le dire dans le rapport... On a ce volume d'horaires d'un courTDTP en général sans prendre en compte le travail suppl à faire à la maison. Ca me semble pas juste, quoiqu'on lise + * publier annonce pour recherche d'Alpha testeurs + * annonce AlphaTesteurs Forums Android + * mail betatesteurs avec lien vers PtitClic version Lafourcade LUNDI 31/01/2011 + * download and install Gantt Project + * fichier pticlic.gan (github) From 298a3e92f1288f5333d8bb29786a62a34761a78e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Wed, 26 Jan 2011 09:14:00 +0100 Subject: [PATCH 04/11] =?UTF-8?q?D=C3=A9placement=20des=20fichiers=20dans?= =?UTF-8?q?=20organisation/,=20partie=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- organisation/{notes => mail} | 0 organisation/todo | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename organisation/{notes => mail} (100%) create mode 100644 organisation/todo diff --git a/organisation/notes b/organisation/mail similarity index 100% rename from organisation/notes rename to organisation/mail diff --git a/organisation/todo b/organisation/todo new file mode 100644 index 0000000..e69de29 From a6e1e307a8d6cebbb6937c38ea1b50bd86d77cb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Wed, 26 Jan 2011 09:15:46 +0100 Subject: [PATCH 05/11] =?UTF-8?q?D=C3=A9placement=20des=20fichiers=20dans?= =?UTF-8?q?=20organisation/,=20partie=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- organisation/notes | 1 + 1 file changed, 1 insertion(+) create mode 100644 organisation/notes diff --git a/organisation/notes b/organisation/notes new file mode 100644 index 0000000..374dd4c --- /dev/null +++ b/organisation/notes @@ -0,0 +1 @@ +- Une classe Constante pour toutes les constantes ("symboles" pour les paramètres, ...) From 8f36c03e61e5e0cdd2b4aaf0d4d696dba4bef98a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Wed, 26 Jan 2011 09:50:51 +0100 Subject: [PATCH 06/11] Notes (pour test de push). --- organisation/notes | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/organisation/notes b/organisation/notes index 374dd4c..85837d2 100644 --- a/organisation/notes +++ b/organisation/notes @@ -1 +1,3 @@ -- Une classe Constante pour toutes les constantes ("symboles" pour les paramètres, ...) +- Une classe Constante pour toutes les constantes ("symboles" pour les paramètres, ...). +- Boutons pour les différents modes de jeu directement sur la "page de garde". +- Créer un splash au démarrage. From 6496b731bc83c31cccfe7c5a5abea36bb66fdb5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Wed, 26 Jan 2011 12:53:26 +0100 Subject: [PATCH 07/11] =?UTF-8?q?Exemple=20de=20la=20forme=20des=20parties?= =?UTF-8?q?=20renvoy=C3=A9es=20par=20le=20serveur.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/serveur/parties.json | 28 +++++++++++++++++++ code/serveur/{config => php}/config.php | 0 code/serveur/{config => php}/function.php | 0 .../serveur/{commands.php => php/pticlic.php} | 0 organisation/todo | 0 5 files changed, 28 insertions(+) create mode 100644 code/serveur/parties.json rename code/serveur/{config => php}/config.php (100%) rename code/serveur/{config => php}/function.php (100%) rename code/serveur/{commands.php => php/pticlic.php} (100%) delete mode 100644 organisation/todo diff --git a/code/serveur/parties.json b/code/serveur/parties.json new file mode 100644 index 0000000..6cadbf5 --- /dev/null +++ b/code/serveur/parties.json @@ -0,0 +1,28 @@ +// Requête : http://serveur/pticlic.php?action=getparties&nb=2&mode=normal +[ + { + id: 1234, + cat1: 11, + cat2: 23, + cat3: 35, + cat4: 12, + center: { id: 555, "chat" }, + cloud: [ + { id: 123, name: "souris" }, + { id: 111, name: "lait" }, + { id: 345, name: "machine à laver" } + ] + }, + { + id: 1235, + cat1 : 12, + cat2 : 34, + cat3 : -1, + cat4 : -1, + center: { id: 666, "bouteille" }, + cloud: [ + { id: 11359, name: "jus de fruit" }, + { id: 111, name: "lait" } + ] + } +] diff --git a/code/serveur/config/config.php b/code/serveur/php/config.php similarity index 100% rename from code/serveur/config/config.php rename to code/serveur/php/config.php diff --git a/code/serveur/config/function.php b/code/serveur/php/function.php similarity index 100% rename from code/serveur/config/function.php rename to code/serveur/php/function.php diff --git a/code/serveur/commands.php b/code/serveur/php/pticlic.php similarity index 100% rename from code/serveur/commands.php rename to code/serveur/php/pticlic.php diff --git a/organisation/todo b/organisation/todo deleted file mode 100644 index e69de29..0000000 From dc77d40f9a9dcdc3cae2587226d46d9916ad6412 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Wed, 26 Jan 2011 22:42:04 +0100 Subject: [PATCH 08/11] =?UTF-8?q?Compte-rendu=20des=20r=C3=A9unions=20dans?= =?UTF-8?q?=20le=20rapport.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rapport/rapport.tex | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/rapport/rapport.tex b/rapport/rapport.tex index 6d08767..aa99266 100644 --- a/rapport/rapport.tex +++ b/rapport/rapport.tex @@ -23,6 +23,32 @@ \item Caractères non échappés dans le dump de la base.% gd \end{itemize} +\section{Compte rendu des réunions} +\subsection{14 janvier 2010} +Outils : +\begin{itemize} +\item Langage Java +\item Eclipse (version la plus récente) +\item Plugin ADT (Android Developper Toolkit) +\item SDK Android +\item Github +\item LaTeX +\item JUnit peut-être +\end{itemize} + +Durée du projet 4 mois (4 itérations de 4 semaines) + +Conventions de code : http://java.sun.com/docs/codeconv/html/CodeConventions.doc6.html + +Code (noms de variables, etc.) en anglais, commentaires en français, javadoc en français. + +\subsection{26 janvier 2011} +Mettre le serveur (PHP) sur free.fr, pour pouvoir tester facilement + +Utilisation d'une classe \verb!Constant! + +Écran d'accueil du jeu : Image (splash), puis directement les icônes des modes de jeu + configuration, au lieu d'avoir un écran avec le logo et jouer/config, suivi du choix du mode de jeu. + \section{Deuxième section} \section{Troisième section} \newpage From b54667989f01edf3a44fc8f60f70185424350412 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Wed, 26 Jan 2011 22:47:00 +0100 Subject: [PATCH 09/11] Modification du script dump2*sql*.sh --- code/serveur/dump2mysql.sh | 45 ++++++++++++++++++++ code/serveur/{dump2sql.sh => dump2sqlite.sh} | 0 2 files changed, 45 insertions(+) create mode 100644 code/serveur/dump2mysql.sh rename code/serveur/{dump2sql.sh => dump2sqlite.sh} (100%) diff --git a/code/serveur/dump2mysql.sh b/code/serveur/dump2mysql.sh new file mode 100644 index 0000000..547a2ac --- /dev/null +++ b/code/serveur/dump2mysql.sh @@ -0,0 +1,45 @@ +#!/bin/sh + +echo " dump2sql.sh : conversion des dumps de JeuxDeMots vers du sql (mysql)." >&2 +echo " La progression est affichée avec pv. Si vous n'avez pas pv, supprimez la ligne correspondante dans ce script." >&2 +echo " Et c'est parti !" >&2 +echo >&2 + +cat < Date: Thu, 27 Jan 2011 00:58:38 +0100 Subject: [PATCH 10/11] =?UTF-8?q?=C3=89bauche=20des=20requ=C3=AAtes=20du?= =?UTF-8?q?=20serveur.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/serveur/dump2mysql.sh | 27 +++++++++++++++------------ code/serveur/php/config.php | 4 ++-- code/serveur/php/function.php | 7 ++++++- code/serveur/php/pticlic.php | 32 ++++++++++++++++++++++++++++++++ 4 files changed, 55 insertions(+), 15 deletions(-) diff --git a/code/serveur/dump2mysql.sh b/code/serveur/dump2mysql.sh index 547a2ac..78df031 100644 --- a/code/serveur/dump2mysql.sh +++ b/code/serveur/dump2mysql.sh @@ -5,18 +5,20 @@ echo " La progression est affichée avec pv. Si vous n'avez pas pv, supprimez l echo " Et c'est parti !" >&2 echo >&2 +# game_played(type) : 0=partie de référence initiale, 1=partie d'un joueur. + cat < 0) order by eid desc limit 1;"); +} + +function create_game($cloud_size) { + // select random node + $eid_center=random_node(); + + // select neighbors 1 hop + $niveau1=mysql("select end from relation where start = 42 limit $taille_nuage;"); + + // select neighbors 2 hops + $niveau2=mysql("select * from relation where start in (select end from relation where start = 42) limit $taille_nuage;"); + + // select neighbors relative to the end (one hop start->end, one hop start<-end). + $niveau3=mysql("select * from relation where end in (select end from relation where start = 42) and type not in (4, 12, 36, 18, 29, 45, 46, 47, 48, 1000, 1001) limit $taille_nuage;"); + + // pour compléter si nécessaire : + // select random words + $niveau4=array(); + for ($i=0; $i < $cloud_size; $i++) { + $niveau4[$i] = ??? + } + + // start transaction; + // insert into game $eid_center + // insert into game_cloud [$cloud_size mots choisis dans $niveau1, $niveau2, $niveau3, $niveau4] + // insert into game_played une partie de référence. + // commit; +} + + // Sinon tout est bon on effectu l'opération correspondant à la commande passée. if($cmd == 0) // "Get partie" { From a5769e8dafbbdced61b7a99ac1a0956f15a42a2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Thu, 27 Jan 2011 14:48:54 +0100 Subject: [PATCH 11/11] =?UTF-8?q?Url=20du=20dump=20de=20la=20base=20de=20d?= =?UTF-8?q?onn=C3=A9es=20de=20PtiClic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/serveur/dump.url | 1 + 1 file changed, 1 insertion(+) create mode 100644 code/serveur/dump.url diff --git a/code/serveur/dump.url b/code/serveur/dump.url new file mode 100644 index 0000000..0c69b90 --- /dev/null +++ b/code/serveur/dump.url @@ -0,0 +1 @@ +http://www.lirmm.fr/~lafourcade/JDM-LEXICALNET-FR/