diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index f0fbb95..4da9e8b 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -2,7 +2,7 @@
-
+
@@ -62,7 +62,7 @@
-
+
@@ -74,11 +74,14 @@
-
+
-
-
+
+
+
+
+
@@ -101,12 +104,12 @@
@@ -328,13 +331,6 @@
-
-
-
-
-
-
-
@@ -390,5 +386,15 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/eight_queens/lib/results.dart b/eight_queens/lib/results.dart
index 2b606f0..23e0843 100644
--- a/eight_queens/lib/results.dart
+++ b/eight_queens/lib/results.dart
@@ -1,4 +1,5 @@
+import 'package:eight_queens/queens.dart';
import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'dart:convert';
@@ -15,6 +16,11 @@ class ResultsPage extends StatefulWidget {
class _ResultsPageState extends State {
var boards = new List();
+ ///
+ /// Retrieves the [QueenResolver] [boards] that were calculated.
+ /// Will call [SharedPreferences] and get [String] for every posible solution.
+ /// Will then append it to [boards] and [setState()]
+ ///
Future retrieveEightQueensResults() async {
final prefs = await SharedPreferences.getInstance();
var _boards = new List();
@@ -36,7 +42,11 @@ class _ResultsPageState extends State {
super.initState();
});
}
-
+
+ ///
+ /// Simple Item builder to display a [board]
+ /// Uses [String] concatenation to make it work
+ ///
Widget ResultItem(BuildContext context, int index) {
String todisplay = "";
for(int x = 0; x < boards[index].length; x++ ){