rename again

This commit is contained in:
Viktor Rådberg
2023-09-27 19:03:33 +02:00
parent 38acce206d
commit abae6f85e3
5 changed files with 11 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
import { Player, Rotation } from '../Types/Player';
import { GridTemplateAreas } from './GridTemplateAreas';
export type InitialPlaySettings = {
export type InitialGameSettings = {
startingLifeTotal: number;
useCommanderDamage: boolean;
numberOfPlayers: number;
@@ -197,7 +197,7 @@ export const createInitialPlayers = ({
startingLifeTotal,
useCommanderDamage,
gridAreas,
}: InitialPlaySettings): Player[] => {
}: InitialGameSettings): Player[] => {
const players: Player[] = [];
const availableColors = [...presetColors]; // Create a copy of the colors array
const firstPlayerIndex = Math.floor(Math.random() * numberOfPlayers);