The Strategy games was the original motivation for the project, but the geometry and graphics library have far wider applicability. The geometry and graphics are far more developed, while the tiling and strategy games are still in a far more experimental stage. This is in accordance with the original vision, part of which was to explore the possibilities of an Algebra of Tiling.
I would welcome input from developers with greater experience and knowledge than my own. One of the goals of the project is to explore, where it is best to compose with trait / class inheritance and where to use functions. When to use mutation and when to use immutability. When to use smart, garbage collected heap based objects and when to use dumb data values. Balancing the competing priorities of elegance, succinctness, readability, run-time performance, compile time performance and accessibility for inexperienced programmers. I feel Scala is, and in particular Scala 3 will be the ideal language to explore these questions.
Scala currently set to 3.3.0. Jdk 11+, 11 preferred. Scala.Js set to 1.13.2. Scala native set to 0.4.14. Sbt currently set to 1.9.3 (uses the openstrat.sbt file). Note(probably due to the JavaFx dependency). Sbt will not work running on Windows in Git Bash. Update your Mill to 0.11.1.
sbtin bash from project's root folder.
~ Dev/reStartTo launch a ScalaFx window. The most useful command for development.
~ Util/testRerun tests on Util module.
~ Tiling/testRerun tests on Tiling module.
~ Dev/testRerun tests on, Dev module.
~ Util/test; Tiling/test; Dev/testRerun tests on Util module.
DocMain/docWill produce docs for all the main code in all the modules for the Jvm platform. They can be found in
bothDocWill perform both the above tasks.
~ tells sbt to rerun the command every time you modify and save a source file. The first command will build and launch a
ScalaFx window. It will rebuild and relaunch so you can immediately see the effects of your changes.Copy the
Dev/Misc/DevSettings.rson file to the
Dev/User folder. Creating the directory and its parents if
not already existing. Change the appStr setting in
Dev/User/DevSettings.rson to change the application. All the
examples on the richstrat.com website are available plus others.The second command will also rebuild on source changes in similar manner. However
unlike with the reStart command, when you make a source file edit and save it, you will have to manually refresh the browser window after the
fastOptJS command has finished the rebuild.
So at least recent versions of Kubuntu the java command on the path, is at
/usr/bin/java. It is a link to
/etc/alternatives/java. This is also a link. To install a different java, install the JDK root folder in
usr/lib/jvm. It doesn't have to be here, but it makes it easier to go with convention. Run
update-alternatives --config java
In my example this gives
So leave the number as it is, then add to alternatives. I put the number 3 at then end because in my case slots 0 to 2 are already taken.
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0_212/bin/java 3
sudo update-alternatives --config java