Skip to content

Commit

Permalink
add SAN to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisukez committed Aug 20, 2022
1 parent 2bfd428 commit 61b9827
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ runUntilGameFinished()
+------------------------+
8 | r m t e k t m r |
7 | . . . . . . . . |
6 | b b . b b b b b |
6 | b b . b b b b b
5 | . . b . . . . . |
4 | . . . . . M . . |
3 | B B B B B B B B |
Expand Down Expand Up @@ -114,6 +114,20 @@ runUntilGameFinished()
a b c d e f g h
```

## Standard Algebraic Notation (SAN)
- Capital letter = White piece (move first)
- Lowercase letter = black piece

| SAN | Piece (English) | Piece (Thai) |
|-------|-----------------|--------------|
| B / b | Bia | เบี้ยคว่ำ |
| F / f | Flipped Bia | เบี้ยหงาย |
| R / r | Rua | เรือ |
| M / m | Ma | ม้า |
| T / t | Thon | โคน |
| K / k | Khun | ขุน |
| E / e | Met | เม็ด |

## Todos
- [x] attacked (its name was changed to canThisColorAttackThisSquare) function
- [x] inCheck / inCheckmate / inStalemate / inThreefoldRepetition
Expand Down

0 comments on commit 61b9827

Please sign in to comment.