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

V0.8 #164

Merged
merged 69 commits into from
Jun 21, 2024
Merged

V0.8 #164

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
4c0351a
WIP: Add support for needs sealing markings
anoek Jun 3, 2024
a3bf2e3
Sealing logic working with our test cases
anoek Jun 5, 2024
ca2b00c
Integrate goscorer and update the stone removal phase code
anoek Jun 8, 2024
fa31fa5
Fixed up tests
anoek Jun 8, 2024
114d42d
Bump various npm deps
anoek Jun 8, 2024
26d91da
Bump typescript
anoek Jun 8, 2024
5d58d4d
Update score estimator to use goscorer
anoek Jun 8, 2024
17d3287
Remove GoStoneGroup unused code
anoek Jun 8, 2024
3c2503d
Fixed up tests for score estimator using goscorer
anoek Jun 8, 2024
0500e6e
Make stone removal in score estimation behave like in stone removal
anoek Jun 8, 2024
6b4162a
Fixed tests
anoek Jun 8, 2024
768297c
Remove false eyes from score estimates when using territory scoring
anoek Jun 9, 2024
efbd5d6
Remove old now unused toggleMetaGroupRemoval from GoEngine
anoek Jun 9, 2024
41987b9
Fix tests
anoek Jun 9, 2024
d51bebc
Add support for score marks in analysis and review mode
anoek Jun 10, 2024
0b0a369
Support marking dead stones in analysis and reviews
anoek Jun 10, 2024
e913023
Refactor: merge GoUtil.ts and Misc.ts -> util.ts
anoek Jun 11, 2024
d52116d
Refactor: add comments
anoek Jun 11, 2024
3f0c445
Refactoring common board and stone removal behavior to common base class
anoek Jun 11, 2024
5214b49
Refactor: GoStoneGroup -> StoneString
anoek Jun 11, 2024
5137008
Fix tests
anoek Jun 11, 2024
2c62b64
Refactor: Better stone string nomenclature
anoek Jun 11, 2024
093cd76
Rename test file
anoek Jun 11, 2024
68cf82b
Refactor: cleanup and comment
anoek Jun 11, 2024
ffd2c6d
Refactor: Moving generic board code from GoEngine to Board
anoek Jun 11, 2024
5a945a4
Comments
anoek Jun 12, 2024
a7b5a62
Refactor: Merged GoEngineState into BoardState
anoek Jun 12, 2024
0a0e8e9
Refactor: Specialize isobranch state for move tree, move matrix compa…
anoek Jun 12, 2024
c510809
Refactor: rename GobanCore autoScore to performStoneRemovalAutoScorin…
anoek Jun 13, 2024
2c6fbb0
Refactor: nomenclature normalization
anoek Jun 13, 2024
b6baf66
Add support for automatically marking scores in analysis mode, and cl…
anoek Jun 14, 2024
f9adeac
Refactor: beginning move to organize engine and front end code into s…
anoek Jun 14, 2024
0996329
Merge branch 'main' into scoring
anoek Jun 14, 2024
b97c0c9
Refactor: Move around a lot of files. Unify build and switch to using…
anoek Jun 14, 2024
b596780
Fix bundling locations for engine vs browser
anoek Jun 14, 2024
ff69f9e
Fixed up node packaging
anoek Jun 14, 2024
a698553
Refactor: File moving, split Goban into render base and light Goban i…
anoek Jun 15, 2024
3516319
Refactor: Split Goban functionailty into functionality layers
anoek Jun 15, 2024
48c18e8
Turn on noImplicitOverride's
anoek Jun 15, 2024
29c43ee
Refactor: Simplifying names for clarity
anoek Jun 15, 2024
faa2198
Refactor: Goban.Theme -> GobanTheme because typescript doesn't like t…
anoek Jun 15, 2024
90b75c7
Add missing file
anoek Jun 15, 2024
55589d2
Move test specific code to __tests__ directory, use jsdom environment…
anoek Jun 15, 2024
12cfbb8
Move unit tests to dedicated test directory
anoek Jun 15, 2024
269fec2
Add jest.config.ts to tsconfig.json
anoek Jun 15, 2024
f642ce5
Refactor: GoConditionalMove -> ConditionalMoveTree
anoek Jun 16, 2024
607ec5d
Fix path resolution for ts-node executed manual tests
anoek Jun 16, 2024
ee215d4
Refactor: coordinate nomenclature normalization
anoek Jun 16, 2024
bdaf3d2
Refactor: Split GoMath code into smaller util files
anoek Jun 16, 2024
8e4b17b
Refactor: GoEngine -> GobanEngine
anoek Jun 16, 2024
e94b499
Replaced suicide terminology with self capture
anoek Jun 16, 2024
721a5dc
Fixed analysis scoring mode to set by color if the existing color did…
anoek Jun 16, 2024
efa2456
Add mark stashing functions to MoveTree
anoek Jun 16, 2024
95203c5
Add code duplication detection npm/make target
anoek Jun 17, 2024
5d418ac
Code de-duplication
anoek Jun 17, 2024
7307ee8
Fixed typing for empty matrix creation
anoek Jun 17, 2024
9ac475b
Replaced makeStringMatrix with makeMatrix calls. Cleaned up colored s…
anoek Jun 17, 2024
5edab70
Move engine build before with-renderer builds for easier to scan erro…
anoek Jun 17, 2024
b6ee1a7
Code de-duplication
anoek Jun 17, 2024
334b469
Fixed analysis scores not being visible after a game was over
anoek Jun 17, 2024
39ddc6a
v0.8.0-beta.1
anoek Jun 17, 2024
9c12f61
Don't upload engine.js to our cdn, no need
anoek Jun 18, 2024
3bbc530
Fix blacking out blue move in our SVG renderer when hovering over the…
anoek Jun 18, 2024
3c0253d
Mark snapback locations as settled and don't touch them for autoscoring
anoek Jun 19, 2024
1e83e3c
Comments, fix autoscore test game fetcher script, include seal points…
anoek Jun 19, 2024
27da7f0
Add autoscore test case
anoek Jun 19, 2024
de97310
v0.8.0-beta.2
anoek Jun 19, 2024
a603762
Fix auto-score clicking toggling dead stones
anoek Jun 19, 2024
b8b5cce
v0.8.0-beta.3
anoek Jun 19, 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
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ module.exports = {
rules: {
"file-header": [
true,
"([Cc]opyright ([(][Cc][)])?\\s*[Oo]nline-[gG]o.com)|(bin/env)", // cspell: disable-line
"([Cc]opyright ([(][Cc][)]))|(bin/env)", // cspell: disable-line
],
"import-spacing": true,
"whitespace": [
Expand Down
9 changes: 8 additions & 1 deletion .vscode/cspell.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"words": [
"aabc",
"abcdefghjklmnopqrstuvwxyz",
"AILR",
"aireview",
Expand Down Expand Up @@ -61,6 +62,7 @@
"goban",
"Gobans",
"goquest",
"goscorer",
"groupify",
"Gulpfile",
"hane",
Expand Down Expand Up @@ -89,6 +91,7 @@
"kyus",
"Leela",
"lerp",
"lightvector",
"linebreak",
"localstorage",
"malk",
Expand Down Expand Up @@ -140,6 +143,7 @@
"shownotesindicator",
"Sitewide",
"slowstrobe",
"snapbacks",
"sodos",
"stdev",
"styl",
Expand Down Expand Up @@ -170,6 +174,7 @@
"unhighlight",
"unitify",
"Unranked",
"unscorable",
"unstarted",
"uservoice",
"usgc",
Expand All @@ -188,6 +193,8 @@
],
"language": "en,en-GB",
"ignorePaths": [
"test/autoscore_test_files"
"test/autoscore_test_files",
"src/goscorer",
"*.d.ts"
]
}
34 changes: 24 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,59 @@ SLACK_WEBHOOK=$(shell cat ../ogs/.slack-webhook)

all dev:
yarn run dev

build: lib types

lib: build-debug build-production types

build-debug:
yarn run build-debug

build-production:
yarn run build-production

types:
yarn run dts


lint:
yarn run lint

test:
yarn run test

detect-duplicate-code duplicate-code-detection:
yarn run detect-duplicate-code

doc docs typedoc:
yarn run typedoc

publish_docs: typedoc
cd docs && git add docs && git commit -m "Update docs" && git push

clean:
rm -Rf lib node

publish push: publish_npm upload_to_cdn notify
publish push: publish_npm publish_docs upload_to_cdn notify

beta: beta_npm upload_to_cdn

beta_npm:
yarn run build-debug
yarn run build-production
beta_npm: build
yarn publish --tag beta ./

notify:
MSG=`git log -1 --pretty="%B" | sed s/\"//g | sed s/\'//g `; \
VERSION=`git describe --long`; \
curl -X POST -H 'Content-type: application/json' --data '{"text":"'"[GOBAN] $$VERSION $$MSG"'"}' $(SLACK_WEBHOOK)

publish_npm:
yarn run build-debug
yarn run build-production
publish_npm: build
yarn publish ./

upload_to_cdn:
rm -Rf deployment-staging-area;
mkdir deployment-staging-area;
cp lib/goban.js* deployment-staging-area
cp lib/goban.min.js* deployment-staging-area
cp lib/engine.js* deployment-staging-area
cp lib/engine.min.js* deployment-staging-area
gsutil -m rsync -r deployment-staging-area/ gs://ogs-site-files/goban/`node -pe 'JSON.parse(require("fs").readFileSync("package.json")).version'`/

.PHONY: doc docs test clean all dev typedoc publich push
.PHONY: doc build docs test clean all dev typedoc publich push lib types
Loading
Loading