diff --git a/cryptide_project/src/Pages/Home.tsx b/cryptide_project/src/Pages/Home.tsx
index b0aff2a..991761e 100644
--- a/cryptide_project/src/Pages/Home.tsx
+++ b/cryptide_project/src/Pages/Home.tsx
@@ -47,7 +47,7 @@ function Home() {
Introduction
{/* */}
- Bienvenue dans notre jeu de déduction captivant, où l'intrigue et la malice se rejoignent dans une aventure palpitante ! Plongez-vous dans un monde de mystère et d'intrigue, où chaque interaction compte, et chaque indice vous rapproche de la vérité.Imaginez un graphique complexe où chaque sommet représente une personne, chaque axe une relation, et chaque détail compte. Vous êtes plongé dans un défi stimulant pour découvrir qui parmi ces individus est le mystérieux tueur. Chaque joueur détient un indice crucial, et seul le partage stratégique de ces indices vous mènera à la résolution du mystère. Explorez notre page de règles pour comprendre les subtilités du jeu, découvrez les indices qui peuvent vous guider, et élaborez des stratégies intelligentes pour identifier le coupable. Manipuler vos amis, afin d'être le premier à découvrir qui est le meurtrier ! Êtes-vous prêt à relever le défi et à démasquer le tueur caché dans le graphe ? Que l'enquête commence !
+ Bienvenue dans notre jeu de déduction captivant, où l'intrigue et la malice se rejoignent dans une aventure palpitante ! Plongez-vous dans un monde de mystère et d'intrigue, où chaque interaction compte, et chaque indice vous rapproche de la vérité.Imaginez un graphique complexe où chaque sommet représente une personne, chaque axe une relation, et chaque détail compte. Vous êtes plongé dans un défi stimulant pour découvrir qui parmi ces individus est le mystérieux coupable. Chaque joueur détient un indice crucial, et seul le partage stratégique de ces indices vous mènera à la résolution du mystère. Explorez notre page de règles pour comprendre les subtilités du jeu, découvrez les indices qui peuvent vous guider, et élaborez des stratégies intelligentes pour identifier le coupable. Manipuler vos amis, afin d'être le premier à découvrir qui est le meurtrier ! Êtes-vous prêt à relever le défi et à démasquer le coupable caché dans le graphe ? Que l'enquête commence !
From 4836fff5418c8c6d8089715442c82eef62ae3cde Mon Sep 17 00:00:00 2001
From: Thomas Chazot
Date: Tue, 28 Nov 2023 16:25:07 +0100
Subject: [PATCH 4/6] Bug fix des noms undefined
---
cryptide_project/src/Components/NavBar.tsx | 3 ---
cryptide_project/src/Pages/EndGame.tsx | 2 --
cryptide_project/src/Pages/Play.tsx | 4 +---
cryptide_project/src/Pages/Profile.tsx | 1 -
cryptide_project/src/Script/LatexScript.tsx | 2 +-
cryptide_project/src/model/NetworkGenerator.ts | 2 +-
6 files changed, 3 insertions(+), 11 deletions(-)
diff --git a/cryptide_project/src/Components/NavBar.tsx b/cryptide_project/src/Components/NavBar.tsx
index 2451992..2adb94e 100644
--- a/cryptide_project/src/Components/NavBar.tsx
+++ b/cryptide_project/src/Components/NavBar.tsx
@@ -32,9 +32,6 @@ function AppNavbar({changeLocale}) {
const navigate = useNavigate();
- useEffect(() => {
- console.log(user)
- }, [user])
function navigateToProfile(){
navigate("/profile")
diff --git a/cryptide_project/src/Pages/EndGame.tsx b/cryptide_project/src/Pages/EndGame.tsx
index df73198..d28eeb3 100644
--- a/cryptide_project/src/Pages/EndGame.tsx
+++ b/cryptide_project/src/Pages/EndGame.tsx
@@ -68,8 +68,6 @@ function EndGame() {
}
const theme = useTheme();
- console.log(winner)
- console.log(indices)
return (
{!IsSolo ? (
diff --git a/cryptide_project/src/Pages/Play.tsx b/cryptide_project/src/Pages/Play.tsx
index 9239d16..d45d51f 100644
--- a/cryptide_project/src/Pages/Play.tsx
+++ b/cryptide_project/src/Pages/Play.tsx
@@ -119,14 +119,12 @@ function Play() {
socket.emit("lobby created")
}
- useEffect(() => {
- console.log(user)
- }, [user])
function launchMastermind(){
const [networkPerson, choosenPerson, choosenIndices] = GameCreator.CreateGame(3, 30)
setPersonData(choosenPerson)
setPersonNetworkData(networkPerson)
+ console.log(networkPerson)
setIndicesData(choosenIndices)
setIndicesData(choosenIndices)
navigate('/game?solo=true&daily=false');
diff --git a/cryptide_project/src/Pages/Profile.tsx b/cryptide_project/src/Pages/Profile.tsx
index aabb873..556a674 100644
--- a/cryptide_project/src/Pages/Profile.tsx
+++ b/cryptide_project/src/Pages/Profile.tsx
@@ -84,7 +84,6 @@ const Profile = () => {
// Verification de la phrase
if (confirmationPhrase.toLowerCase() === 'supprimer mon compte') {
console.log('Compte supprimé !');
- console.log(user);
if(user!= null){
const pseudo = user.pseudo;
diff --git a/cryptide_project/src/Script/LatexScript.tsx b/cryptide_project/src/Script/LatexScript.tsx
index 59b4794..18f4fcb 100644
--- a/cryptide_project/src/Script/LatexScript.tsx
+++ b/cryptide_project/src/Script/LatexScript.tsx
@@ -124,7 +124,7 @@ function generateLatexCodeEnigme(personsNet : PersonNetwork, choosenPerson : Per
latexCode+= "\\begin{tikzpicture}[scale=.18]\n"
- personsNet.getPersons().forEach((person, index) => {
+ personsNet.getPersons().sort().forEach((person, index) => {
var nodesData = network.getPositions();
// Obtenir les coordonnées du nœud
diff --git a/cryptide_project/src/model/NetworkGenerator.ts b/cryptide_project/src/model/NetworkGenerator.ts
index 8b9b39b..e01f988 100644
--- a/cryptide_project/src/model/NetworkGenerator.ts
+++ b/cryptide_project/src/model/NetworkGenerator.ts
@@ -17,7 +17,7 @@ class NetworkGenerator{
const tabPerson: Person[] = []
- const tabNames = json.names
+ const tabNames = [...json.names]
/*
let id = 0
From 07ffe52c2b6fd854886e2c03194522721cf6ff46 Mon Sep 17 00:00:00 2001
From: Thomas Chazot
Date: Tue, 28 Nov 2023 16:26:11 +0100
Subject: [PATCH 5/6] =?UTF-8?q?Suppression=20du=20log=20de=20la=20personne?=
=?UTF-8?q?=20recherch=C3=A9e?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
cryptide_project/src/Components/GraphContainer.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cryptide_project/src/Components/GraphContainer.tsx b/cryptide_project/src/Components/GraphContainer.tsx
index c82adfa..9cd3807 100644
--- a/cryptide_project/src/Components/GraphContainer.tsx
+++ b/cryptide_project/src/Components/GraphContainer.tsx
@@ -587,7 +587,7 @@ const MyGraphComponent: React.FC = ({onNodeClick, handleS
}
if (a==indices.length){
//networkData.nodes.update({id: p.getId(), label: p.getName() + "\n🔵"})
- console.log(p)
+ //console.log(p)
}
});
From be4b6db1b79d76bef2d6acbd170c45c4e6ab39af Mon Sep 17 00:00:00 2001
From: Thomas CHAZOT
Date: Tue, 28 Nov 2023 16:48:11 +0100
Subject: [PATCH 6/6] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'cryptide=5Fpro?=
=?UTF-8?q?ject/social=5Fgraph.sh'?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
cryptide_project/social_graph.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/cryptide_project/social_graph.sh b/cryptide_project/social_graph.sh
index 2697c2f..9e56209 100755
--- a/cryptide_project/social_graph.sh
+++ b/cryptide_project/social_graph.sh
@@ -1,5 +1,6 @@
#!/bin/sh
+npm install --force
if lsof -Pi :3000 -sTCP:LISTEN -t >/dev/null; then
# Tuer le processus associé au port