βœ… Othello game

boardState[3, 3] = Disk.White;
boardState[3, 4] = Disk.Black;
boardState[4, 3] = Disk.Black;
boardState[4, 4] = Disk.White;
boardState[3, 3] = Disk.White;
boardState[3, 4] = Disk.Black;
boardState[4, 3] = Disk.Black;
boardState[4, 4] = Disk.White;
Hi. When it comes to line 40 in my GameWindow.xaml.cs i expect it to place the starting pieces for my othello game but for some reason nothing is updating. Does someone know why that might be the case?https://github.com/aljomatrix/Assignment2Repository
No description
7 Replies
Merineth πŸ‡ΈπŸ‡ͺ
Based on the boardstate[] we can clearly see that the correct tiles are populates with disks. I just don't get why nothing is visually showing?
Pobiega
Pobiegaβ€’3w ago
That seems related to your drawing code, not to the data setup itself
Merineth πŸ‡ΈπŸ‡ͺ
I'm not sure what you mean
Unknown User
Unknown Userβ€’3w ago
Message Not Public
Sign In & Join Server To View
Pobiega
Pobiegaβ€’3w ago
That, or its related to how your are reading the boardState. Essentially, the snippet you posted isn't the source of your error, as your debugging shows. I'd look at GameGridControl.UpdateBoard and follow from there
Unknown User
Unknown Userβ€’3w ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiXβ€’3w ago
If you have no further questions, please use /close to mark the forum thread as answered

Did you find this page helpful?