# We Are Super Team RoshJud!

---
# gitMission Impossible?

---
## Goals
### The goal was to build an interactive game using data from an API
---
## User Stories
- As a user I would like to be able to input my gitHub handle and see my avatar displayed on the app.
- As a user I would like to be able to be matched with a super-hero buddy.
- As a user I would like to be able to be assigned a mission to complete in collaboration with my super buddy.
---
- As a user I would like to be able to predict whether or not we will be able to complete the mission.
- As a user I would like to be able to keep score of my successful predictions.
---
## Wire Frame

---
## File Architecture

---
## It's not JavaScript!
```Javascript
const UserImage = () => {
const [userData, setUserData] = React.useState(null);
console.log("This is userData", userData);
const [gitHandle, setGitHandle] = React.useState();
return (
<div>
<h1>SuperGit</h1>
<form
onSubmit={event => {
event.preventDefault();
const url = `https://api.github.com/users/${gitHandle}`;
getUserDataGit(url).then(data => setUserData(data));
}}
>
<fieldset>
<legend>User</legend>
<label for="gitHandle"></label>
<input
placeholder="Enter user name"
type="text"
id="gitHandle"
name="gitHandle"
value={gitHandle}
onChange={event => setGitHandle(event.target.value)}
></input>
<input type="submit" value="submit"></input>
</fieldset>
{userData ? <img src={userData.avatar_url} /> : null}
</form>
</div>
);
};
export default UserImage;
```
---
# Random function
```javascript=
const randomTrueFalse = () => {
return Math.floor(Math.random() * (3 - 1 + 1) + 1);
};
const randomNumber = randomTrueFalse();
const userTrueFalse = [];
```
---

THANK YOU !
{"metaMigratedAt":"2023-06-15T03:29:31.219Z","metaMigratedFrom":"Content","title":"We Are Super Team RoshJud!","breaks":true,"contributors":"[{\"id\":\"8df6977e-0462-4cc9-98d6-4750e77012fd\",\"add\":606,\"del\":213},{\"id\":\"b4645149-fe35-4695-95c6-3355ab3f4fc8\",\"add\":2076,\"del\":13}]"}