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

reimplement in typescript and customElements V1 #9

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
.
  • Loading branch information
laat committed Feb 25, 2020
commit 5c94c6804a070943f134cdb6d8328a572365e0c5
19 changes: 10 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
@@ -73,19 +73,20 @@ <h2>Unicode Pieces (reverse and framed)</h2>
"color: green; font-weight: bold;"
);
console.log(
`You can try to modify it:
`try this 🚀:

chessBoard.fen = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"
chessBoard.move("e2", "e4")
chessBoard.fen = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"
chessBoard.move("e2", "e4")

chessBoard.unicode = true
chessBoard.reverse = true
chessBoard.unicode = true
chessBoard.reverse = true
chessBoard.frame = true

chessBoard.put("e4", "K")
chessBoard.put("d5", "k")
chessBoard.piece("d5")
chessBoard.put("e4", "K")
chessBoard.put("d5", "k")
chessBoard.piece("d5")

chessBoard.clear()
chessBoard.clear()
`
);
</script>