luness
luness
CC#
Created by luness on 3/20/2023 in #help
❔ The method startgame() is buggy, replace it with a constructor that takes size as parameter
thanks for help 🙂
19 replies
CC#
Created by luness on 3/20/2023 in #help
❔ The method startgame() is buggy, replace it with a constructor that takes size as parameter
yeah my teacher has been talking about constructor but I've just forgot how it works
19 replies
CC#
Created by luness on 3/20/2023 in #help
❔ The method startgame() is buggy, replace it with a constructor that takes size as parameter
the code is done, I just got it back to make those small changes, but ill try to make the changes you recommended me.
19 replies
CC#
Created by luness on 3/20/2023 in #help
❔ The method startgame() is buggy, replace it with a constructor that takes size as parameter
my bad for the lines, its just pastebin
19 replies
CC#
Created by luness on 3/20/2023 in #help
❔ The method startgame() is buggy, replace it with a constructor that takes size as parameter
public class board{private readonly int size; public Board(int size) {size = size;} } ?
19 replies
CC#
Created by luness on 3/20/2023 in #help
❔ The method startgame() is buggy, replace it with a constructor that takes size as parameter
So where it says public tile[,] Tiles etc.. above that i place the one you commented ? Like this: {}
19 replies
CC#
Created by luness on 3/5/2023 in #help
❔ Getting multiple output of my count in this code:https://pastebin.com/c7RsL47e
hahaha trueee, gotta be careful what you're coding 🙂 RTXHmm
7 replies
CC#
Created by luness on 3/5/2023 in #help
❔ Getting multiple output of my count in this code:https://pastebin.com/c7RsL47e
o.o thank you very much man, appreciate it!
7 replies
CC#
Created by luness on 2/12/2023 in #help
❔ System.IndexOutOfRangeException has been thrown"Index was outside the bounds of the array."
Oh Okay I'll try , thank you
7 replies
CC#
Created by luness on 2/12/2023 in #help
❔ System.IndexOutOfRangeException has been thrown"Index was outside the bounds of the array."
how do I fix it :/
7 replies
CC#
Created by luness on 2/7/2023 in #help
❔ Error message when trying to move direction for my tiles in a N-puzzle
Thank you !
44 replies
CC#
Created by luness on 2/7/2023 in #help
❔ Error message when trying to move direction for my tiles in a N-puzzle
I will definitely take your advice and try my best. I agree, we get taught too many different things in computer science. Thank you for your time and conversation my friend 🙂
44 replies
CC#
Created by luness on 2/7/2023 in #help
❔ Error message when trying to move direction for my tiles in a N-puzzle
there are always things to learn 🙂 btw do you have any tips for learning programming ? I started computer science in august last year but feel like I still can't very much
44 replies
CC#
Created by luness on 2/7/2023 in #help
❔ Error message when trying to move direction for my tiles in a N-puzzle
yeah, but very difficult for someone who's been programming like 4 months ;/
44 replies
CC#
Created by luness on 2/7/2023 in #help
❔ Error message when trying to move direction for my tiles in a N-puzzle
hahaha thanks but im not that good, maybe sometimes in the future 🙂
44 replies
CC#
Created by luness on 2/7/2023 in #help
❔ Error message when trying to move direction for my tiles in a N-puzzle
thank you man! I appreciate the help, not many people help me that good. Btw a quick question, if I dont want it to keep printing out the board everytime i move the tile, can I use console.clear();
44 replies
CC#
Created by luness on 2/7/2023 in #help
❔ Error message when trying to move direction for my tiles in a N-puzzle
Oh yeah its seems to be working as you say, when i remove the '1' in the value = v + 1; and just write it like value = v; its seems to be working fine
44 replies
CC#
Created by luness on 2/7/2023 in #help
❔ Error message when trying to move direction for my tiles in a N-puzzle
btw I had this class to but idk if you needed it using System; namespace N_Puzzle { public class Tile { public int value { get; set; } public string Color { get; set; }
public Tile(int v) { value = v+1 ;

} } }
44 replies
CC#
Created by luness on 2/7/2023 in #help
❔ Error message when trying to move direction for my tiles in a N-puzzle
uhm but when you try to run the code, is it a blank tile or a 0?
44 replies
CC#
Created by luness on 2/7/2023 in #help
❔ Error message when trying to move direction for my tiles in a N-puzzle
oh okaay
44 replies