commit a2126c979d9f86bcc0e544cc367029dd82ad9e1c
parent 719f742f04753b1336a3e6b79a96b5321cece0d9
Author: Georges Dupéron <jahvascriptmaniac+github@free.fr>
Date: Tue, 1 Feb 2011 15:00:20 +0100
Corrections sur mes notes dans le rapport + un peu de mise en forme.
Diffstat:
2 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/code/serveur/php/pticlic.php b/code/serveur/php/pticlic.php
@@ -41,9 +41,13 @@ function create_game($cloudSize) {
global $db;
// select random node
$centerEid = random_node();
+ $relation_1 = 5;
+ $relation_2 = 7;
+ //$relation_3 = 9;
+ //$relation_4 = 10;
// select neighbors 1 hop
- if (!$difficulty_1 = $db->query("select end as eid from relation where start = 42 order by random() limit " . $cloudSize . ";")) { mDie(4,"Erreur dans la requête d1"); }
+ if (!$difficulty_1 = $db->query("select end as eid from relation where start = 42 and type in (".$relation_1.",".$relation_2.") order by random() limit " . $cloudSize . ";")) { mDie(4,"Erreur dans la requête d1"); }
// select neighbors 2 hops
diff --git a/rapport/rapport.tex b/rapport/rapport.tex
@@ -118,12 +118,21 @@ Android Developer, 2011. (\url{http://developer.android.com/})
\section{Notes Georges}
-Les relations suivantes seront peut-être utilisées (* = oui, c'est sûr)
-r\_carac 17
-r\_agent 13
-r\_patient 14
-* r\_syn 5
-
+Les relations suivantes seront peut-être utilisées (* = oui, c'est sûr, on a/doit faire les icônes et des requêtes sql)~:
+
+\begin{tabular}{|c|l|l|l|}
+\hline
+icône~? & nom & num & signification \\
+\hline
+$*$ & r\_syn & 5 & synonyme (chat -> matou) \\
+$*$ & r\_anto & 7 & antonyme (bon -> mauvais) \\
+$*$ & r\_has\_part & 9 & A comme partie (chat -> patte) \\
+$*$ & r\_holo & 10 & Fait partie de (patte -> chat) \\
+ & r\_agent & 13 & Peut exécuter comme action (chat -> manger) \\
+ & r\_patient & 14 & Peut subir comme action (chat -> être lavé) \\
+ & r\_carac & 17 & Caractéristique (chat -> affectueux (ou pas…)) \\
+\hline
+\end{tabular}
\newpage
\appendix