From 5976901d18d80aa29fdd2eaa8a4c7771ffb8124d Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Mon, 14 Nov 2016 19:45:14 +0000 Subject: [PATCH] =?UTF-8?q?Correct=20square=20colours=20and=20=E2=99=9A/?= =?UTF-8?q?=E2=99=9B=20positions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/store.js | 4 ++-- app/styles/main.scss | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/store.js b/app/store.js index 4cc3f56..6781082 100644 --- a/app/store.js +++ b/app/store.js @@ -10,8 +10,8 @@ const store = new Vuex.Store({ { type: "rook", colour: "black" }, { type: "knight", colour: "black" }, { type: "bishop", colour: "black" }, - { type: "king", colour: "black" }, { type: "queen", colour: "black" }, + { type: "king", colour: "black" }, { type: "bishop", colour: "black" }, { type: "knight", colour: "black" }, { type: "rook", colour: "black" }, @@ -44,8 +44,8 @@ const store = new Vuex.Store({ { type: "rook", colour: "white" }, { type: "knight", colour: "white" }, { type: "bishop", colour: "white" }, - { type: "king", colour: "white" }, { type: "queen", colour: "white" }, + { type: "king", colour: "white" }, { type: "bishop", colour: "white" }, { type: "knight", colour: "white" }, { type: "rook", colour: "white" }, diff --git a/app/styles/main.scss b/app/styles/main.scss index 240acf1..718da09 100644 --- a/app/styles/main.scss +++ b/app/styles/main.scss @@ -40,19 +40,19 @@ $square-outline-color: darken($black-square-color, 20%); } .board-row:nth-child(odd) { - .board-square:nth-child(odd) { + .board-square:nth-child(even) { @extend %black-square; } - .board-square:nth-child(even) { + .board-square:nth-child(odd) { @extend %white-square; } } .board-row:nth-child(even) { - .board-square:nth-child(odd) { + .board-square:nth-child(even) { @extend %white-square; } - .board-square:nth-child(even) { + .board-square:nth-child(odd) { @extend %black-square; } }