othello game

public override async Task<(int x, int y)> RequestMove(GameBoard board, List<(int x, int y)> validMoves)
{
/* while (the user hasn't made a valid move)

request a valid move from the user

end while

save the move as x and y
return x and y

*/
}
public override async Task<(int x, int y)> RequestMove(GameBoard board, List<(int x, int y)> validMoves)
{
/* while (the user hasn't made a valid move)

request a valid move from the user

end while

save the move as x and y
return x and y

*/
}
3 Replies
Merineth 🇸🇪
I'm trying to implement this method but i'm so goddamn lost https://github.com/aljomatrix/Assignment2Repository Essentially In order i'm trying to make it - Await a click on the GameGrid - Save the clicks coordinates - Return the coordinates
sibber
sibber•2mo ago
console? oh oops i forgot there were tags so what does "requesting a valid move" look like?
Mąż Zuzanny Harmider Szczęście
Stack Overflow
Wait till user click C# WPF
I want to create a button in a WPF window that, when clicked, waits for the user to click on the window and acquires the location of the click. Once the location is acquired, the program will conti...

Did you find this page helpful?