using QwirkleClassLibrary.Boards;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
namespace QwirkleClassLibrary.Players
{
[DataContract]
public class Score
{
[DataMember]
public string PlayerName { get; private set; }
[DataMember]
public DateTime Date { get; set; }
[DataMember]
public int Points { get; set; }
[DataMember]
public int Victories { get; set; }
///
/// Creates a score with the player's name, the date of the score, the number of points and the number of victories
///
///
///
///
///
public Score(string playerName, DateTime date, int points, int victories)
{
PlayerName = playerName;
Date = date;
Points = points;
Victories = victories;
}
///
/// Overrides the ToString method to display the player's name, the date of the score, the number of points and the number of victories
///
/// string
public override string ToString()
{
return PlayerName + " / " + Date.ToString() + " / " + Points + " / " + Victories;
}
}
}