How to display the result of the last game?

  • 0
    I have previously asked the same question here, but this one is more specific.

    Hello! Wrote blackjack, here's a more or less working version:

    Everything works as it should here, but after the end of the distribution, the page reloads, but the player needs to be able to start a new distribution without reloading.

    What is the problem (if you remove the automatic restart and uncomment the code in game_end ()): after the first distribution, hell begins:
    1) After each hand played, the console displays the results of all previous games, and preferably only the last one.
    2) With each subsequent game, if the player wants to draw cards, the dealer deals several cards at once (the more games are played, the more cards are dealt)
    3) There may be a lot more bugs, but these are the first ones that catch your eye.

    I have been suffering for several days with this blackjack, I would be grateful if someone could tell me the cause of the problem and how to solve it.
    JavaScript Anonymous, Jan 29, 2019

  • 0 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!