-
-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Similar to what the puzzle tagger does https://github.com/ornicar/lichess-puzzler/blob/master/tagger/cook.py
- Loading branch information
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Detect tactical motifs in games. | ||
Similar to what [the puzzle tagger](https://github.com/ornicar/lichess-puzzler/blob/master/tagger/cook.py) does. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package chess | ||
package motif | ||
|
||
enum Motif: | ||
case fork | ||
case doubleCheck | ||
case xRay | ||
|
||
case class MotifAt(motif: Motif, at: Ply) | ||
|
||
object MotifAt: | ||
|
||
def findAll(replay: Replay): List[MotifAt] = | ||
Nil |