Stworzenie agenta i jego okrojonego ruchu
This commit is contained in:
parent
5358e809ab
commit
41d8e99aeb
@ -1,14 +0,0 @@
|
||||
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;
|
||||
}
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
class Product {
|
||||
constructor(name, type, farcing, price) {
|
||||
this.name = name;
|
||||
this.type = type;
|
||||
this.farcing = farcing;
|
||||
this.price = price
|
||||
}
|
||||
}
|
@ -1,17 +0,0 @@
|
||||
class Rack{
|
||||
constructor(noOfShelf, typOfProduct) {
|
||||
this.noOfShelf = noOfShelf;
|
||||
}
|
||||
|
||||
addShelf(){
|
||||
this.noOfShelf = this.noOfShelf + 1;
|
||||
}
|
||||
|
||||
isEmpty(){
|
||||
if (this.noOfShelf === 0){
|
||||
return true;
|
||||
}else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
class Shelf {
|
||||
constructor(number) {
|
||||
this.number = number;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user