Passed
Push — master ( add66c...3bf222 )
by Christofer
01:09
created

Piece.js ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
c 2
b 0
f 0
nc 1
nop 1
dl 0
loc 6
ccs 0
cts 4
cp 0
crap 2
rs 9.4285
1
/**
2
 * Piece module that is parent to all pices
3
 * @module
4
 */
5
"use strict";
6
7
/**
8
 * Piece class
9
 */
10
class Piece {
11
    /**
12
     * init
13
     */
14
    constructor(color) {
15
        this.symbol;
0 ignored issues
show
introduced by
The result of the property access to this.symbol is not used.
Loading history...
16
        this.moved = 0;
17
        this.active = true;
18
        this.color;
0 ignored issues
show
introduced by
The result of the property access to this.color is not used.
Loading history...
19
    }
20
21
    legalMove() {
22
23
    }
24
}
25
26
27
module.exports = Piece;
28