{"id":19846024,"url":"https://github.com/sakthivinash2/single-player-chess_game","last_synced_at":"2026-05-07T17:40:58.743Z","repository":{"id":249541173,"uuid":"831786240","full_name":"SAKTHIVINASH2/single-player-chess_game","owner":"SAKTHIVINASH2","description":"Build a single-player chess game with HTML, CSS, and JavaScript! Create a checkered board and design piece icons. Users click squares to move pieces, with JavaScript validating moves. For a challenging opponent, consider using a chess engine library like Chess.js.","archived":false,"fork":false,"pushed_at":"2024-08-31T14:17:41.000Z","size":1432,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-12T00:45:42.204Z","etag":null,"topics":["chess-game","css","front-end-web-development","html5","javascript","website"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SAKTHIVINASH2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-21T16:14:50.000Z","updated_at":"2024-08-31T14:17:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"cbe1a774-9217-421f-8a76-63b753124263","html_url":"https://github.com/SAKTHIVINASH2/single-player-chess_game","commit_stats":null,"previous_names":["sakthivinash2/single-player-chess_game"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SAKTHIVINASH2/single-player-chess_game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SAKTHIVINASH2%2Fsingle-player-chess_game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SAKTHIVINASH2%2Fsingle-player-chess_game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SAKTHIVINASH2%2Fsingle-player-chess_game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SAKTHIVINASH2%2Fsingle-player-chess_game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SAKTHIVINASH2","download_url":"https://codeload.github.com/SAKTHIVINASH2/single-player-chess_game/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SAKTHIVINASH2%2Fsingle-player-chess_game/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32749581,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chess-game","css","front-end-web-development","html5","javascript","website"],"created_at":"2024-11-12T13:10:06.052Z","updated_at":"2026-05-07T17:40:58.727Z","avatar_url":"https://github.com/SAKTHIVINASH2.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# single-player-chess_game\nBuild a single-player chess game with HTML, CSS, and JavaScript! Create a checkered board and design piece icons. Users click squares to move pieces, with JavaScript validating moves. For a challenging opponent, consider using a chess engine library like Chess.js.\n## Chess Game (VS Computer)\n we are going to create a chess game with javascript. in this javascript chess game you can play with computer, flip board and set position. in this code you will learn to use chessboardjs and chess.js library❗️\n ## FEN Notation\n FEN (Forsyth-Edwards Notation) is a standard notation used to represent a particular chessboard position. It provides a concise and human-readable way to describe the placement of chess pieces on the board, as well as other important information about the position. Here's how FEN notation works:\n\n A FEN string consists of six fields separated by spaces:\n\n 1. Piece Placement (8 ranks): This field represents the positions of the pieces on the board. Each rank is represented by a series of characters, where:\n    * \u003ckbd\u003eK\u003c/kbd\u003e represents a white king.\n    * \u003ckbd\u003eQ\u003c/kbd\u003e represents a white queen.\n    * \u003ckbd\u003eR\u003c/kbd\u003e represents a white rook.\n    * \u003ckbd\u003eB\u003c/kbd\u003e represents a white bishop.\n    * \u003ckbd\u003eN\u003c/kbd\u003e represents a white knight.\n    * \u003ckbd\u003eP\u003c/kbd\u003e represents a white pawn.\n    * \u003ckbd\u003ek\u003c/kbd\u003e represents a black king.\n    * \u003ckbd\u003eq\u003c/kbd\u003e represents a black queen.\n    * \u003ckbd\u003er\u003c/kbd\u003e represents a black rook.\n    * \u003ckbd\u003eb\u003c/kbd\u003e represents a black bishop.\n    * \u003ckbd\u003en\u003c/kbd\u003e represents a black knight.\n    * \u003ckbd\u003ep\u003c/kbd\u003e represents a black pawn.\n    * Digits (1-8) represent empty squares, with the number indicating the count of consecutive empty squares.\n\n    For example, \u003ckbd\u003ernbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR\u003c/kbd\u003e represents the starting position of a chess game.\n\n 2. Active Color (1 character): This field indicates which player's turn it is to move. \u003ckbd\u003ew\u003c/kbd\u003e represents White's turn, and \u003ckbd\u003eb\u003c/kbd\u003e represents Black's turn.\n 3. Castling Availability (1-4 characters): This field indicates whether castling is still available for each player. The characters used are:\n      * \u003ckbd\u003eK\u003c/kbd\u003e for White kingside castling.\n      * \u003ckbd\u003eQ\u003c/kbd\u003e for White queenside castling.\n      * \u003ckbd\u003ek\u003c/kbd\u003e for Black kingside castling.\n      * \u003ckbd\u003eq\u003c/kbd\u003e for Black queenside castling.\n      * \u003ckbd\u003e-\u003c/kbd\u003e if no castling is possible.\n   \n  4. En Passant Target Square (1-2 characters): If a pawn has just moved two squares forward from its starting position, this field represents the square where the opposing pawn can capture en passant. Otherwise, it is represented as \u003ckbd\u003e-\u003c/kbd\u003e.\n  5. Halfmove Clock (1-2 characters): This field represents the number of half-moves (ply) since the last pawn move or capture. It is used for the fifty-move rule.\n  6. Fullmove Number (1-2 characters): This field represents the number of full moves (complete turns) in the game. It starts at 1 and is incremented after Black's move\n\nHere's an example FEN string:\n\n```\nrnbqkb1r/ppp1pppp/5n2/3p4/3P4/8/PPP2PPP/RNBQKBNR w KQkq - 0 4\n```\n\nThis FEN represents a specific board position where it's White's turn to move, both sides have the potential to castle kingside and queenside, there's no en passant target square, the halfmove clock is 0, and the fullmove number is 4.\n\nYou can use FEN notation to record and share specific chess positions and use them for various purposes, including setting up custom positions for analysis or practice.\n\n## Screenshot\nHere we have project screenshot :\n### example_1:\n![Uploading image.png…](screen_shot/img1.png)\n### example_2{set position}:\n![Uploading image.png…](screen_shot/img2.png)\n### example_3{flip board}:\n![Uploading image.png…](screen_shot/img3.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsakthivinash2%2Fsingle-player-chess_game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsakthivinash2%2Fsingle-player-chess_game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsakthivinash2%2Fsingle-player-chess_game/lists"}