Professional Documents
Culture Documents
In-Game Features
Individual perception
The board is aligned accordingly to each
player’s perception(facing white/black)
and both sides’ moves are made following
different perceptions but the same square
notations.
Multiple themes
The game board is built using css grid
Users can decide the theme colour of the
(display:grid) and each square on the
board among the selections of three
board is assigned a colour(dark/light),
colour combinations.
file(column) and rank(row) using css
class and id. Each square is then
Captured piece display board
identifiable by a unique combination of
Both the user’s and the opponent’s
rank and file.
captured pieces are displayed in a
separate board for convenience in
keeping track of the game.
Move sound
Knight
¿
(column=¿ c +1∨¿ column=¿ c−1)¿∨¿
¿
(row =¿ r+ 1∨¿ row=¿ r −1)¿
King
¿ row−r∨¿ 1∧¿∨column−c≤1∨¿
Pawn
Pieces
Pieces are png images contained within a
separate div carrying the identity of that
piece using id’s. First move :
Following are the algorithms for the legal column−c≤2∧¿ row=¿ r
moves of each piece currently at the Rest :
square with row r and column c: column=¿ c +1∧¿ row=¿ r
Queen
USE STACK
Languages
● Javascript- For frontend as well as
(row =¿ r∨¿ column=¿ c) backend. Javascript has been used
¿
for writing the game logic and also
for displaying the game live as it handling, CSS animation, and Ajax.
progresses. All the algorithms have It is used for many features in the
been written in javascript. game such as prompting a function
Javascript is used to attach the upon certain clicks, assigning
html page to the backend and different attributes to html
receive and send commands in real elements and retrieving an
time. element of certain attributes.
● HTML- HTML has been used for
laying out the basic structure of HARDWARE AND
the entire game including the
board, pieces as well as the chat SOFTWARE
box. REQUIREMENTS
● CSS- All of the designs (colour,
shape, size, position, etc) of each
and every element in the ● PROCESSOR- Ideal requirement is
application has been done using of a processor running at above 2
CSS(Cascading Style Sheets). GHz frequency