This repository was archived by the owner on Feb 9, 2021. It is now read-only.
 
 
 - 
  Notifications
 
You must be signed in to change notification settings  - Fork 9
 
Starting v2 Features #17
 
  Closed
 
 
 
 
  Closed
 
 
 Conversation
 
 
 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
 Learn more about bidirectional Unicode characters
 
 
 
 
 The demo application and the book had diverged slightly. This commit should contain all the updates to the Platformer.elm file so that the demo follows the book content. And this will allow me to push some additional updates soon.
Not sure if it's a good idea to alias the Accounts module here since I think the contexts are separated for a reason. But the idea is to sum the player's total score whenever a new gameplay record is created.
This works for rendering all the gameplays, but the http://0.0.0.0:4000/api/gameplays endpoint still needs to be fixed so that it includes the game_id and player_id.
Got stuck pretty bad here for a while. The good news is it seems like a good start to be able to query for things like `player.games` and `player.gameplays` and `game.players` and `game.gameplays`. The schemas seem okay, but I was having a tough time figuring out how `cast_assoc`, `build_assoc`, and `put_assoc` work. In the current state, it looks like players and games are properly linked, but the gameplays get created without loading the associations properly.
 
 @bijanbwb
bijanbwb
 changed the title
(削除) Gameplay Scoring (削除ここまで)
(追記) Starting v2 Features (追記ここまで)
 Jan 13, 2018 
 
 This branch is now stale, but the features originally spiked out here were merged on the following PRs:
 
 Sign up for free
 to subscribe to this conversation on GitHub.
 Already have an account?
 Sign in.
 
 
 Add this suggestion to a batch that can be applied as a single commit.
 This suggestion is invalid because no changes were made to the code.
 Suggestions cannot be applied while the pull request is closed.
 Suggestions cannot be applied while viewing a subset of changes.
 Only one suggestion per line can be applied in a batch.
 Add this suggestion to a batch that can be applied as a single commit.
 Applying suggestions on deleted lines is not supported.
 You must change the existing code in this line in order to create a valid suggestion.
 Outdated suggestions cannot be applied.
 This suggestion has been applied or marked resolved.
 Suggestions cannot be applied from pending reviews.
 Suggestions cannot be applied on multi-line comments.
 Suggestions cannot be applied while the pull request is queued to merge.
 Suggestion cannot be applied right now. Please check back later.
 
 
 
 
many_to_manytohas_many)