1
0
Disbranĉigi 0

Made board.json an unmodified game of chess

This commit is contained in:
Jaidyn Ann 2017-03-26 16:00:18 -05:00
parent 71902876cd
commit 42542fd450
2 changed files with 219 additions and 26 deletions

36
LICENSE
View File

@ -1,29 +1,13 @@
BSD 3-Clause License
Copyright (c) 2017, Jade Levesque
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

209
board.json Normal file
View File

@ -0,0 +1,209 @@
{"chess": {
"teams": {
"white": {
"pieces": {
"pawn": {
"text": "p",
"direction": "1n"
},
"rook": {
"text": "r",
"direction": "nsew"
},
"bishop": {
"text": "b",
"direction": "d"
},
"knight": {
"text": "t",
"direction_ad_1": "2n1e",
"direction_ad_2": "2n1w",
"direction_ad_3": "2s1e",
"direction_ad_4": "2s1e",
"direction_ad_5": "2e1n",
"direction_ad_6": "2e1s",
"direction_ad_7": "2w1n",
"direction_ad_8": "2w1s"
},
"king": {
"text": "k",
"direction": "1a"
},
"queen": {
"text": "q",
"direction": "a"
}
}
},
"black": {
"pieces": {
"pawn": {
"text": "P",
"direction": "1s"
},
"rook": {
"text": "R",
"direction": "nsew"
},
"bishop": {
"text": "B",
"direction": "d"
},
"knight": {
"text": "T",
"direction_ad_1": "2n1e",
"direction_ad_2": "2n1w",
"direction_ad_3": "2s1e",
"direction_ad_4": "2s1e",
"direction_ad_5": "2e1n",
"direction_ad_6": "2e1s",
"direction_ad_7": "2w1n",
"direction_ad_8": "2w1s"
},
"king": {
"text": "K",
"direction": "1a"
},
"queen": {
"text": "Q",
"direction": "a"
}
}
}
},
"board": {
"height": 8,
"width": 8,
"pieces": {
"8,2": {
"team": "white",
"piece": "pawn"
},
"7,2": {
"team": "white",
"piece": "pawn"
},
"6,2": {
"team": "white",
"piece": "pawn"
},
"5,2": {
"team": "white",
"piece": "pawn"
},
"4,2": {
"team": "white",
"piece": "pawn"
},
"3,2": {
"team": "white",
"piece": "pawn"
},
"2,2": {
"team": "white",
"piece": "pawn"
},
"1,2": {
"team": "white",
"piece": "pawn"
},
"8,7": {
"team": "black",
"piece": "pawn"
},
"7,7": {
"team": "black",
"piece": "pawn"
},
"6,7": {
"team": "black",
"piece": "pawn"
},
"5,7": {
"team": "black",
"piece": "pawn"
},
"4,7": {
"team": "black",
"piece": "pawn"
},
"3,7": {
"team": "black",
"piece": "pawn"
},
"2,7": {
"team": "black",
"piece": "pawn"
},
"1,7": {
"team": "black",
"piece": "pawn"
},
"8,1": {
"team": "white",
"piece": "rook"
},
"1,1": {
"team": "white",
"piece": "rook"
},
"8,8": {
"team": "black",
"piece": "rook"
},
"1,8": {
"team": "black",
"piece": "rook"
},
"6,1": {
"team": "white",
"piece": "bishop"
},
"3,1": {
"team": "white",
"piece": "bishop"
},
"6,8": {
"team": "black",
"piece": "bishop"
},
"3,8": {
"team": "black",
"piece": "bishop"
},
"7,1": {
"team": "white",
"piece": "knight"
},
"2,1": {
"team": "white",
"piece": "knight"
},
"7,8": {
"team": "black",
"piece": "knight"
},
"2,8": {
"team": "black",
"piece": "knight"
},
"5,1": {
"team": "white",
"piece": "king"
},
"5,8": {
"team": "black",
"piece": "king"
},
"4,1": {
"team": "white",
"piece": "queen"
},
"4,8": {
"team": "black",
"piece": "queen"
}
}
}
}
}