default to normal 4 player

This commit is contained in:
Vikeo
2023-07-08 10:56:25 +02:00
parent 0156997e85
commit eb2ab8e29e
2 changed files with 15 additions and 2 deletions

View File

@@ -6,10 +6,10 @@ import Play from './Components/Views/Play';
import { GridTemplateAreas } from './Data/getGridTemplateAreas';
export const initialPlayerOptions = {
numberOfPlayers: 3,
numberOfPlayers: 4,
startingLifeTotal: 40,
useCommanderDamage: true,
gridAreas: GridTemplateAreas.ThreePlayersSide,
gridAreas: GridTemplateAreas.FourPlayers,
};
const App = () => {

View File

@@ -76,6 +76,19 @@ const getRotation = (index: number, gridAreas: GridTemplateAreas): Rotation => {
}
}
if (gridAreas === GridTemplateAreas.FourPlayers) {
switch (index) {
case 1:
return Rotation.Flipped;
case 2:
return Rotation.Flipped;
case 3:
return Rotation.Normal;
default:
return Rotation.Normal;
}
}
return Rotation.Normal;
};