20 lines
391 B
TypeScript
20 lines
391 B
TypeScript
import { Player, Turn } from "./types";
|
|
|
|
export const newTurn = (first: Player) : Turn => {
|
|
return {
|
|
name: first.name,
|
|
color: first.color,
|
|
actions: [],
|
|
limits: {},
|
|
roll: 0,
|
|
volcano: null,
|
|
free: false,
|
|
freeRoads: 0,
|
|
select: {},
|
|
active: null,
|
|
robberInAction: false,
|
|
placedRobber: false,
|
|
developmentPurchased: false,
|
|
offer: null,
|
|
};
|
|
} |