Skip to content

Commit

Permalink
Merge pull request #32 from treasure-chess/dev
Browse files Browse the repository at this point in the history
Add empty 0 slot
  • Loading branch information
pi0neerpat authored Dec 14, 2021
2 parents a21a851 + dea6181 commit 400d6fe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const {

| number | name | description | points |
| ------ | ------------------ | --------------------------------------------------- | ------ |
| 0 | Winner | Win a game | 2 |
| 0 | n/a | (empty achievement) | 0 |
| 1 | Player | Play a game | 1 |
| 2 | 750+ Winner | Win a game against opponent rated 750+ | 2 |
| 3 | Played 750+ | Play a game against opponent rated 750+ | 1 |
Expand Down Expand Up @@ -86,6 +86,7 @@ const {
| 34 | A Minor Problem | Capture all knights and bishops without losing any. | 5 |
| 35 | Mr. Marathon Man | Move king >20 times | 1 |
| 36 | Pawn Hoarder | Capture all pawns without losing any | 5 |
| 37 | Winner | Win a game | 2 |

### This one is for testing, and verifying the achievements

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@treasure-chess/chess-achievements",
"version": "0.1.1",
"version": "0.1.2",
"description": "Calculate chess achievements based on moves ",
"main": "src/index.js",
"scripts": {
Expand Down
12 changes: 6 additions & 6 deletions src/achievementsList.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
const list = [
{
number: 0,
name: 'Winner',
description: 'Win a game',
points: 2
},
{
number: 1,
name: 'Player',
Expand Down Expand Up @@ -220,6 +214,12 @@ const list = [
name: 'Pawn Hoarder',
description: 'Capture all pawns without losing any',
points: 5
},
{
number: 37,
name: 'Winner',
description: 'Win a game',
points: 2
}
];

Expand Down

0 comments on commit 400d6fe

Please sign in to comment.