Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

632111 Views

Latest files of /cody/69PercentFat/Js-Chess

img/ cody/69PercentFat/Js-Chess/img/
12 Items
  • white-queen.png
  • black-bishop.png
  • black-king.png
  • white-king.png
  • black-queen.png
  • black-pawn.png
  • white-rook.png
  • white-knight.png
  • pieces/ cody/69PercentFat/Js-Chess/pieces/
    7 Items
  • Pawn.js
  • Queen.js
  • Piece.js
  • Rook.js
  • King.js
  • Bishop.js
  • Knight.js
  • README.md cody/69PercentFat/Js-Chess/README.md
    272 Views
    0 Comments


    # Js-Chess

    Welcome to Js-Chess, a customizable and visually appealing chess game implemented in JavaScript. This project features personalized chess pieces to provide a unique and enjoyable gaming experience.

    ## Table of Contents

    Board.js cody/69PercentFat/Js-Chess/Board.js
    174 Views
    0 Comments
    const startBoard = game => {
    const board = document.getElementById('board');
    const squares = board.querySelectorAll('.square');
    const whiteSematary = document.getElementById('whiteSematary');
    const blackSematary = document.getElementById('blackSematary');
    const turnSign = document.getElementById('turn');
    let clickedPieceName;

    index.html cody/69PercentFat/Js-Chess/index.html
    351 Views
    0 Comments
    <!DOCTYPE html>
    <html>
    <head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="chess.css">
    </head>
    <body>

    chess.css cody/69PercentFat/Js-Chess/chess.css
    108 Views
    0 Comments
    *{
    margin: 0;
    padding: 0;
    }
    body{
    background: #ddd;
    }
    #board{
    game.js cody/69PercentFat/Js-Chess/game.js
    171 Views
    0 Comments
    class Game {
    constructor(pieces) {
    this.pieces = pieces;
    this.turn = 'white';
    this.clickedPiece = null;
    this._events = {
    pieceMove: [],
    kill: [],