https://github.com/note/kloc-the-game
https://github.com/note/kloc-the-game
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/note/kloc-the-game
- Owner: note
- Created: 2013-05-25T12:26:15.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2016-10-14T18:51:33.000Z (over 9 years ago)
- Last Synced: 2025-05-04T01:32:08.992Z (about 1 year ago)
- Language: JavaScript
- Size: 1.36 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kloc The Game
[](https://travis-ci.org/note/kloc-the-game)
# About project
This project was intended to be implementation of the "kloc" - variation of chess. For now just chess logic has been implemented.
# How to run
## Prerequisites
SBT installed. More in [installation guide] (http://www.scala-sbt.org/0.13/docs/Setup.html).
## Running project
To run:
```bash
sbt web/run
```
This command starts server listening at `localhost:9000`.
## Running tests
To run all tests:
```bash
sbt test
```
To run only chess logic tests:
```
sbt rules/test
```
To run web (both frontend and backend) tests:
```
sbt web/test
```
Mind that javascript tests will run on rhino (JVM's javascript implementation). If you want to run tests inside browser then:
```
sbt web/jasmineGenRunner
```
This command's result is a path to file. If you enter returned file in browser you'll be able to run tests in browser.
## Tips and tricks
You can run all sbt commands in sbt console. So instead of `sbt web/test` you can open sbt console with `sbt` and then
run abitrary sbt commands (`web/test` in that case). That way sbt is initialized just once.