Skip to content

Commit

Permalink
Add tarot cards keywords, empty for now
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarcederberg committed Jul 31, 2021
1 parent 0928726 commit 1c87f5d
Show file tree
Hide file tree
Showing 8 changed files with 337 additions and 87 deletions.
4 changes: 3 additions & 1 deletion Classes/ICard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace tarot{
public interface ICard{
public String ToString();
public String GetName();

public String GetKeywords();
}
}
11 changes: 9 additions & 2 deletions Classes/TarotCard.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
namespace tarot{
public class TarotCard : ICard{
public readonly string Name;
public TarotCard(string name){
public readonly string Keywords;

public TarotCard(string name, string keywords){
this.Name = name;
this.Keywords = keywords;
}

public override string ToString(){
public string GetName(){
return Name;
}

public string GetKeywords(){
return Keywords;
}
}
}
2 changes: 1 addition & 1 deletion Classes/TarotDeck.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public TarotCard RequeueCard() {

public void PrintDeck(){
foreach(TarotCard card in this._deck){
Console.WriteLine(card.ToString());
Console.WriteLine(card.GetName());
}
}

Expand Down
2 changes: 1 addition & 1 deletion Classes/TarotSpread.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace tarot{
public class TarotSpread : ISpread<TarotDeck, TarotCard>{
public string[] Positions;
public readonly string[] Positions;

private TarotCard[] _spread_cards;

Expand Down
Loading

0 comments on commit 1c87f5d

Please sign in to comment.