Skip to content

Commit

Permalink
Merge pull request #4 from lGrom/board-abstraction
Browse files Browse the repository at this point in the history
Support for pre-existing ships
  • Loading branch information
lGrom committed Jan 27, 2024
2 parents a0d6ec4 + ddaa180 commit 4688b45
Show file tree
Hide file tree
Showing 13 changed files with 541 additions and 304 deletions.
10 changes: 10 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
extends: [
'standard'
],

rules: {
indent: ['error', 4],
semi: ['error', 'always']
}
};
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
TODO:
- [X] functions to get surrounding ships
- [X] make it playable (left/right click functions)
- [ ] add support for pre-existing ships
- [X] add support for pre-existing ships
- [ ] make setShip accept playtypes as well as ship objects
- [ ] make graphical types auto-compute
- [ ] make an automatic solver
- [ ] make a solvable board generator with with options for difficulty and guess and check
Expand Down
220 changes: 199 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
"react-app/jest",
"eslint:recommended"
]
},
"browserslist": {
Expand All @@ -33,10 +34,15 @@
]
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"jest": "^27.5.1",
"@babel/plugin-proposal-private-property-in-object": "^7.21.11"
"eslint": "^8.56.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.1.1",
"jest": "^27.5.1"
}
}
Loading

0 comments on commit 4688b45

Please sign in to comment.