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

Feature/counting progression #39

Merged
merged 45 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
a53f6fb
refactor: split apart generate positions script
Mar 12, 2024
4769270
feat: puzzle schema validation
Mar 13, 2024
5e2be4c
feat: puzzle validation runner
Mar 13, 2024
83dc853
fix: build errors
Mar 13, 2024
5b6bed4
fix: numeric input occasionally submits undefined
Mar 14, 2024
b4662ad
feat: increase diversity of counting puzzles
Mar 14, 2024
9f40d62
refactor: games -> puzzles
Mar 15, 2024
0c183d4
feat: add levels to puzzle generation
Mar 15, 2024
1078152
feat: SSR start screens
Mar 15, 2024
948ab80
feat: level progression
Mar 16, 2024
169a84b
fix: id param name incorrect
Mar 16, 2024
c5e347e
fix: 404 on level advancement
Mar 16, 2024
8c74388
feat: counting game level progressions
Mar 18, 2024
9b29423
feat: pull more games from Lichess
Mar 18, 2024
e578159
feat: casual progression in counting game
Mar 18, 2024
056ebef
fix: last highlight never reached
Mar 18, 2024
65a3fcd
chore: regenerate puzzles
Mar 18, 2024
32ed363
chore: remove accidental file checkin
Mar 18, 2024
64e5134
docs: persist todos
Mar 18, 2024
1031f94
docs: sort todo
Mar 18, 2024
f8e2c5c
fix: old name Tactical Elements still used
Mar 18, 2024
43248aa
docs: update todo
Mar 18, 2024
9d6111a
fix: knight game only mentions clicking single square
Mar 18, 2024
bdc269a
fix: number entry on non-number games
Mar 18, 2024
5ffe746
fix: clicking board in number guesser causes incorrect guess
Mar 18, 2024
f9513f6
fix: controls hard to notice
Mar 18, 2024
0ec32ac
fix: unable to start game over after death
Mar 19, 2024
bb51abf
docs: update TODO
Mar 19, 2024
d45d548
refactor: remove unused logic
Mar 19, 2024
774dffd
fix: non-obvious incorrect guess, score lost, health lost
Mar 20, 2024
7bd73d8
docs: update TODOs
Mar 20, 2024
01759de
feat: overlays between levels
Mar 20, 2024
8e20cd7
fix: delay before board recognizes click
Mar 20, 2024
0fb9e36
docs: add scopes to bug TODOs
Mar 20, 2024
3134850
feat: auto-generate site nav
Mar 20, 2024
1c6070b
refactor: tactical elements -> chess coven
Mar 20, 2024
a987f8f
fix(style): abrupt end to background
Mar 20, 2024
1477959
fix: chessboard does not shrink vertically
Mar 22, 2024
9a5dcf6
docs: update TODOs
Mar 22, 2024
8235adc
docs: update todos
Mar 25, 2024
c5356e8
fix(style): HUD not always visible
Mar 25, 2024
322d344
fix(style): wasted spance in game header
Mar 25, 2024
edd4463
fix(board): moves not canceled
Mar 26, 2024
01d89d0
refactor: remove memorizer game
Mar 26, 2024
63fedad
fix: build and lint errors
Mar 26, 2024
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
56 changes: 30 additions & 26 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,24 @@ const config = {
parserOptions: {
project: true,
},
plugins: [
"@typescript-eslint",
],
plugins: ["@typescript-eslint"],
extends: [
"next/core-web-vitals",
"eslint:recommended",
"plugin:jsx-a11y/recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:@cspell/recommended"
"plugin:@cspell/recommended",
"plugin:tailwindcss/recommended",
],
overrides: [
{
files: ["*.test.*"],
rules: {
"@cspell/spellchecker": "off",
},
},
],
overrides: [{
"files": ["*.test.*"],
"rules": {
"@cspell/spellchecker": "off",
}
}],
rules: {
// These opinionated rules are enabled in stylistic-type-checked above.
// Feel free to reconfigure them to your own preference.
Expand All @@ -43,23 +44,26 @@ const config = {
},
],
"@typescript-eslint/dot-notation": "off",
'@cspell/spellchecker': ['warn', {
checkIdentifiers: false,
cspell: {
ignoreWords: [
// Our Site Vernacular
"Chessground",
"Chessimprovia",
"chessperson",
"chesspersons",
"@cspell/spellchecker": [
"warn",
{
checkIdentifiers: false,
cspell: {
ignoreWords: [
// Our Site Vernacular
"Chessground",
"Chessimprovia",
"chessperson",
"chesspersons",

// Workarounds
"gtag",
"HLBR",
"ndjson",
]
}
}]
// Workarounds
"gtag",
"HLBR",
"ndjson",
],
},
},
],
},
};

Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts
/games.pgn

# Building puzzles and such
/generate-puzzles/build
/build

# Build files
*.pyc
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Tactical Elements
# Chess Coven

New kinds of Chess puzzles that focus on pattern recognition over what moves to play. Also includes a game memorizer tool/game to help my Chess Dojo siblings memorize their games.
New kinds of Chess puzzles that focus on pattern recognition and thought process over what move is best to play. Also includes tools to help my Chess Dojo.

[Live here](https://tactical-elements.danimal.app)
[Live here](https://chesscoven.com)
15 changes: 15 additions & 0 deletions TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ci: validate puzzles on push
feat(ux): exit button from incorrect guess
feat: detect improvement of worthy trades
feat: improved writing
feat: paranormal spotting anomaly game
feat: puzzle generators specify levels with buckets
feat: split captures and checks mini games
fix(game): No Solution does not show incorrect screen
fix(game): despite solution, knight game has no solution as answer
fix(game): number sometimes ignored on enter
fix(style): buttons have different styles
fix(style): site nav does not wrap
fix(ux): position of solutions non-obvious
refactor: externalize game logic
refactor: replace generic input to solution type specific
1 change: 1 addition & 0 deletions assets/opening-tree.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion assets/puzzles/checkables.json

This file was deleted.

2 changes: 1 addition & 1 deletion assets/puzzles/checks-captures.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/puzzles/counting.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion assets/puzzles/knight-forkables.json

This file was deleted.

1 change: 1 addition & 0 deletions assets/puzzles/knight-forks.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/puzzles/undefended.json

Large diffs are not rendered by default.

Loading
Loading