https://github.com/programmatix/nonograms
An implementation of the puzzle game Nonograms, in Scala, transpiled to Javascript with ScalaJS.
https://github.com/programmatix/nonograms
Last synced: 11 months ago
JSON representation
An implementation of the puzzle game Nonograms, in Scala, transpiled to Javascript with ScalaJS.
- Host: GitHub
- URL: https://github.com/programmatix/nonograms
- Owner: programmatix
- Created: 2018-02-04T11:52:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-05-10T17:58:50.000Z (about 4 years ago)
- Last Synced: 2025-05-07T12:19:26.640Z (about 1 year ago)
- Language: Scala
- Size: 102 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nonograms
An implementation of the puzzle game Nonograms, in Scala.
The engine is completely immutable, and all components are nicely separated with no strong binding between UI and game logic.
There is a web UI, produced by transpiling Scala UI logic into Javascript with ScalaJS.
## Status
Playable.
Update: due to some missing code, probably not checked-in and now lost, the game is runnable but not playable - e.g. mouse clicks will not do anything.
The solver AI is coming along and can find a solvable 10x10 puzzle usually given 20 random boards or less, but it could be a lot smarter.
## Usage
Clone the project.
```sbt fastOptJS```
Then open src/main/resources/www/html/index.html in Chrome. You should see a display like this:

## Deploying to Personal Site
(These instructions are just for me)
```
sbt fullOptJS
cp src/main/resources/www/css/nonograms.css ../www/hugo/static/css
cp target/scala-2.12/nonograms-opt.js ../www/hugo/static/js/
```