forked from s444420/AL-2020
14 lines
269 B
JavaScript
14 lines
269 B
JavaScript
class Field {
|
|
constructor(x, y, isEmpty) {
|
|
this.xField = x;
|
|
this.yField = y;
|
|
this.isFieldEmpty = isEmpty;
|
|
}
|
|
getCoordinates(){
|
|
return this.xField + this.yField;
|
|
}
|
|
|
|
getStatus(){
|
|
return this.isFieldEmpty;
|
|
}
|
|
} |