Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Create React skeleton for Create Your Own Adventure #56

Open
maoivy opened this issue Feb 18, 2020 · 2 comments
Open

Create React skeleton for Create Your Own Adventure #56

maoivy opened this issue Feb 18, 2020 · 2 comments

Comments

@maoivy
Copy link
Contributor

maoivy commented Feb 18, 2020

We have a hard-coded data structure written—now we have to write the React skeleton to test if anything needs to be modified.

A sort of component tree here: (might be a good idea to draw this out, with props and state too)

  • Main component for displaying either of these three views:
    • Intro page describing the situation
    • Stage page (while students are choosing)
      • Components for displaying each option
    • Overview page (shown at the end)
      • Components for displaying analysis of student choices
@ryaanahmed
Copy link
Member

@amy-lei @JusticeV452 @felixli5678 @ningerlei -- flagging this issue up to you, as your group is also doing a similar series-of-views kind of thing. Probably should communicate with @maoivy et al. on this team and reuse as much as possible between the two projects.

@Dylan-Weber
Copy link
Member

I've continued this on the cyoa-fleshing-out branch, starting with changing our decimal probabilities to percentages.

One problem I was unsure of how to deal with was the choice history. At the moment, we are displaying each choice in the form

Choosing to {option.text} has a {option.successFactor * 100}% chance of success.

This is good for most options, but options which have names like "Facebook" don't fit into this format well. Should we change it to
Choosing "{option.text}" has a {option.successFactor * 100}% chance of success.
or should we instead have different options change "Choosing to" to "Campaigning on" or some other prefix that specifically matches that option?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants