Skip to content

Commit

Permalink
Merge pull request #18 from MeiNic/master
Browse files Browse the repository at this point in the history
Updating the debugging-branch
  • Loading branch information
MeiNic authored Jul 18, 2023
2 parents 183d016 + bc21817 commit fee1f79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions BackEnd.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public class BackEnd {
int randomNumber;
boolean noChooserSet;


BackEnd(Landingpage landingpage) {
figures = new Figure[16];
for (int i = 0; i < figures.length; i++) {
Expand Down Expand Up @@ -346,6 +347,7 @@ private int giveColor(int figureNumber){
private boolean finished() {
for (int i = 0; i < 4; i++) {
if (figures[i].isFinished() && figures[i + 1].isFinished() && figures[i + 2].isFinished() && figures[i + 3].isFinished()) {

return true;
}
}
Expand Down
1 change: 0 additions & 1 deletion Landingpage.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ public class Landingpage extends JFrame implements ActionListener {
adjustJFrameSetting();
}
public void actionPerformed(ActionEvent e) {
BackEnd game = new BackEnd();
setVisible(false);
BackEnd game = new BackEnd(this);

Expand Down

0 comments on commit fee1f79

Please sign in to comment.