Why the frick am I getting a System.IndexOutOfRangeException
or a System.NullReferenceException
here?
#471
Unanswered
Gammer0909
asked this question in
Q&A
Replies: 1 comment 2 replies
-
It is probably related to a missing in
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So I was building my chess bot, everything was going good (if a little stupid), but I noticed about the same spot every game the bots would draw due to repeating a move 3 times. I wanted to stop this, so I built a little system to check if the moves were previously played twice. I added this, then my code gave me a
System.NullReferenceException
, so I fixed what I thought was the problem, and then it gave me aSystem.IndexOutOfRangeException
. So I scrapped the "stop getting draws" idea to see if it would still work. It did not. I undid EVERYTHING i had done to make the Repetition Draw system, and it continues to flip flop betweenNullReferenceException
andIndexOutOfBoundsException
, for seemingly no reason. The line that the error "is on" constantly changes from 92, 101, 101 and then 50 and 106. Please help if you can.Code:
I really hope this is a dumb problem and not something that is completely wrong with the api or compiler or something big like that.
Beta Was this translation helpful? Give feedback.
All reactions