Adding Player Class and Struct Score

test_old_branch
Remy PORTET 1 year ago
parent f479d4ddab
commit 97193d3829

@ -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;
}
}
}

@ -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;
}
}
Loading…
Cancel
Save