浏览代码

Rename display

DricomDragon 5 年之前
父节点
当前提交
ce5f4a2e9f
共有 1 个文件被更改,包括 9 次插入4 次删除
  1. 9 4
      markov/main.cc

+ 9 - 4
markov/main.cc

@@ -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;