othello game
i have made an othello game but the computerplayer does not make a move until i click one of the tiles when it should do i automaticly and i dont know whats wrong.
https://github.com/waal22el/othello-5
18 Replies
Your link doesn't work
Is it a private repo?
Yeah sorry it was it should work now
It's accessible but there is nothing there
Just .gitignore and .gitattributes
Do you understand GitHub? I see you've posted a few times and you've got multiple Othello repositories on your github profile. This is a class assignment right?
Yes it is I tried to post it but let me try again
GitHub
GitHub - waal22el/Othello-6
Contribute to waal22el/Othello-6 development by creating an account on GitHub.
does it work now?
You only added the solution file, no code
Oh sorry just seen you have another repo
No same issue with that one
You should use a single repository and push updates to it, ideally
I don’t really know how to do that, I don’t understand why it’s not working
When I go to post it it says your solution contains files outside the solution folder which will not be included
GitHub
GitHub - waal22el/Othello2
Contribute to waal22el/Othello2 development by creating an account on GitHub.
i tried to upadte this one but i dont know if it wroked
That page says you updated it an hour ago so it might be good, so long as you've pushed all relevant files
Okay do you have any idea why the computer player does not update its move until I press it?
I can't review the code yet but do you have a rough idea where the problem might be? Why do you think it should update it's move automatically and what do you mean by "automatically", immediately after your own move or something?
Yes if I am playing against a computer and make my move it updates after I have done it. The computer player then does the move but the grafics does not update until I click something. I have tried changing a bunch of stuff in the game manager but nothing works.
Cool, thanks, the description really helps understand intended behaviour
Oh no there's some git merge markers in some of your files so it's still not published correctly.
What is your familiarity with git or version control?
It is supposed to update by itself when it does the move which it does not do currently
I have like never used it so I am not familiar with it
You might want to make sure your code still works locally because it looks like your latest update to GitHub is a bit off then.
What sort of stuff have you tried? Sounds like the computer player successfully makes a move in the cod behind but it doesn't update the UI? From memory you might need to trigger some PropertyChanged event to trigger the UI to update after the game logic has run?
Yes okay I have NotifyGameGridUpdate, HandleNextTurn and OnTileClicked that I have tried changing many times but nothing seems to work