Nomnomfighter
✅ Trying to add tic tac toe board snapshot to variable for display of full match later
I did that before, but I'd have to rework the placing logic to do that. Currently, if it would land on a field that already has a symbol, it would not tell me which of the fields it has overridden, just the symbol that field had before
14 replies
✅ Trying to add tic tac toe board snapshot to variable for display of full match later
Actually testing it, I get an System.Collections.Generic.List`1[System.String] error. A quick search doesn't tell me much (too much of a beginner to understand how to fix the problem)
14 replies
❔ ✅ While loop takes input but gives out output + two phantom outputs
I know I can check multiple ifs at the same time with stuff like https://paste.ofcode.org/P6baM3DpBydj6gk9hu9aXD
But is there a way to include that check against the computer in a switch statement?
17 replies
✅ Blackjack Dealer goes into an infinite loop (SOLVED)
You're right. I kept that because it was similar to the Dealer's routine (which doesn't make sense for the player). Took it out, now it works without issue when you "naturally" achieve 21.
I still don't understand why having both conditions being false put it into a loop, but now I've reduced L47 to just
if (playerStand == false)
and it works as expected \o/
Thanks mate93 replies
✅ Blackjack Dealer goes into an infinite loop (SOLVED)
Yeah, that works too, but it should work with either stand = true or 21. When I play normally without hardcoding the values, the other ways to put playerStand = true work. The bug only started happening when player happened to get exactly 21. Which should put playerStand = true just like everywhere else, but just also making the starting if @ L47 false for both statements
93 replies
✅ Blackjack Dealer goes into an infinite loop (SOLVED)
Currently, I have hardcoded
cardDealer = 18
to but them in stand routine and cardPlayer = 21
to put Player at Blackjack.
If I keep L47, if (cardPlayer < Blackjack && playerStand == false)
, it goes into the loop.
If I change it to to (cardPlayer <= Blackjack && playerStand == false)
, it gives me the prompt, asking if I want to draw again and the options go on normally, with n winning and y busting me because I draw another card.93 replies