diff --git a/Qwirkle/QwirkleClassLibrary/Player.cs b/Qwirkle/QwirkleClassLibrary/Player.cs new file mode 100644 index 0000000..2cf19d1 --- /dev/null +++ b/Qwirkle/QwirkleClassLibrary/Player.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace QwirkleClassLibrary +{ + public class Player + { + private string nameTag; + + private bool isPlaying = false; + + public Player(string name) + { + nameTag = name; + if(isPlaying == false) + { + Console.WriteLine("Player created. Name : " + nameTag + ", Turn to play : No\n"); + } + + else Console.WriteLine("Player created. Name : " + nameTag + ", Turn to play : Yes\n"); + + } + + public string getName + { + get { return nameTag; } + } + + public bool getIsPlaying + { + get { return isPlaying; } + } + + public void setIsPlaying(bool isPlaying) + { + this.isPlaying = isPlaying; + } + + } +} diff --git a/Qwirkle/QwirkleClassLibrary/Score.cs b/Qwirkle/QwirkleClassLibrary/Score.cs new file mode 100644 index 0000000..f855527 --- /dev/null +++ b/Qwirkle/QwirkleClassLibrary/Score.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace QwirkleClassLibrary +{ + public struct Score + { + private int score; + private string playerTag; + } +}