Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1858Switzerland] Robot variant for two-players #11297

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Commits on Sep 1, 2024

  1. [1858Switzerland] Robot variant for two-players

    Adds a 1858 Switzerland variant, where there is a robot player and the
    SBB national railway added to the two-player game.
    
    The robot player acquires the most expensive available private railway
    company on its stock turns. It is always last in priority order.
    
    The robot-owned private railway companies must lay track in their home
    hexes in the operating turns. The players alternate choosing which tiles
    to lay, with the priority holder choosing for the first company.
    
    The SBB starts operating once the first train has been bought. It will
    upgrade one of the cities where it has a token (tile chosen by the
    priority holder in the first operating round of a set, and the other
    player in the second), and will acquire a train in the second operating
    round of a set. It does not run its trains.
    ollybh committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    b6f45cc View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2024

  1. [1858Switzerlad] Fix starting cash and cert limit for robot variant

    In the robot variant the starting cash and the certificate limit are the
    same as in a normal three-player game of 1858 Switzerland.
    ollybh committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    42f367d View commit details
    Browse the repository at this point in the history
  2. [1858Switzerland] Make method public

    The `home_route_complete?` is called from the track step, so needs to
    have public visibility.
    ollybh committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    26fac36 View commit details
    Browse the repository at this point in the history
  3. [1858Switzerland] Fix proxy players for robot-owned entities

    The code for handling which players act for entities owned by the robot
    was not working. This has been rewritten to override `acting_for_player`
    instead of `acting_for_entity`.
    ollybh committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    3632702 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cdf2a69 View commit details
    Browse the repository at this point in the history
  5. [1858Switzerland] Fix discard train step

    Companies with more trains than the train limit were not being forced to
    discard trains.
    ollybh committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    256b7c6 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2024

  1. [1858] Don't call a private method

    This guard clause wasn't necessary anyway.
    ollybh committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    f83b2eb View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2024

  1. Configuration menu
    Copy the full SHA
    a51371d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    258f236 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2024

  1. Configuration menu
    Copy the full SHA
    10887d3 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2024

  1. Configuration menu
    Copy the full SHA
    1f2ae5b View commit details
    Browse the repository at this point in the history