Othello game invalid move
i have written an othello game but everytime i click a tile it says invalid move: {8,8} even if i dont click tile 8,8 and i dont know what is wrong.
https://github.com/waal22el/Othello2
GitHub
GitHub - waal22el/Othello2
Contribute to waal22el/Othello2 development by creating an account on GitHub.
5 Replies
in GameGrid.xaml.cs on like 41, the row,col is captured via a closure, you want to make a copy of them first and use the copy instead
ohh okay i see
hmm now i get this when i pressed something
well, you have the stack trace so you can figure out where it's called from and why player is null
okay i have fixed those problems but when i run it player 2 never get their turn its only player 1 that gets to play