TAGC / AsyncRedux

AsyncRedux is a C# port of Redux that supports asynchronous action dispatch
MIT License
0 stars 0 forks source link

Implement end game detection logic for "chess" sample project #3

Open TAGC opened 6 years ago

TAGC commented 6 years ago

I've put together a basic chess console application to provide a practical demonstration of how this library can be used. Currently, the end game detection logic in Game.cs is placeholder, and it would be a good idea to implement the logic for that.

Specifically, Game.CheckGameOver(Board board, out Player? winner) should:

Ordinarily there would be test cases in place to validate the implementation. However, as this is an example project there are no test cases, as it's only used for demonstration purposes so it's not critical if there are a few bugs in it.

TAGC commented 6 years ago

I'll also need to update the game Complete logic to account for stalemates (currently it will only declare a game is complete if Winner is not null).

TAGC commented 6 years ago

Additional clarification:

Also, for the time being stalemate logic can be omitted.