Game demo

Now that our app is ready, let's run it and enjoy the game. Press F5 and the game should be launched in the browser. This will work for both Visual Studio 2017 IDE and Visual Studio Code. Also, since we are running it in our local machine, both players will need to play it on the same machine for the time being. Once we deploy this game in Azure, players can browse the URL from their individual machines. We will see how we can publish an ASP.NET Core 2.0 app to Azure in a later chapter.

This is what the game registration UI looks like:

On clicking Register, the find opponent screen is displayed:

On clicking the Find Opponent Player button, if a registered player exists, the game starts and this is what the two-player game looks like:

If a player is not available, or you are the lone warrior registered to play, the following screen will be displayed:

We have developed a fully functional two-player Tic-Tac-Toe game, meeting all the requirement specifications. It's time to enjoy your very first ASP.NET Core 2.0 game powered by SignalR Core!

    ..................Content has been hidden....................

    You can't read the all page of ebook, please click here login for view all page.
    Reset