Nomnomfighter
Nomnomfighter
CC#
Created by Nomnomfighter on 7/11/2024 in #help
✅ Trying to add tic tac toe board snapshot to variable for display of full match later
Nice, that works now!
14 replies
CC#
Created by Nomnomfighter on 7/11/2024 in #help
✅ 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
CC#
Created by Nomnomfighter on 7/11/2024 in #help
✅ 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
CC#
Created by Nomnomfighter on 7/11/2024 in #help
✅ Trying to add tic tac toe board snapshot to variable for display of full match later
Ah cool, thanks!
14 replies
CC#
Created by Nomnomfighter on 9/23/2023 in #help
❔ ✅ While loop takes input but gives out output + two phantom outputs
!close
17 replies
CC#
Created by Nomnomfighter on 9/23/2023 in #help
❔ ✅ While loop takes input but gives out output + two phantom outputs
Oh nice! Thank you!
17 replies
CC#
Created by Nomnomfighter on 9/23/2023 in #help
❔ ✅ 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
CC#
Created by Nomnomfighter on 9/23/2023 in #help
❔ ✅ While loop takes input but gives out output + two phantom outputs
I see. Also, since I'm new to switch cases, is there a way to branch them? I'm trying to see if I can be a bit more elegant than big if statements
17 replies
CC#
Created by Nomnomfighter on 9/23/2023 in #help
❔ ✅ While loop takes input but gives out output + two phantom outputs
Ah, okay. Would .ReadKey work instead or what would that do?
17 replies
CC#
Created by Nomnomfighter on 9/20/2023 in #help
✅ Trying to round a value but there's seemingly no elegant way to do it?
thanks
9 replies
CC#
Created by Nomnomfighter on 9/20/2023 in #help
✅ Trying to round a value but there's seemingly no elegant way to do it?
!solved
9 replies
CC#
Created by Nomnomfighter on 9/20/2023 in #help
✅ Trying to round a value but there's seemingly no elegant way to do it?
Oh, so because I want to divide it, it needs to be a decimal/double!
9 replies
CC#
Created by Nomnomfighter on 5/17/2023 in #help
✅ Blackjack Dealer goes into an infinite loop (SOLVED)
Don't even know what that means rofl
93 replies
CC#
Created by Nomnomfighter on 5/17/2023 in #help
✅ Blackjack Dealer goes into an infinite loop (SOLVED)
Apparently I don't have the permissions to close this thread ¯\_(ツ)_/¯
93 replies
CC#
Created by Nomnomfighter on 5/17/2023 in #help
✅ Blackjack Dealer goes into an infinite loop (SOLVED)
Yeah, I'll tackle classes in a while. Just wanted to keep honing the knowledge I've gained sofar
93 replies
CC#
Created by Nomnomfighter on 5/17/2023 in #help
✅ Blackjack Dealer goes into an infinite loop (SOLVED)
I'm using .NET 6 to update less frequently, didn't think there'd be an issue like this since it's still in support
93 replies
CC#
Created by Nomnomfighter on 5/17/2023 in #help
✅ Blackjack Dealer goes into an infinite loop (SOLVED)
That's good to know!
93 replies
CC#
Created by Nomnomfighter on 5/17/2023 in #help
✅ 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 mate
93 replies
CC#
Created by Nomnomfighter on 5/17/2023 in #help
✅ 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
CC#
Created by Nomnomfighter on 5/17/2023 in #help
✅ 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