Socket
Socket
Sign inDemoInstall

chessboard-engine

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.7 to 0.0.8

56

default/pieces.json
[
{
"type": "farmer",
"type": "pawn",
"color": "black"
},
{
"type": "farmer",
"type": "pawn",
"color": "black"
},
{
"type": "farmer",
"type": "pawn",
"color": "black"
},
{
"type": "farmer",
"type": "pawn",
"color": "black"
},
{
"type": "farmer",
"type": "pawn",
"color": "black"
},
{
"type": "farmer",
"type": "pawn",
"color": "black"
},
{
"type": "farmer",
"type": "pawn",
"color": "black"
},
{
"type": "farmer",
"type": "pawn",
"color": "black"
},
{
"type": "tower",
"type": "rook",
"color": "black"
},
{
"type": "tower",
"type": "rook",
"color": "black"
},
{
"type": "jumper",
"type": "knight",
"color": "black"
},
{
"type": "jumper",
"type": "knight",
"color": "black"
},
{
"type": "runner",
"type": "bishop",
"color": "black"
},
{
"type": "runner",
"type": "bishop",
"color": "black"

@@ -67,55 +67,55 @@ },

{
"type": "farmer",
"type": "pawn",
"color": "white"
},
{
"type": "farmer",
"type": "pawn",
"color": "white"
},
{
"type": "farmer",
"type": "pawn",
"color": "white"
},
{
"type": "farmer",
"type": "pawn",
"color": "white"
},
{
"type": "farmer",
"type": "pawn",
"color": "white"
},
{
"type": "farmer",
"type": "pawn",
"color": "white"
},
{
"type": "farmer",
"type": "pawn",
"color": "white"
},
{
"type": "farmer",
"type": "pawn",
"color": "white"
},
{
"type": "tower",
"type": "rook",
"color": "white"
},
{
"type": "tower",
"type": "rook",
"color": "white"
},
{
"type": "jumper",
"type": "knight",
"color": "white"
},
{
"type": "jumper",
"type": "knight",
"color": "white"
},
{
"type": "runner",
"type": "bishop",
"color": "white"
},
{
"type": "runner",
"type": "bishop",
"color": "white"

@@ -122,0 +122,0 @@ },

{
"farmer": {
"pawn": {
"directions": ["forward"],

@@ -8,3 +8,3 @@ "ratio": [0],

},
"tower": {
"rook": {
"directions": ["forward", "backward", "left", "right"],

@@ -15,3 +15,3 @@ "ratio": [0],

},
"jumper": {
"knight": {
"directions": ["forward", "backward", "left", "right"],

@@ -22,3 +22,3 @@ "ratio": [0.5, 2],

},
"runner": {
"bishop": {
"directions": ["forward", "backward", "left", "right"],

@@ -25,0 +25,0 @@ "ratio": [1],

@@ -8,6 +8,6 @@ "use strict";

var shorts = {
farmer: "♟",
tower: "♜",
jumper: "♞",
runner: "♝",
pawn: "♟",
rook: "♜",
knight: "♞",
bishop: "♝",
king: "♚",

@@ -54,6 +54,6 @@ queen: "♛"

white: {
farmer: fs.readFileSync(iconPath + "farmer-white.svg", "utf8"),
tower: fs.readFileSync(iconPath + "tower-white.svg", "utf8"),
jumper: fs.readFileSync(iconPath + "jumper-white.svg", "utf8"),
runner: fs.readFileSync(iconPath + "runner-white.svg", "utf8"),
pawn: fs.readFileSync(iconPath + "farmer-white.svg", "utf8"),
rook: fs.readFileSync(iconPath + "tower-white.svg", "utf8"),
knight: fs.readFileSync(iconPath + "jumper-white.svg", "utf8"),
bishop: fs.readFileSync(iconPath + "runner-white.svg", "utf8"),
king: fs.readFileSync(iconPath + "king-white.svg", "utf8"),

@@ -63,6 +63,6 @@ queen: fs.readFileSync(iconPath + "queen-white.svg", "utf8")

black: {
farmer: fs.readFileSync(iconPath + "farmer-black.svg", "utf8"),
tower: fs.readFileSync(iconPath + "tower-black.svg", "utf8"),
jumper: fs.readFileSync(iconPath + "jumper-black.svg", "utf8"),
runner: fs.readFileSync(iconPath + "runner-black.svg", "utf8"),
pawn: fs.readFileSync(iconPath + "farmer-black.svg", "utf8"),
rook: fs.readFileSync(iconPath + "tower-black.svg", "utf8"),
knight: fs.readFileSync(iconPath + "jumper-black.svg", "utf8"),
bishop: fs.readFileSync(iconPath + "runner-black.svg", "utf8"),
king: fs.readFileSync(iconPath + "king-black.svg", "utf8"),

@@ -69,0 +69,0 @@ queen: fs.readFileSync(iconPath + "queen-black.svg", "utf8")

{
"name": "chessboard-engine",
"version": "0.0.7",
"version": "0.0.8",
"description": "Chessboard controller",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc