-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix Chessboard -> new Chessboard
- Loading branch information
1 parent
5a22310
commit 91ee4f7
Showing
33 changed files
with
113 additions
and
113 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
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
===== id | ||
1001 | ||
|
||
===== Name | ||
Start Position | ||
===== Name | ||
Start Position | ||
|
||
===== Description | ||
Pass <code class="js string">'start'</code> as the second argument to initialize | ||
the board to the start position. | ||
|
||
===== HTML | ||
<div id="myBoard" style="width: 400px"></div> | ||
|
||
===== JS | ||
var board = Chessboard('myBoard', 'start') | ||
var board = new Chessboard('myBoard', 'start') |
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
===== id | ||
1002 | ||
|
||
===== Name | ||
FEN String | ||
===== Name | ||
FEN String | ||
|
||
===== Description | ||
Pass a <a href="docs.html#fen_string">FEN String</a> as the second argument to | ||
initialize the board to a specific position. | ||
|
||
===== HTML | ||
<div id="myBoard" style="width: 400px"></div> | ||
|
||
===== JS | ||
var ruyLopez = 'r1bqkbnr/pppp1ppp/2n5/1B2p3/4P3/5N2/PPPP1PPP/RNBQK2R' | ||
var board = Chessboard('myBoard', ruyLopez) | ||
var board = new Chessboard('myBoard', ruyLopez) |
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
===== id | ||
1003 | ||
|
||
===== Name | ||
Position Object | ||
===== Description | ||
Pass a <a href="docs.html#position_object">Position Object</a> as the second argument to initialize the board to a specific position. | ||
===== HTML | ||
<div id="myBoard" style="width: 400px"></div> | ||
===== JS | ||
===== Name | ||
Position Object | ||
|
||
===== Description | ||
Pass a <a href="docs.html#position_object">Position Object</a> as the second argument to initialize the board to a specific position. | ||
|
||
===== HTML | ||
<div id="myBoard" style="width: 400px"></div> | ||
|
||
===== JS | ||
var position = { | ||
d6: 'bK', | ||
d4: 'wP', | ||
e4: 'wK' | ||
} | ||
var board = Chessboard('myBoard', position) | ||
var board = new Chessboard('myBoard', position) |
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
===== id | ||
2000 | ||
|
||
===== Name | ||
Start Position | ||
===== Description | ||
Set the <a href="docs.html#config:position"><code class="js plain">position</code></a> property to <code class="js string">'start'</code> to initialize the board to the start position. | ||
===== HTML | ||
<div id="myBoard" style="width: 400px"></div> | ||
===== JS | ||
var config = { | ||
position: 'start' | ||
===== Name | ||
Start Position | ||
|
||
===== Description | ||
Set the <a href="docs.html#config:position"><code class="js plain">position</code></a> property to <code class="js string">'start'</code> to initialize the board to the start position. | ||
|
||
===== HTML | ||
<div id="myBoard" style="width: 400px"></div> | ||
|
||
===== JS | ||
var config = { | ||
position: 'start' | ||
} | ||
var board = Chessboard('myBoard', config) | ||
var board = new Chessboard('myBoard', config) |
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
===== id | ||
2001 | ||
|
||
===== Name | ||
Orientation | ||
===== Description | ||
Use the <a href="docs.html#config:orientation"><code class="js plain">orientation</code></a> property to set board orientation. | ||
===== HTML | ||
<div id="myBoard" style="width: 400px"></div> | ||
===== JS | ||
var config = { | ||
orientation: 'black', | ||
position: 'start' | ||
===== Name | ||
Orientation | ||
|
||
===== Description | ||
Use the <a href="docs.html#config:orientation"><code class="js plain">orientation</code></a> property to set board orientation. | ||
|
||
===== HTML | ||
<div id="myBoard" style="width: 400px"></div> | ||
|
||
===== JS | ||
var config = { | ||
orientation: 'black', | ||
position: 'start' | ||
} | ||
var board = Chessboard('myBoard', config) | ||
var board = new Chessboard('myBoard', config) |
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
===== id | ||
2002 | ||
|
||
===== Name | ||
Notation | ||
===== Description | ||
Use the <a href="docs.html#config:showNotation"><code class="js plain">showNotation</code></a> property to turn board notation on or off. | ||
===== HTML | ||
<div id="myBoard" style="width: 400px"></div> | ||
===== JS | ||
var config = { | ||
showNotation: false, | ||
position: 'start' | ||
===== Name | ||
Notation | ||
|
||
===== Description | ||
Use the <a href="docs.html#config:showNotation"><code class="js plain">showNotation</code></a> property to turn board notation on or off. | ||
|
||
===== HTML | ||
<div id="myBoard" style="width: 400px"></div> | ||
|
||
===== JS | ||
var config = { | ||
showNotation: false, | ||
position: 'start' | ||
} | ||
var board = Chessboard('myBoard', config) | ||
var board = new Chessboard('myBoard', config) |
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
===== id | ||
2003 | ||
|
||
===== Name | ||
Draggable Snapback | ||
===== Description | ||
Set <a href="docs.html#config:draggable"><code class="js plain">draggable</code></a> to <code class='js keyword'>true</code> to allow drag and drop of pieces. Pieces will return to their original square when dropped off the board (ie: the default for <a href="docs.html#config:dropOffBoard"><code class="js plain">dropOffBoard</code></a> is <code class="js string">'snapback'</code>). | ||
===== HTML | ||
<div id="myBoard" style="width: 400px"></div> | ||
===== JS | ||
var config = { | ||
draggable: true, | ||
dropOffBoard: 'snapback', // this is the default | ||
position: 'start' | ||
===== Name | ||
Draggable Snapback | ||
|
||
===== Description | ||
Set <a href="docs.html#config:draggable"><code class="js plain">draggable</code></a> to <code class='js keyword'>true</code> to allow drag and drop of pieces. Pieces will return to their original square when dropped off the board (ie: the default for <a href="docs.html#config:dropOffBoard"><code class="js plain">dropOffBoard</code></a> is <code class="js string">'snapback'</code>). | ||
|
||
===== HTML | ||
<div id="myBoard" style="width: 400px"></div> | ||
|
||
===== JS | ||
var config = { | ||
draggable: true, | ||
dropOffBoard: 'snapback', // this is the default | ||
position: 'start' | ||
} | ||
var board = Chessboard('myBoard', config) | ||
var board = new Chessboard('myBoard', config) |
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.