Some of the robot's actions can be automatically done: buying the most expensive private railway in stock rounds, and the SBB purchasing a train at the end of a pair of operating rounds. These are both implemented with auto-actions.
The track-laying actions require a player to choose which tile to place.
Before clicking "Create"
[x] Branch is derived from the latest master
~Add the pins or archive_alpha_games label if this change will break existing games~
[x] Code passes linter with docker compose exec rack rubocop -a
[x] Tests pass cleanly with docker compose exec rack rake
Implementation Notes
Explanation of Change
This adds code for the robot variant for 1858 Switzerland. This variant is for two players only, it adds a robot third player.
Rules for this variant are here: https://github.com/tobymao/18xx/wiki/1858-Switzerland#robot-two-players-only.
Some of the robot's actions can be automatically done: buying the most expensive private railway in stock rounds, and the SBB purchasing a train at the end of a pair of operating rounds. These are both implemented with auto-actions.
The track-laying actions require a player to choose which tile to place.
Before clicking "Create"
master
pins
orarchive_alpha_games
label if this change will break existing games~docker compose exec rack rubocop -a
docker compose exec rack rake