You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
473 B
19 lines
473 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace WebApplication1
|
|
{
|
|
|
|
public class Field
|
|
{
|
|
public string identifier { get; } = Guid.NewGuid().ToString("N");
|
|
public List<Figure> Figures { get; } = new List<Figure>();
|
|
public bool MoveRandomFigure()
|
|
{
|
|
Random rr = new Random();
|
|
int iPos = rr.Next(Figures.Count());
|
|
return FigureMover.Move(Figures[iPos]);
|
|
}
|
|
}
|
|
}
|
|
|