diff --git a/cryptide_project/src/Components/PlayerItemList.tsx b/cryptide_project/src/Components/PlayerItemList.tsx index 4fcb752..5086f1e 100644 --- a/cryptide_project/src/Components/PlayerItemList.tsx +++ b/cryptide_project/src/Components/PlayerItemList.tsx @@ -20,6 +20,7 @@ import Bot from '../model/Bot'; /* server */ import { socket } from '../SocketConfig'; +import { Form } from 'react-router-dom'; interface MyPlayerItemListProps { player : Player, @@ -58,13 +59,13 @@ const PlayerItemList:React.FC =({ player, room }) => { {isBot && ( - Facile + - Intermédiaire + - Fort + )} diff --git a/cryptide_project/src/Pages/Lobby.tsx b/cryptide_project/src/Pages/Lobby.tsx index df747cd..6984d08 100644 --- a/cryptide_project/src/Pages/Lobby.tsx +++ b/cryptide_project/src/Pages/Lobby.tsx @@ -48,6 +48,7 @@ import Overlay from 'react-bootstrap/Overlay'; import { DataSet } from 'vis-network'; import {basePath} from "../AdressSetup" +import { FormattedMessage } from 'react-intl'; let gameStarted = false @@ -192,17 +193,14 @@ function Lobby() { }); socket.on("room full", () => { - //TODO POP UP pour quand la room est pleine navigate(`${basePath}/`) }) socket.on("game started", () => { - //TODO POP UP pour quand la room est pleine navigate(`${basePath}/`) }) socket.on("game already started", () => { - //TODO POP UP pour quand la room est pleine navigate(`${basePath}/`) }) @@ -277,9 +275,9 @@ function Lobby() {
{players.length == 6 ? ( -

6/6 Players

+

6/6

) : ( -

{players.length}/6 Players

+

{players.length}/6

) }
@@ -308,11 +306,11 @@ function Lobby() {
-

Bienvenue dans votre lobby !

-

Attendez que tous vos amis rejoignent avant de lancer la partie.

+

+

{/* Bouton pour copier le lien */} {({ @@ -334,13 +332,13 @@ function Lobby() { ...props.style, }} > - Lien copié +
)}
- +
@@ -366,7 +364,7 @@ function Lobby() { width: 'auto', height: 'auto' }}> - Démarrer la partie ! +
diff --git a/cryptide_project/src/Translations/en.json b/cryptide_project/src/Translations/en.json index 3d7db75..9c67646 100644 --- a/cryptide_project/src/Translations/en.json +++ b/cryptide_project/src/Translations/en.json @@ -103,6 +103,15 @@ "score.tab.stat" : "Your Stats", + "lobby.players" : "Players", + "lobby.bienvenue": "Welcome to your lobby!", + "lobby.wait": "Wait for all your friends to join before starting the game.", + "lobby.invite": "Invite friends", + "lobby.copyLink": "Link copied", + "lobby.nbNode": "Select the number of nodes (between 20 and 60)", + "lobby.start": "Start the game!", + + "informations" : "Information", "info.intro.title":"Introduction to the game :", diff --git a/cryptide_project/src/Translations/fr.json b/cryptide_project/src/Translations/fr.json index 7c1b7ce..191eb73 100644 --- a/cryptide_project/src/Translations/fr.json +++ b/cryptide_project/src/Translations/fr.json @@ -71,6 +71,15 @@ "navbar.presentation":"Présentation", "navbar.info":"Informations", + + "easy" : "Facile", + "hard" : "Difficile", + "medium" : "Intermédiaire", + "strong" : "Fort", + "weak" : "Faible", + "none" : "Aucun", + + "play.jouerseul": "Jouer seul", "play.enigme": "Résoudre une énigme", "play.enigme.easy": "Facile", @@ -102,6 +111,16 @@ "score.tab.stat" : "Vos Stats", + "lobby.players" : "Joueurs", + "lobby.bienvenue" : "Bienvenue dans votre lobby !", + "lobby.wait" : "Attendez que tous vos amis rejoignent avant de lancer la partie.", + "lobby.invite" : "Inviter des amis", + "lobby.copyLink" : "Lien copié", + "lobby.nbNode" : "Sélectionner le nombre de noeud (entre 20 et 60) ", + "lobby.start" : "Démarrer la partie !", + + + "informations" : "Informations", "info.intro.title":"Introduction au jeu :", "info.intro.text":"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 !",