Added tictactoe rules and their translations in current languages

This commit is contained in:
Namonay 2024-02-27 18:11:08 +01:00 committed by AdrienLSH
parent 8afa2c7b1b
commit 5313e6e0d9
5 changed files with 26 additions and 5 deletions

View File

@ -38,5 +38,9 @@
"profileBlock": "Quoicoubloquer",
"gameGoalTaken": "Tu es quoicoucringe",
"gamePlayersListName": "Crampteurs",
"ticTacToe": "Quoicoumorpion"
"ticTacToe": "Quoicoumorpion",
"ruleTitle" : "Règles cramptés",
"ruleBase" : "cramptun. Vous devez quouicougagner sur une des 9 quoicougrilles pour gagner la croustipartie",
"ruleMovement" : "quoicoudeux. Vous quoicommencez sur le morpion quoicoucentral, et jouez sur le quoicoumorpion correspondant a votre croustichoix a votre prochain cramptour",
"ruleDraw" : "cramptrois. Si votre quoicouchoix rempli entièrement un quoicoumorpion et provoque une cramptégalité, vous perdez"
}

View File

@ -38,5 +38,9 @@
"profileBlock": "Block",
"gameGoalTaken": "Goal Taken",
"gamePlayersListName": "Players",
"ticTacToe": "TicTacToe"
"ticTacToe": "TicTacToe",
"ruleTitle" : "Rules",
"ruleBase" : "1. Win on one of the 9 tictactoe to win the game",
"ruleMovement" : "2. You start on the central tictactoe, and play on the one corresponding to your choice on the next turn",
"ruleDraw" : "3. If your play cause a tictactoe to be full and a draw, you lose the game"
}

View File

@ -38,5 +38,9 @@
"profileBlock": "Bloquer",
"gameGoalTaken": "But pris",
"gamePlayersListName": "Joueurs",
"ticTacToe" : "Morpion"
"ticTacToe" : "Morpion",
"ruleTitle" : "Règles",
"ruleBase" : "1. Vous devez gagner sur une des 9 grilles pour gagner la partie",
"ruleMovement" : "2. Vous commencez sur le morpion central, et jouez sur le morpion correspondant a votre choix a votre prochain tour",
"ruleDraw" : "3. Si votre choix rempli entièrement un morpion et provoque une égalité, vous perdez"
}

View File

@ -36,6 +36,10 @@
"profileAcceptRequest": "kama jo e ijo ni",
"profileUnblock": "Tawa ala e nimi pi jan ni",
"profileBlock": "Tawa e nimi pi jan ni",
"ticTacToe": "TicTacToe"
"ticTacToe": "TicTacToe",
"ruleTitle" : "Rules",
"ruleBase" : "1. Win on wan pi the 9 tictactoe tawa win the game",
"ruleMovement" : "2. Sina open on the central tictactoe, en play on the wan corresponding tawa your choice on the next turn",
"ruleDraw" : "3. If your play cause a tictactoe tawa be full en a draw, sina lose the game"
}

View File

@ -240,7 +240,12 @@ export default class extends AbstractView
<h1>${lang.get('ticTacToe')}</h1>
<div style="display: flex">
<canvas id="Morpion" width="${this.width}" height="${this.height}"></canvas>
<h2 style="margin-left: 5%">J'arrive a ecrire du html a droite 🤓🤓🤓🤓</h2>
<div>
<h2 style="padding-left: 50px"><B>${lang.get('ruleTitle')}</B></h2>
<h5 style="padding-left: 30px">${lang.get('ruleBase')}<br><br></h5>
<h5 style="padding-left: 30px">${lang.get('ruleMovement')}<br><br></h5>
<h5 style="padding-left: 30px">${lang.get('ruleDraw')}</h5>
</div>
</div>
`;
}