1. Jan 20, 2023
  2. Jan 18, 2023
    • Léa Narzis's avatar
      Complete Translation (#44) · 067e3e57
      Léa Narzis authored
      In the wake of proposing international workshops, the content
      translation has been completed :
      - Add Language Selector on the forming page 
      - Add Game Rules Translation for the 3 languages
      067e3e57
  3. Jan 17, 2023
  4. Jan 13, 2023
  5. Jan 12, 2023
  6. Jan 10, 2023
    • Alexander Theißen's avatar
      Change scoring (#35) · c529755a
      Alexander Theißen authored
      Previous scoring formula that assigned bonus points based on gas usage
      was confusing. Now:
      
      - One point per painted field.
      - There is a overall gas limit a contract can use.
      - Specified per round on game construction. The overall budget for all
      rounds per player is derived from that parameter.
      
      Can be set to some fraction of the gas consumed of the basic player per
      round. Only a fraction so that not every block a turn must be submitted
      in order to win. Try `500_000_000` (500 us). The less rounds you play
      the closer it needs to be to the actual usage to allow for actual turns.
      
      For the UI nothing much changes. I recommend displaying gas left instead
      of gas used per player in the player list. Can be calculated by querying
      the new `gas_limit` function of the contract and subtracting the used
      gas of the player from it.
      c529755a
  7. Jan 09, 2023
  8. Jan 07, 2023
  9. Jan 06, 2023
    • Sam Ruberti's avatar
      Update tutorial (#33) · af79fb15
      Sam Ruberti authored
      * Add Setup tutorial
      * Add beginner's workshop tutorial
      
      I will chat with Lauren tomorrow about what we can do for an advanced
      workshop. There are a bunch of additional ink! Macros we can explore.
      af79fb15
  10. Jan 04, 2023
    • Alexander Theißen's avatar
      Account for LangError (#31) · 520e6f5d
      Alexander Theißen authored
      The new ink! beta wraps cross contract calls into a `Result<T,
      LangError>`. Our low level cross contract call didn't account for that
      and hence failed to decode the `Turn`. It just decoded garbage which
      then turned out to be out of bounds.
      
      @xermicus You need to make sure that your handwritten sol contract wraps
      the value as to game expects this after this PR is merged. `Option` just
      prepends one byte (0=None, 1=Some).
      520e6f5d
    • Sam Ruberti's avatar
      Update game state on each block (#30) · 007c218a
      Sam Ruberti authored
      007c218a
  11. Dec 27, 2022
  12. Dec 15, 2022
  13. Nov 23, 2022
  14. Nov 21, 2022
    • Sam Ruberti's avatar
      Sr/sound (#26) · 5f4c382c
      Sam Ruberti authored
      * Add UI changes
      * Add Contract Events
      * Add Notifications for contract calls
      * Add Sound for event types
      * Add game tracks
      - mp3s are committed to this branch. Netlify will host them on deploy,
      but I'm happy to use a centralized storage system if we have one...
      
      (Sorry for the huge PR)
      5f4c382c
  15. Nov 15, 2022
  16. Nov 11, 2022
    • Alexander Theißen's avatar
      Add more events (#23) · 283ba549
      Alexander Theißen authored
      Fixes #20 
      
      We can't add an event for scoreboard changes. The contract is not
      stateful with regard to the scoreboard and shouldn't be. If this should
      be accomplished the Dapp needs to implement it by polling for a specific
      game it is watching.
      
      Also changes `(u32, u32)` to a `struct Field { x, y }` everywhere. They
      are SCALE compatible so ABIs won't break. Could still break the
      frontend. @DoubleOTheven Can you check if your Dapp still works with
      this new contract?
      283ba549
  17. Nov 09, 2022
  18. Oct 27, 2022
  19. Oct 26, 2022