https://github.com/mungell/game-lines
http://lines.experiments.gazanchyan.me/
https://github.com/mungell/game-lines
Last synced: 3 months ago
JSON representation
http://lines.experiments.gazanchyan.me/
- Host: GitHub
- URL: https://github.com/mungell/game-lines
- Owner: MunGell
- Created: 2015-01-12T08:19:41.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-28T17:47:24.000Z (over 9 years ago)
- Last Synced: 2025-02-25T19:06:04.071Z (4 months ago)
- Language: JavaScript
- Size: 395 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# (Color) Lines
This is a Javascript implementation of [Color Lines](https://en.wikipedia.org/wiki/Color_Lines) game
based on the code from [http://webhackers.ru/lines/](http://webhackers.ru/lines/).
This version is adaptive to smaller screens and can be used on mobile devices.## Rules
The player can move one ball per turn, and the player may only move a ball to a particular place if there is a path
(linked set of vertical and horizontal empty cells) between the current position of the ball and the desired destination.
The goal is to remove balls by forming lines (horizontal, vertical or diagonal) of at least five balls or crosses (could be diagonal as well) of the same colour.
If the player does form such figures of at least five balls of the same colour, the balls in them disappear,
and he/she gains one turn, i.e. he/she can move another ball.
If not, three new balls are added, and the game continues until the board is full.## Installation
You can install your own copy of this game with following commands:
```
$ npm install
$ bower install
$ gulp
```## ToDo
- Change cookies to local storage (for mobile app functionality)
- Improve README
- Add interface translations
- Incapsulate JS code modules
- Improve images + Add images for color-blind people (with numbers on the balls)