From bb1ce7fe68a374f60b5cf85db318478f57beb0b9 Mon Sep 17 00:00:00 2001 From: amanjain1644 Date: Fri, 12 Jul 2024 15:15:13 +0530 Subject: modified the chess board --- app.js | 12 ----- index.css | 35 ++++++++----- index.html | 175 +++++++++++++++++++++++++++++++++---------------------------- 3 files changed, 117 insertions(+), 105 deletions(-) diff --git a/app.js b/app.js index 5085dd6..8e41b32 100644 --- a/app.js +++ b/app.js @@ -1,32 +1,20 @@ let board = [ -<<<<<<< Updated upstream - [0, 0, 0, 0, 0, 0, 0, 0], - [0, 0, 0, 0, 0, 0, 0, 0], - [0, 0, 0, 0, 0, 0, 0, 0], - [0, 0, 0, 0, 0, 0, 0, 0], - [0, 0, 0, 0, 0, 0, 0, 0], -======= [0, 1, 0, 0, 0, 0, 0, 0], [1, 1, 0, 0, 0, 0, 0, 0], [1, 1, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 0, 0, 0], [0, 0, 1, 2, 1, 0, 0, 0], [0, 0, 1, 1, 1, 0, 0, 0], ->>>>>>> Stashed changes [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], ] -<<<<<<< Updated upstream -console.log(amelia_move(board, 7, 7)) -======= console.log(board.length) console.log(amelia_move(board, 0,0)) ->>>>>>> Stashed changes function pawn_move(board, y, x) { let moves = [] diff --git a/index.css b/index.css index f9e40ae..08324aa 100644 --- a/index.css +++ b/index.css @@ -1,25 +1,32 @@ *{ - font-size: 30px; margin: 0; padding: 0; } -.white{ - background-color: antiquewhite; +.box{ height: 76px; - width: 76px; - display: flex; - justify-content: center; - align-items: center; + width: 76px; + position: relative; +} +.top-corner{ + padding: 1px; + position: absolute; +} +.bottom-corner{ + padding: 1px; + position: absolute; + bottom: 2px; + right: 2px; } -.black{ - height: 76px; - width: 76px; - background-color: brown; - display: flex; - justify-content: center; - align-items: center; +.white{ + background-color: #eaead2; + color: #4b7299; +} + +.black{ + background-color: #4b7299; + color: #eaead2; } body{ diff --git a/index.html b/index.html index 8398804..8954901 100644 --- a/index.html +++ b/index.html @@ -10,100 +10,117 @@
-<<<<<<< Updated upstream -
-======= -
R
-
P
-
-
-
-
-
-
R
-
R
+
+
8
+
+
+
7
+
+
+
6
+
+
+
5
+
+
+
4
+
+
+
3
+
+
+
2
+
+
+
1
+
a
+
->>>>>>> Stashed changes -
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
b
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
c
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
d
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
e
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
f
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
g
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
h
+
-
-
-
-
-
-
-
-
-
-
-
+ -- cgit v1.2.3