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.
33 lines
849 B
33 lines
849 B
using MiniGames.Shared.Models;
|
|
using System;
|
|
using System.Linq;
|
|
|
|
namespace MiniGames.Client.ViewModel
|
|
{
|
|
public class Uno : IUno
|
|
{
|
|
public StapelModel AblageStabel { get; set; }
|
|
|
|
public bool IstAblageStabelFarbeGleichHand(string ablegeStapelKarte, string neueKarte)
|
|
{
|
|
if (ablegeStapelKarte.Equals(neueKarte))
|
|
{
|
|
return true;
|
|
}
|
|
else
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public HandKartenModel ZiehEineKarte(HandKartenModel handStapel, StapelModel stapelModel)
|
|
{
|
|
HandKartenModel _handStapel = handStapel;
|
|
StapelModel _stapelModel = stapelModel;
|
|
|
|
_handStapel.KartenModels.Add(_stapelModel.KartenModels.FirstOrDefault());
|
|
|
|
return _handStapel;
|
|
}
|
|
}
|
|
}
|