An open API service indexing awesome lists of open source software.

https://github.com/divyanshu-rawat/a-react-game

A kuch bhi (Game) built using react.js
https://github.com/divyanshu-rawat/a-react-game

functional-programming reactjs

Last synced: 7 months ago
JSON representation

A kuch bhi (Game) built using react.js

Awesome Lists containing this project

README

          

## A Game built using react.js

[![Join the chat](https://img.shields.io/badge/gitter-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/divyanshu001)
[![Contact me on Codementor](https://cdn.codementor.io/badges/contact_me_github.svg)](https://www.codementor.io/divyanshurawat?utm_source=github&utm_medium=button&utm_term=divyanshurawat&utm_campaign=github)
[![Twitter URL](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/r46956)
[![DUB](https://img.shields.io/dub/l/vibe-d.svg?style=flat)](#)

[![Divyanshu](https://img.shields.io/badge/divyanshu-owner-brightgreen.svg?style=flat)](http://www.divyanshurawat.in)
[![Say Thanks!](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/divyanshu-rawat)
[![Build Status](https://travis-ci.org/divyanshu-rawat/JS-Testing.svg?branch=master)](https://travis-ci.org/divyanshu-rawat/JS-Testing)
[![NPM](https://img.shields.io/badge/npm-v3.10.10-blue.svg)](https://www.npmjs.com/package/npm)

##

### Live Application

[![Live Demo Here](https://img.shields.io/badge/website-up-orange.svg)](http://areactgame.surge.sh/)

##

#### Description

* When the game starts, you get a random number of stars between 1 and 9, and you have the set of numbers in the
bottom frame that you can use.
* You can select one or more numbers that would sum up to the value of the random stars.
The objective is to correctly use all the numbers here in the bottom frame. If you end up with a number of stars that has no possible correct combination, you get to redraw, which you can do five times.
* After that, if you still end up with a number of stars that has no possible correct combination out of all the remaining
numbers, then you lose the game.

##

#### Installation Instructions :grey_exclamation:

* Clone or download the repo. into any fresh temporary folder.

* Cd into that root folder you just cloned locally.

* Open terminal in the current folder and to install all dependencies type

```javascript
npm install
```

* Now typing

```javascript
nodemon server.js
```

* will start a server !

##

#### Package Manager Used (NPM)

* NPM is the default package manager for the JavaScript runtime environment Node.js.

##

#### Package.json (dependencies)

* For dependencies refer Package.json.

##

### Contributing

1. Create your **_branch_**: `git checkout -b my-new-feature`

2. **_Commit_** your changes: `git commit -m 'Add some feature'`

3. **_Push_** to the branch: `git push origin my-new-feature`

4. Send a **Pull Request**

5. **_Enjoy!_**

##

#### Examples

![alt tag](https://github.com/divyanshu-rawat/A-React-Game/blob/master/snapshots/correct_answer.png)

##

![alt tag](https://github.com/divyanshu-rawat/A-React-Game/blob/master/snapshots/wrong_answer.png)

##