Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/lexisvar/bulls-and-cows
- Owner: lexisvar
- Created: 2015-12-22T03:47:34.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2014-05-16T12:40:15.000Z (over 10 years ago)
- Last Synced: 2023-03-22T23:06:43.012Z (almost 2 years ago)
- Language: JavaScript
- Size: 1.29 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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