GithubHelp home page GithubHelp logo

fizzbuzz's Introduction

fizz buzz

This repository contains the following:

  • A dummy Node.js/TypeScript server that listens for Socket.IO connections on /chat.
  • React/TypeScript client boilerplate.

In order to start the project, make sure you have Node.js and npm installed, then run:

npm i
npm run dev

This will launch a webpack server on port 3000 and the backend service on port 3001. They can be run separately using npm run dev:client and npm run dev:server respectively. The webpack server proxies any WS request made to the port 3000 to port 3001.

Task

Use this repository for creating a chat based fizz buzz game. This can be divided into two parts:

Client

The client should consist of a chat window of your own design, perhaps using the included MUI component library. The client should connect to the server using Socket.IO, send any message the user enters and display any message the server responds with.

Server

The server should act as player of the fizz buzz game against the user that's using the client. For example, when the user starts the game by sending the message "1", the server should respond with "2". Since the user is the only actor that can lose this game (hopefully), the server should notify the player that he/she has lost. It should be possible to restart the game from the beginning.

The server should also keep track of a play session's high score which can be retrieved with a special command such as "!highscore" (by the user). The high score doesn't need to be persistent across sessions. However, if you feel like you have time left, feel free to add persistent high scores.


Feel free to install additional packages if you need to and don't hesitate to contact us if you encounter any issues.

fizzbuzz's People

Contributors

mightynerd 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.