Skip to content

Match3 example - special pieces #4575

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

Merged
merged 7 commits into from
Oct 16, 2020
Merged

Conversation

chriselion
Copy link
Contributor

@chriselion chriselion commented Oct 16, 2020

Proposed change(s)

Support for "special" board pieces (for example, the striped candies in Candy Crush). These pieces still retain have a "color" but can also be flagged as special by returning non-zero from AbstractBoard.GetSpecialType().

They don't actually do anything different in the example scene yet:
image
but type "1" pieces are sphere and type "2" are "plusses".

@chriselion chriselion force-pushed the match3-example-special branch from 3f0f464 to 750df47 Compare October 16, 2020 23:31
@chriselion chriselion merged commit 1a6444d into match3-example Oct 16, 2020
@delete-merged-branch delete-merged-branch bot deleted the match3-example-special branch October 16, 2020 23:46
Hunter-Unity added a commit that referenced this pull request Nov 10, 2020
* first pass - matching and gravity work

* valid moves WIP

* move enumeration, simple checking

* move detection

* fix up/down directions

* actuator and heuristic

* sensor

* reset if no moves

* add masking, retrain

* cleanup

* config update

* optionally force heuristic mode

* compressed observations, reset board if no moves

* TFModel meta files

* WIP abstract

* random move heuristic

* rename Move fields, migrate IsValid logic

* comments

* reduce dependency on Match3Agent

* abstractBoard as monobehavior

* move actuator to extensions

* move sensor to extensions

* update components in scene

* undo accidental checkins

* drawing cleanup, custom maxMoves logic

* meta file

* prefab, use 8 agents

* different behaviors

* timers, early out

* unit tests

* docs

* Apply suggestions from code review

Co-authored-by: Vincent-Pierre BERGES <[email protected]>

* doc cleanup, swap to .nn file, add heuristic agents

* board iterator

* convert others to iterator, rename to Move.MoveIndex

* change observation type to enum

* fix flip for compressed obs

* save dimensions on sensor

* save dimension on actuator

* Match3 example - special pieces (#4575)

* WIP special pieces

* add special piece types to obs (need more from master first)

* update sensors and models

* docstrings

* more interesting scoring, smarter heuristic

* more steps

* longer trained models

* handle no valid moves more gracefully (#4598)

* handle no valid moves more gracefully

* rename callback

* cleanup heuristic logic

* more sensor and actuator tests

* update heuristic configs

* docstrings and add to environment docs

* sensor and actuator names

* compare compressed obs against saved PNGs

* review feedback, cleanup TODOs, comments

* docstrings, heuristic benchmarks

* kind of working

* added symbol gameobjects

* basic shapes & colors working

* cleanup and added background

* bug hunt. won't train

* merge master version

* update prefabs

* update prefabs

* add image to docs

* Update Match3.md

* rename some properties

* remove unneeded comments and some cleanup

Co-authored-by: Chris Elion <[email protected]>
Co-authored-by: Vincent-Pierre BERGES <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant