Giter VIP home page Giter VIP logo

game-assignment's Introduction

Tic Tac Toe

Tic Tac Toe is a simple game consisting of a 3x3 grid in which players take turns making their mark (cross or circle) until either one player achieves a connected line of 3 marks or the board state prevents either player from achieving a line of 3 marks which results in a draw.

Technical requirements

  1. Node Js 13.11.0 with TypeScript (TS).
  2. React Js 17.0.2 with TypeScript (TS).

Structure

Detailed directory structure for both frontend and backend.

.
│
├── Backend                 # Contain All Back end Logic (Node Js)
│   ├── node_modules          
│   └── source         
│     ├── controllers           #contain all controller that is required to run applications
│     └── routes                # contains all routes of applications
│ 
└── Frontend             # Contain All Front End Design and Patterns (React With Type Script)
    ├── node_modules         
    ├── public         # Public folder contain all public resources
    └── src             #src contains all UI of applications
      └── components    #Contain all components
      └── hooks    #Contain api call and logic
      └── pages    #Contain all pages to render

Installation

git clone [email protected]:webexpert4rv/Game-Assignment.git

Port 6060 will be used for backend and 3000 for frontend. Please keep both port open and unused.

You have to change the api url in file Frontend/src/hooks/useLogic.ts on line number 4

http://localhost:6060/

For Backend you have to run following commad :

cd Game-Assignment/Backend
npm install 
npn run dev

For Frontend you have to run following commad :

cd Game-Assignment/Frontend
npm install 
npm start

Usage

Once you have set up the server run this url by changing the domain name.

http://<domain>:3000/

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

game-assignment's People

Contributors

webexpert4rv avatar

Watchers

James Cloos avatar  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.