project organization/optimization/documentation. began implementing basic board class.

This commit is contained in:
Josh Ashton
2024-03-21 15:21:34 -06:00
parent 3477cc53ed
commit e6a299906a
3 changed files with 14 additions and 8 deletions
+10 -2
View File
@@ -1,5 +1,7 @@
package gui;
import java.awt.GridLayout;
import javax.swing.JPanel;
import gui.backend.Settings;
@@ -17,15 +19,17 @@ import gui.backend.Settings;
*/
public class Board extends JPanel {
private Settings s;
private Cell[][] grid;
/**
* Create a new Board object with the default styling from settings.
*
* @param s
*/
public Board(Settings s) {
super();
public Board(Settings s, Cell[][] grid) {
super(new GridLayout(9, 9));
this.s = s;
this.grid = grid;
style();
}
@@ -35,4 +39,8 @@ public class Board extends JPanel {
private void style() {
// TODO: Style the Board Panel.
}
private void createBoard() {
// TODO: Create the board with the given grid.
}
}