Skip to content

Volue/training-circle-square

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

training-circle-square

This is repository source for training excercise

What You get:

  • Simple backend based on SignalR
  • Simple frontend based on RiotJS and SignalR

Board field id map:

1 2 3
a a1 a2 a3
b b1 b2 b3
c c1 b3 c3

What we expect from You:

  • Setting fields to O or X on click
  • Implementation of end game rules:
    • Three same symbols (O or X) in column ends game
    • Three same symbols (O or X) in row ends game
    • Three same symbols (O or X) in diagonal line ends game
  • Showing whos has won (O or X)
  • Lock OX fields on victory or draw
  • "New Game" functionality
  • Showing whos turn to move it is now (O or X)

Nice to have:

  • UnitTests
  • Counter of OX victories visible on frontend

Running backend

  • Open ./backend/Training.CircleSquareGame.sln
  • Build and run Debug

Running frontend

Pointers:

  • On backend Your work should start with looking at XOHub.cs
  • On frontend all actions related to messages are implemented in index.js
  • On frontend all components have extension *.riot
  • On frontend all components are attached to appState
  • On frontend all componets can invoke SignalR functions by calling this.hub

Links:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published