
package com.lofibucket.yotris.logic;

import com.lofibucket.yotris.ui.UserInterface;
import com.lofibucket.yotris.util.Settings;


public class Game {
	private UserInterface ui;

	public Game(UserInterface ui) {
		this.ui = ui;
	}

	public void run() {
		Settings defaultSettings = new Settings();
		GameLogic logic = new GameLogic(ui, defaultSettings);
		GameState state;

		do {
			state = logic.update();
		} while (state.running);
	}
}

@@ -129,108 +129,350 @@
 ;%0A%0A%0A
-public class Game %7B%0A%09private UserInterface ui;%0A%0A%09public Game(UserInterface ui) %7B%0A%09%09this.ui = ui;%0A%09%7D%0A
+/**%0A * The main game class that creates the ui and runs the Game class instance.%0A */%0Apublic class Game %7B%0A%09private UserInterface ui;%0A%0A%09/**%0A%09 * Game constructor%0A%09 * @param ui%09The user interface to be used for this session%0A%09 */%0A%09public Game(UserInterface ui) %7B%0A%09%09this.ui = ui;%0A%09%7D%0A%0A%09/**%0A%09 *%09Runs the main game loop. Exits when the game ends.%0A%09 */
 %0A%09pu

add Game class documentation