summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-08-13 21:36:07 +0200
committerMatthias Melcher <github@matthiasm.com>2023-08-15 17:09:51 +0200
commitaf22676abf694d2746269d5ec693b8109f7cfb93 (patch)
tree6ae419e522b2e2f8485cb3a712f4e17d654836ee
parent0de186e614db861c2ae0b63459353384da37fe56 (diff)
Missing includes
-rw-r--r--test/sudoku.cxx12
-rw-r--r--test/sudoku.h2
-rw-r--r--test/sudoku_sound.cxx3
3 files changed, 16 insertions, 1 deletions
diff --git a/test/sudoku.cxx b/test/sudoku.cxx
index 822508b7f..629dba3fb 100644
--- a/test/sudoku.cxx
+++ b/test/sudoku.cxx
@@ -15,6 +15,18 @@
// https://www.fltk.org/bugs.php
//
+// A Sudoku (i.e. the puzzle) is a partially completed grid. A grid has 9 rows,
+// 9 columns and 9 boxes, each having 9 cells (81 total). Boxes can also be
+// called blocks or regions.[1] Three horizontally adjacent blocks are a band,
+// and three vertically adjacent blocks are a stack.[2] The initially defined
+// values are clues or givens. An ordinary Sudoku (i.e. a proper Sudoku) has
+// one solution. Rows, columns and regions can be collectively referred to as
+// groups, of which the grid has 27. The One Rule encapsulates the three prime
+// rules, i.e. each digit (or number) can occur only once in each row, column,
+// and box; and can be compactly stated as: "Each digit appears once in each
+// group."
+// - wikipedia.org
+
#include "sudoku.h"
#include "sudoku_cell.h"
#include "sudoku_sound.h"
diff --git a/test/sudoku.h b/test/sudoku.h
index 05b8f1f63..817a9ad5d 100644
--- a/test/sudoku.h
+++ b/test/sudoku.h
@@ -67,4 +67,4 @@ class Sudoku : public Fl_Double_Window {
};
-#endif _SUDOKU_H_
+#endif // _SUDOKU_H_
diff --git a/test/sudoku_sound.cxx b/test/sudoku_sound.cxx
index 60acbf9c1..887313298 100644
--- a/test/sudoku_sound.cxx
+++ b/test/sudoku_sound.cxx
@@ -18,6 +18,9 @@
#include "sudoku_sound.h"
#include <FL/Fl.H>
+#include <FL/platform.H>
+
+#include <math.h>
// Sound class globals...
int SudokuSound::frequencies[9] = {