JQuery plugin for displaying various board games
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
js
README.md
index.html
jGames.png
jGames2.png
jGames3.png
jGames4.png

README.md

jGames

JQuery plugin for displaying various board games

View post for more detail usage http://ken-soft.com/2011/08/08/jgames/

Simple Chess Example:

<code>
<script type="text/javascript" src="js/jgames/jquery.jgames.js"></script>
<link href="js/jgames/css/style.css" rel="stylesheet" type="text/css" />

<div id="chess"></div>

<script type="text/javascript">
        var board_chess = [
            ["br", "bn", "bb", "bk", "bq", "bb", "bn", "br"],
            ["bp", "bp", "bp", "bp", "bp", "bp", "bp", "bp"],
            [" ", " ", " ", " ", " ", " ", " ", " "],
            [" ", " ", " ", " ", " ", " ", " ", " "],
            [" ", " ", " ", " ", " ", " ", " ", " "],
            [" ", " ", " ", " ", " ", " ", " ", " "],
            ["wp", "wp", "wp", "wp", "wp", "wp", "wp", "wp"],
            ["wr", "wn", "wb", "wk", "wq", "wb", "wn", "wr"]];
       $("#chess").chess(board_chess);
</script>
</code>