{indice.ToString("fr")} |
- {players.map((player, colIndex) => (
+ {playerColors.map((player, colIndex) => (
{/* */}
@@ -80,7 +95,7 @@ function DeducCheck() {
Indices |
- {players.map((player, index) => (
+ {playerColors.map((player, index) => (
{player} |
))}
@@ -89,7 +104,7 @@ function DeducCheck() {
{secondHalfIndices.map((indice, rowIndex) => (
{indice.ToString("fr")} |
- {players.map((player, colIndex) => (
+ {playerColors.map((player, colIndex) => (
{/* */}
diff --git a/cryptide_project/src/Pages/InGame.tsx b/cryptide_project/src/Pages/InGame.tsx
index f90c73f..ee285fa 100644
--- a/cryptide_project/src/Pages/InGame.tsx
+++ b/cryptide_project/src/Pages/InGame.tsx
@@ -278,8 +278,10 @@ const InGame = ({locale, changeLocale}) => {
const [SwitchEnabled, setSwitchEnabled] = useState(false)
const allIndices = Stub.GenerateIndice()
- const { indice, players } = useGame();
+ const { indice, players, actualPlayerIndex} = useGame();
+ const nbPlayer = players.length;
+ const navdeduc = '/deduc?actualId=' + actualPlayerIndex + '&nbPlayer=' + nbPlayer;
return (
@@ -373,12 +375,9 @@ const InGame = ({locale, changeLocale}) => {

- {/* */}
{!IsSolo &&
-
+
| |