Why does this code give two different outputs for (what appears to be) the same inputs?
问题 I'm trying to program some AI for a game of checkers. My program is saying there are 0 moves for the white player, even though I know there are. The GetValidMoves() function is tested, and works in other areas of the code. To try and isolate the program I saved out the problematic board-state then loaded it back up to see if I would get the same problem: using(Stream s = File.Open("board.dat", FileMode.Create)) { var bf = new BinaryFormatter(); bf.Serialize(s, board); } Debug.WriteLine(board