|
@@ -110,7 +110,7 @@ class World
|
|
|
}
|
|
|
|
|
|
// Display the world
|
|
|
- void display()
|
|
|
+ void displayBoard()
|
|
|
{
|
|
|
for (unsigned int i = 0; i < h; i++)
|
|
|
{
|
|
@@ -179,6 +179,11 @@ class World
|
|
|
cout << "Height : " << h << endl;
|
|
|
cout << "Number of floor tiles : " << tileQuantity << endl;
|
|
|
}
|
|
|
+
|
|
|
+ // Value iteration
|
|
|
+ void valueIteration(float gamma, float epsilon) {
|
|
|
+ // todo
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
int main()
|
|
@@ -191,7 +196,7 @@ int main()
|
|
|
// Display it
|
|
|
cout << endl << "Default world" << endl;
|
|
|
w.showProperties();
|
|
|
- w.display();
|
|
|
+ w.displayBoard();
|
|
|
|
|
|
const bool animation(DEFAULT_ANIMATION);
|
|
|
|
|
@@ -199,13 +204,13 @@ int main()
|
|
|
cout << endl << "Value iteration" << endl;
|
|
|
|
|
|
World w1(w);
|
|
|
- w1.display();
|
|
|
+ w1.displayBoard();
|
|
|
|
|
|
// 2
|
|
|
cout << endl << "Policy iteration" << endl;
|
|
|
|
|
|
World w2(w);
|
|
|
- w2.display();
|
|
|
+ w2.displayBoard();
|
|
|
|
|
|
// End
|
|
|
return 0;
|