Dev Module

The Dev module contains

  1. JavaFx application selection and developer settings for the different apps. Runnable jar
  2. Generates the HTML and CSS files for the website, including this file.
  3. Creates Servlets for Tomcat / Jetty Servers.

It currently works on JavaFx and web page. Using canvas on both platforms. See ../api/index.html Scala Docs and see Scala Docs for JavaScript target.

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.7.3. Jdk 11+, 21 preferred. Scala.Js set to 1.20.1. Scala native set to 0.5.8. Sbt currently set to 1.11.7 (uses the openstrat.sbt file). Note Sbt will not work running on Windows in Git Bash, probably due to the JavaFx dependency. Mill set to 1.0.6.

Run sbt in bash from project's root folder. From within the sbt console run:

The tilde ~ 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 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.

For JavaFx 3D set DevFx/reStart/mainClass:= Some("ostrat.pFx.App3D")

Intellij IDEA

sudo tar -xzf ideaIC-2025.2.3.tar.gz -C /opt
For IntelliJ useful options:
  • File => Editor => General -> Other -> tick Show quick documentation on mouse move.
  • File => 'Build, Execution, Deployment' => Compiler -> Build project automatically
  • Project-Pane => Options -> 'Flatten packages'

Git and Github

Set git user name git config --global user.name "MonaLisa" Check user name properly set git config --global user.name MonaLisa Set git email git config --global user.email "YourEmail" Check email properly set git config --global user.email YourEmail git config --global credential.helper store

JVMs

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 sudo update-alternatives --config java In my example this gives
Selection Path Priority Status
0 /usr/lib/jvm/java-25-openjdk-amd64/bin/java 2511 auto mode
1 /usr/lib/jvm/java-21-openjdk-amd64/bin/java 2111 manual mode
2 /usr/lib/jvm/java-25-openjdk-amd64/bin/java 2511 manual mode

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/java-17-openjdk-amd64/bin/java 3 then repeat sudo update-alternatives --config java

Chrome

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo apt install ./google-chrome-stable_current_amd64.deb If any errors appear about missing dependencies you may need to ‘force install. sudo apt -f install

Sublime Text 4

curl -fSsL https://download.sublimetext.com/sublimehq-pub.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/sublimehq-pub.gpg > /dev/null echo 'deb [signed-by=/usr/share/keyrings/sublimehq-pub.gpg] https://download.sublimetext.com/ apt/stable/' | sudo tee -a /etc/apt/sources.list.d/sublime-text.list sudo apt update sudo apt install sublime-text subl --version

Credits