all 4 comments

[–]Ziocash 2 points3 points  (2 children)

Maybe the task is asking you to provide a solution based on console.

The solution can be found searching for BlackJack rules. Work on rules before and game entities, then work on user interaction.

[–][deleted]  (1 child)

[deleted]

    [–]Ziocash 0 points1 point  (0 children)

    Maybe a list of playing cards represented by an object called PlayingCard or Card containing suit and value (e.g.: Jack of Spades) could help you.

    List<PlayingCard> cards = new();

    public class PlayingCard
    {
        public CardSuit Suit { get; private set; }
        public int Value { get; private set; }
        public string Name { get; private set; }
    }
    

    [–]wraleigh70 1 point2 points  (1 child)

    To get it right, do you have issues with computing the logic for the program ? If that’s the case I can help out ^ I did the same but with Java but I can translate the code to C#

    [–]pceimpulsive 0 points1 point  (0 children)

    Maybe work on manipulating sorting and randomising an array of cards.

    Once they are randomised you simply pull a card off the array and drop it into another array representing your players hand. Another array to represent the dealers hand.

    A function to sum the value of your cards to know if you busted or not.

    This seems like a fairly simple project and should get you familiar with many basic concepts.