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

[example/turnip-town] Move package and README #13535

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Commits on Sep 23, 2024

  1. [example/turnip-town] Move package and README

    ...for turnip-town (the end-to-end simulation game example).
    
    Test Plan:
    
    New move unit tests:
    
    ```
    turnip-town/move$ sui move test
    ```
    amnn authored and damirka committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    34c50ef View commit details
    Browse the repository at this point in the history
  2. fixup: Address style comments

    amnn authored and damirka committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    4600a46 View commit details
    Browse the repository at this point in the history
  3. fixup: TransferPolicy for Deed

    + Reference `Display` for `Deed` in README.
    amnn authored and damirka committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    5f77bbb View commit details
    Browse the repository at this point in the history
  4. [Examples/Turnip Town] Rewrite to leverage Kiosk Apps

    This is an almost complete rewrite of the demo. Now, instead of
    demonstrating shared/permissioned access to a game between the game
    admin/service and the player, we are demonstrating a game that allows
    multiple players to interact with each other's resources.
    
    Additionally, instead of a "weather" dynamic, crops are watered by
    individuals, fetching water from a well that outputs a fixed quantity
    of water every epoch (it does not accumulate).
    
    The parameters of the game are now as follows:
    
    - Turnips need as much water as their size to stay fresh every day.
    - They can grow an additional 20 size units a day if given enough
      water (1 unit of water = 1 unit of growth).
    - Each player gets access to 100 units of water per day, via their
      well. Water must be used in the transaction it was fetched from the
      well -- it cannot be stockpiled.
    - If there is more than 100 units of additional water left, it is
      stagnant and the turnip will also lose freshness (it will rot).
    - Turnips need to grow to at least 50 units before they can be
      harvested.
    - Each player owns a field and a well. Only they can plant turnips on
      their field, and take water from their well.
    - Any player can water crops in anybody else's field, and any player
      can harvest crops as well, but harvested crops go to the field
      owner's Kiosk.
    
    New tests have been added for all these features -- test coverage for
    this package is 99.14%.
    amnn authored and damirka committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    5284167 View commit details
    Browse the repository at this point in the history
  5. Update README

    amnn authored and damirka committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    64ee7ec View commit details
    Browse the repository at this point in the history
  6. [examples] Turnip Town V2 (#19499)

    ## Description 
    
    New and shiny Turnip Town.
    
    ## Test plan 
    
    How did you test the new or updated feature?
    
    ---
    
    ## Release notes
    
    Check each box that your changes affect. If none of the boxes relate to
    your changes, release notes aren't required.
    
    For each box you select, include information after the relevant heading
    that describes the impact of your changes that a user might notice and
    any actions they must take to implement updates.
    
    - [ ] Protocol: 
    - [ ] Nodes (Validators and Full nodes): 
    - [ ] Indexer: 
    - [ ] JSON-RPC: 
    - [ ] GraphQL: 
    - [ ] CLI: 
    - [ ] Rust SDK:
    - [ ] REST API:
    damirka authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    f7cfae6 View commit details
    Browse the repository at this point in the history