Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/lexisvar/bulls-and-cows

A Javascript version of bulls and cows with basic number guessing AI, written in Node.js, Sails and Angular
https://github.com/lexisvar/bulls-and-cows

Last synced: about 2 months ago
JSON representation

A Javascript version of bulls and cows with basic number guessing AI, written in Node.js, Sails and Angular

Awesome Lists containing this project

README

        

![Splash](https://raw.githubusercontent.com/clickbuster/bulls-and-cows/master/assets/images/github-splash.png)

### About this project
This is my humble effort to make a **Bulls and Cows game** by combining the forces of [Sails JS](http://sailsjs.org/) *(version 0.9.5)* and [Angular JS](https://angularjs.org/) *(version 1.2.16)*. The game allows the player to pick one of 5 game modes:

#### Single player vs the computer
* Play solo
* Co-op with bot
* Bot-only play

#### Multiplayer
* Player vs Player
* Co-op with Player vs the computer

### Number guessing proof-of-concept
The application includes an implementation of a number guessing mechanism, based on the concept of a reduced multitude of options. Basically you compare the results versus a list of possible options, until its reduced to a single number. To execute the proof-of-concept code, run the following command:

```
node proof-of-concept.js
```

### Requirements
In order to have persistent sessions, you need to configure a redis connection in `config/session.js`

### Installation
Node & NPM are a clear requirements for this one, but you'll also need Bower for the front-end stuff. To install bower run:

```
npm install -g bower
```

To install the game requirements, run from the project folder:

```
npm install
bower install
```

### Launching the game
Start the app using `./launch.sh` and then access it at `http://localhost:1337/`

### Credits
Thanks to [Martin Berube](http://www.how-to-draw-funny-cartoons.com/) for providing his royalty free vector icons, that are used for ingame.

### License
MIT License