Alex
Alex
CC#
Created by Alex on 5/10/2024 in #help
Null object reference when trying to update an instance
I'm trying to code chess but its kinda rough. https://pastebin.com/YxDs7Wry https://pastebin.com/AfJQxsi3 https://pastebin.com/BFZVnPN4 If I want to move a piece to a legal square, I try to update the old instance to a new instance by changing the coordinates and assigning the relevant piece art there, but the instances are always null.
1 replies
CC#
Created by Alex on 5/25/2023 in #help
❔ CS1077 here which I don't know how to resolve. Something to do with the out parameters
https://paste.mod.gg/esakwzvzaedv/0 It wants me to assign some value to the variables but then they're useless
7 replies
CC#
Created by Alex on 5/19/2023 in #help
❔ Bool method that doesn't work
https://paste.mod.gg/adsjyblwubxp/0 The purpose is to repeat the main method if the user enters a Y but for some reason, no matter what I tweak, it does not work
15 replies
CC#
Created by Alex on 5/17/2023 in #help
❔ Marks operations system with broken bool
https://paste.mod.gg/ejflkvfqwzqg/0 I use the Average() method for both calculating the average and standard deviation. If Average() is called, it should display the writeline and when the latter is called, it should not. Not sure why it doesn't work and it breaks my brain. Second problem is the IsAnotherOne() method. It should repeat the main method if the bool is true but once again, my bools are broken
5 replies
CC#
Created by Alex on 5/10/2023 in #help
❔ ✅ Need help with methods and parameters
I'm stuck on the return methods, specifically how to use the ref and out keywords. Any sites or videos that discuss these topics in the console class?
16 replies