Giter VIP home page Giter VIP logo

tictactoe's Introduction

TicTacToe

a .Netcore modular application

TicTacToe Application: A TicTacToe is a boardgame, played by 2 players at a time. A player who selects three consecutive numbers in the board wins the game.

Setup:

This is a .NetCore Console application. It inculdes injecting requried services through Dependency Injection. XUnit test is writter for the methods.

What's Special:

Main focus of this project is to develop a modular code so that it will be easy to reuse the components. Interface like

  1. IGameMove has methods to respond according to user input i.e. refresh Userinterface after every input.
  2. IGame has methods to accepts user input, validate it and proceed to next step.
  3. IGameConsole has methods which are common in nature like setting initial values etc.
  4. IGameConsole has methods which are used to display response after user input, which is useful to expand the project into webapplication if requried. ( For example right now this is a console output project if we want to convert this into a webapplication then we need to just create a class which converts output value into JSON and provide to the consumer.)

How it works :

Player 1: selects a number then system displays the selection. Player 2: selects a number then system displays the selection. This process continues till one of the player selects three numbers in a row or column or diagonally. Game can be won by a player of be a Draw.

Roles:

Player-1, Player-2, backen code displays the player choice of number.

tictactoe's People

Contributors

karthiknanchari avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.