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

src/old_chess/pieces/Piece.js   A

Size

Lines of Code 23

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
nc 1
dl 0
loc 23
ccs 0
cts 5
cp 0
rs 10
noi 2

1 Function

Rating   Name   Duplication   Size   Complexity  
A Piece.js ➔ ??? 0 6 1
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