22 lines
521 B
C#
22 lines
521 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace GameModel
|
|
{
|
|
public record BoardState(ThrowMode ThrowMode, PinPicture PinPicture)
|
|
{
|
|
public static BoardState Create()
|
|
{
|
|
return new BoardState(ThrowMode.Reposition,PinPicture.Create());
|
|
}
|
|
|
|
public static BoardState Create(ThrowMode ThrowMode)
|
|
{
|
|
return new BoardState(ThrowMode, PinPicture.Create());
|
|
}
|
|
}
|
|
}
|