Skip to content

Commit 47a302d

Browse files
committed
ref: var
1 parent a4de136 commit 47a302d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

webzebra/src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ function render() {
144144
let color;
145145
let move = 10 * i + j;
146146

147-
switch (board[move]) {
147+
const piece = board[move];
148+
149+
switch (piece) {
148150
case 0 :
149151
color = 'black'
150152
break;

0 commit comments

Comments
 (0)