Enhanced port of NoGardenPuzzle to the reflex(-dom) FRP framework for running directly in the web browser.
The goal is to fill the rectangular game field with horizontal and vertical lines, such that each line starts and ends "outside" of the field. A started line extends in a straight manner until it hits a blocked tile or the outside. In the former case, the line must be continued in either possible direction.
The project is built with reflex-platform
's Nix toolchain.
Choose the appropriate section:
Just run make
.
For deployment, you might want to optimize the huge javascript file.
To do this with google's closure-compiler
, you can run make minify
.
You almost certainly want to use the Nix binary cache at reflex-frp.org
.
In order to do so, either add the cache and key manually as described
here (only step 2),
or let the reflex-platform/try-reflex
script patch your Nix config (see also next section).
Then simply run make
.
Nix is a tool that takes a unique approach to package management and system configuration. Learn how to make reproducible, declarative and reliable systems.
— from its homepage https://nixos.org/.
If you can get Nix through the package manager of your operating system, you might prefer to do so and continue with the previous section.
Otherwise, you can have reflex-platform
install Nix for you.
-
Warning: The following requires root permissions and installs Nix system wide. If you don't want this, you may consider alternatives.
-
Clone this repo with
--recurse-submodules
or – if you already cloned it without – initialize thereflex-platform
submodule viagit submodule update --init
. -
Run
reflex-platform/try-reflex
, which should offer you to install Nix. It also sets up Nix binary caches (or asks if it should in case you already have Nix installed). -
After it finished, quit the new shell it opened.
Now, you can build this project.