mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48:26 -04:00
Added .GetName extension method which will show human readable hand values in text. Also completely moved .betdraw the the new deck implementation. A renamed to Ace
This commit is contained in:
@@ -39,8 +39,16 @@ public abstract class NewDeck<TCard, TSuit, TValue>
|
||||
return null;
|
||||
}
|
||||
|
||||
public virtual TCard? Peek()
|
||||
=> _cards.First?.Value;
|
||||
public virtual TCard? Peek(int x = 0)
|
||||
{
|
||||
var card = _cards.First;
|
||||
for (var i = 0; i < x; i++)
|
||||
{
|
||||
card = card?.Next;
|
||||
}
|
||||
|
||||
return card?.Value;
|
||||
}
|
||||
|
||||
public virtual void Shuffle()
|
||||
{
|
||||
|
Reference in New Issue
Block a user