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

Solo Game #881

Closed
wants to merge 62 commits into from
Closed

Solo Game #881

wants to merge 62 commits into from

Conversation

sgfost
Copy link
Contributor

@sgfost sgfost commented Aug 4, 2023

Adds the implementation of a solo game mode as described in #856

TODO:

  • finish game ui styling
  • add missing game ui elements (event modals, etc.)
  • add game server/command unit tests

Tkawamura02 and others added 30 commits May 26, 2023 11:51
Co-authored-by: saachibm <saachibm@users.noreply.github.com>
Co-authored-by: sabrinanel3 <sabrinanel3@users.noreply.github.com>
Co-authored-by: sgfost <sgfost@users.noreply.github.com>
Co-authored-by: sabrinanel3 <sabrinanel3@users.noreply.github.com>
Co-authored-by: sabrinanel3 <sabrinanel3@users.noreply.github.com>
Co-authored-by: sabrinanel3 <sabrinanel3@users.noreply.github.com>
…k card entities

refactor: minor changes to solo game treatment

Co-authored-by: sabrinanel3 <sabrinanel3@users.noreply.github.com>
TODO:
- implement service layer for persistence, recovery(?), and retrieval

ref virtualcommons#856
caused a loop that wouldn't let the container start up properly, yarn
install is ran from the Dockerfile
- minor renaming
- add types
- fix issues/refactor in the game logic commands
state is currently local to the component, we should reorganize the
single vuex store we have currently (split up game and anything else)
and then add a new SoloGame store
- add fixtures for game treatments and event cards
- add service methods for persisting game data and drawing cards/picking
  treatments
- reworked solo game entities
- (re-)add migration for solo game data model

ref virtualcommons#856
add link to nav bar, which should probably have a better name
Co-authored-by: sgfost <sgfost@users.noreply.github.com>
finalization (updatePlayerPoints) would throw an error since gameId was
not set on the solo_player
Co-authored-by: sgfost <sgfost@users.noreply.github.com>
Co-authored-by: sabrinanel3 <sabrinanel3@users.noreply.github.com>
Co-authored-by: Tiffany Kawamura <Tkawamura02@users.noreply.github.com>
sgfost and others added 3 commits August 4, 2023 08:48
Co-authored-by: sabrinanel3 <sabrinanel3@users.noreply.github.com>
Co-authored-by: Tiffany Kawamura <Tkawamura02@users.noreply.github.com>
@sgfost sgfost added the enhancement New feature or request label Aug 4, 2023
layout should enforce max sizes for individual components to prevent
ones with more content from flexing too much
sabrinanel3 and others added 20 commits August 10, 2023 11:15
- fix DSEG font

Co-authored-by: Tiffany Kawamura <Tkawamura02@users.noreply.github.com>
server waits a few seconds after investment before setting up a new
round and the client now has access to `isRoundTransitioning` when this
is taking place

ref virtualcommons#882
run with `make test-server tests="sologame"`
- correct the logic for selecting 'played' treatments
- select treatments from the available 12 instead of creating new ones
- persist round in a seperate command before either setting a new round
  or ending a game to ensure the last round gets persisted correctly
needed to clear the clock timeout
missing metadata needed for normalizing scores/analysis

[no ci]
- for the first 12 treatments, go in order
- correctly store max round when creating a game
- display 0 points in the gameover screen for a defeat
- always show 0 in the number display component when the value is 0
@sgfost
Copy link
Contributor Author

sgfost commented Oct 3, 2023

superseded by #895

@sgfost sgfost closed this Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

One player game
4 participants