ElectricTortoise
ElectricTortoise
CC#
Created by ElectricTortoise on 3/27/2025 in #help
✅ Random help
How do I get a random ulong out of Random.Next()? Random.NextInt64() seems to actually only give a random 63-bit number
61 replies
CC#
Created by ElectricTortoise on 3/25/2025 in #help
scope of a for loop
what is the scope of i in for (int i = 0; i < Length; i++) { }? does it only exist within the for loop? if i want i to be used outside, i need this right?
i = x
for (int i = 0; i < Length; i++) { }
i = x
for (int i = 0; i < Length; i++) { }
this would break?
for (int i = 0; i < Length; i++) { }
x = i
for (int i = 0; i < Length; i++) { }
x = i
171 replies
CC#
Created by ElectricTortoise on 3/16/2025 in #help
How to implement code for a Client to invoke a command from the command line
No description
10 replies
CC#
Created by ElectricTortoise on 3/13/2025 in #help
✅ fork vs clone in git
how are they different? ive read some stuff online but i still dont get it
9 replies
CC#
Created by ElectricTortoise on 3/7/2025 in #help
ref vs out
How are they different
27 replies
CC#
Created by ElectricTortoise on 2/19/2025 in #help
What affects the speed of my code?
My code is searching a game tree and I'm trying to figure out why it is so slow using the profiler. Do I look at CPU or memory or GC? I was told that heap allocation is bad as my game tree is huge and constantly cloning heap memory will slow me down significantly.
46 replies
CC#
Created by ElectricTortoise on 2/19/2025 in #help
✅ How do I interpret profiler results?
No description
5 replies
CC#
Created by ElectricTortoise on 2/3/2025 in #help
✅ Deep copy struct
No description
90 replies
CC#
Created by ElectricTortoise on 1/20/2025 in #help
✅ how do i read a global variable
No description
80 replies
CC#
Created by ElectricTortoise on 12/20/2024 in #help
Why is the struct allowed but the class isn't?
No description
42 replies