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

Solved Lab #3681

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 25 additions & 25 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# Configuration for probot-stale - https://github.com/probot/stale

# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale: 30

# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels: []

# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
# onlyLabels:
# - TestLabel

# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
daysUntilClose: 2

# Label to use when marking as stale
staleLabel: stale

# Comment to post when marking as stale. Set to `false` to disable
markComment: >
This pull request has been automatically marked as stale because it didn't have any recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
closeComment: >
This pull request is closed. Thank you.
# Configuration for probot-stale - https://github.com/probot/stale
# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale: 30
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels: []
# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
# onlyLabels:
# - TestLabel
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
daysUntilClose: 2
# Label to use when marking as stale
staleLabel: stale
# Comment to post when marking as stale. Set to `false` to disable
markComment: >
This pull request has been automatically marked as stale because it didn't have any recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
closeComment: >
This pull request is closed. Thank you.
46 changes: 23 additions & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
name: Automated Testing
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Load code
uses: actions/checkout@v2
- name: Prepare environment
uses: actions/setup-node@v2
with:
node-version: '14'
check-latest: true
- name: Install dependencies
run: npm i
- name: Run tests
run: npm run test -- --ci --reporters=default --reporters=jest-junit
- name: Reports the results of tests
uses: IgnusG/[email protected]
if: always()
with:
access-token: ${{ secrets.GITHUB_TOKEN }}
run-name: test
name: Automated Testing
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Load code
uses: actions/checkout@v2
- name: Prepare environment
uses: actions/setup-node@v2
with:
node-version: '14'
check-latest: true
- name: Install dependencies
run: npm i
- name: Run tests
run: npm run test -- --ci --reporters=default --reporters=jest-junit
- name: Reports the results of tests
uses: IgnusG/[email protected]
if: always()
with:
access-token: ${{ secrets.GITHUB_TOKEN }}
run-name: test
14 changes: 7 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
node_modules
.DS_Store
.vscode
package-lock.json
yarn.lock
*.log
lab-solution.html
node_modules
.DS_Store
.vscode
package-lock.json
yarn.lock
*.log
lab-solution.html
222 changes: 111 additions & 111 deletions DATA.md
Original file line number Diff line number Diff line change
@@ -1,111 +1,111 @@
# Clue data

Use this data to model your game cards into objects.

<br>

### Suspects

```
mrGreen
firstName: Jacob
lastName: Green
occupation: Entrepreneur
age: 45
description: He has a lot of connections
image: https://pbs.twimg.com/profile_images/506787499331428352/65jTv2uC.jpeg
color: green
```

```
drOrchid
firstName: Doctor
lastName: Orchid
occupation: Scientist
age: 26
description: PhD in plant toxicology. Adopted daughter of Mr. Boddy
image: http://www.radiotimes.com/uploads/images/Original/111967.jpg
color: white
```

```
profPlum
firstName: Victor
lastName: Plum
occupation: Designer
age: 22
description: Billionaire video game designer
image: https://66.media.tumblr.com/ee7155882178f73b3781603f0908617c/tumblr_phhxc7EhPJ1w5fh03_540.jpg
color: purple
```

```
missScarlet
firstName: Kasandra
lastName: Scarlet
occupation: Actor
age: 31
description: She is an A-list movie star with a dark past
image: https://www.radiotimes.com/uploads/images/Original/111967.jpg
color: red
```

```
mrsPeacock
firstName: Eleanor
lastName: Peacock
occupation: Socialité
age: 36
description: She is from a wealthy family and uses her status and money to earn popularity
image: https://metrouk2.files.wordpress.com/2016/07/mrs-peacock.jpg
color: blue
```

```
mrMustard
firstName: Jack
lastName: Mustard
occupation: Retired Football player
age: 62
description: He is a former football player who tries to get by on his former glory
image: https://static.independent.co.uk/s3fs-public/thumbnails/image/2016/07/04/08/unspecified-3.jpg
color: yellow
```

<br>

### Weapons

```
name: rope --- weight: 10
name: knife --- weight: 8
name: candlestick --- weight: 2
name: dumbbell --- weight: 30
name: poison --- weight: 2
name: axe --- weight: 15
name: bat --- weight: 13
name: trophy --- weight: 25
name: pistol --- weight: 20
```

<br>

### Rooms

```
name: Dining Room
name: Conservatory
name: Kitchen
name: Study
name: Library
name: Billiard Room
name: Lounge
name: Ballroom
name: Hall
name: Spa
name: Living Room
name: Observatory
name: Theater
name: Guest House
name: Patio
```
# Clue data
Use this data to model your game cards into objects.
<br>
### Suspects
```
mrGreen
firstName: Jacob
lastName: Green
occupation: Entrepreneur
age: 45
description: He has a lot of connections
image: https://pbs.twimg.com/profile_images/506787499331428352/65jTv2uC.jpeg
color: green
```
```
drOrchid
firstName: Doctor
lastName: Orchid
occupation: Scientist
age: 26
description: PhD in plant toxicology. Adopted daughter of Mr. Boddy
image: http://www.radiotimes.com/uploads/images/Original/111967.jpg
color: white
```
```
profPlum
firstName: Victor
lastName: Plum
occupation: Designer
age: 22
description: Billionaire video game designer
image: https://66.media.tumblr.com/ee7155882178f73b3781603f0908617c/tumblr_phhxc7EhPJ1w5fh03_540.jpg
color: purple
```
```
missScarlet
firstName: Kasandra
lastName: Scarlet
occupation: Actor
age: 31
description: She is an A-list movie star with a dark past
image: https://www.radiotimes.com/uploads/images/Original/111967.jpg
color: red
```
```
mrsPeacock
firstName: Eleanor
lastName: Peacock
occupation: Socialité
age: 36
description: She is from a wealthy family and uses her status and money to earn popularity
image: https://metrouk2.files.wordpress.com/2016/07/mrs-peacock.jpg
color: blue
```
```
mrMustard
firstName: Jack
lastName: Mustard
occupation: Retired Football player
age: 62
description: He is a former football player who tries to get by on his former glory
image: https://static.independent.co.uk/s3fs-public/thumbnails/image/2016/07/04/08/unspecified-3.jpg
color: yellow
```
<br>
### Weapons
```
name: rope --- weight: 10
name: knife --- weight: 8
name: candlestick --- weight: 2
name: dumbbell --- weight: 30
name: poison --- weight: 2
name: axe --- weight: 15
name: bat --- weight: 13
name: trophy --- weight: 25
name: pistol --- weight: 20
```
<br>
### Rooms
```
name: Dining Room
name: Conservatory
name: Kitchen
name: Study
name: Library
name: Billiard Room
name: Lounge
name: Ballroom
name: Hall
name: Spa
name: Living Room
name: Observatory
name: Theater
name: Guest House
name: Patio
```
Loading