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

src/old_chess/pieces/Knight.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 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A Knight.js ➔ ??? 0 6 1
1
/**
2
 * Knight module
3
 * @module
4
 */
5
"use strict";
6
7
/**
8
 * Class with Knight logic
9
 */
10
class Knight {
11
    /**
12
     * init
13
     */
14
    constructor(color) {
15
        this.symbol = "N";
16
        this.moved = 0;
17
        this.active = true;
18
        this.color = color;
19
    }
20
21
    legalMove() {
22
23
    }
24
}
25
26
27
module.exports = Knight;
28