Skip to content

Commit

Permalink
fixed UML according to code
Browse files Browse the repository at this point in the history
  • Loading branch information
CuriousCI committed Oct 26, 2024
1 parent a02e891 commit 806ff48
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,20 @@ Modello sviluppato in una prima analisi ad alto livello del gioco (eventuali vin

![Abstract UML](./docs/Minesweeper.png)

> Realizzato con [Visual Paradigm](https://www.visual-paradigm.com/)
### UML implementazione

Modello che sintetizza l'implementazione del progetto. Per una visione più completa è possibile consultare la [documentazione online](https://curiousci.github.io/minesweeper/) in javadoc.
Modello che sintetizza l'implementazione del progetto. È possibile consultare la [documentazione online](https://curiousci.github.io/minesweeper/) in javadoc.

![UML](./docs/UML.png)

> Realizzato con [Visual Paradigm](https://www.visual-paradigm.com/)
### Wireframe dell'interfaccia

Breve progetto dell'interfaccia grafica.

![Wireframe](./docs/wireframe.png)

> Realizzato con [excalidraw](https://excalidraw.com/)
Binary file modified docs/UML.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified games.db
Binary file not shown.
4 changes: 2 additions & 2 deletions src/main/java/minesweeper/view/Canvas.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
@SuppressWarnings("deprecation")
public class Canvas extends JPanel implements Observer {
public static final int SCALE = 30;
private Optional<minesweeper.model.Game> game = Optional.empty();
private Optional<Game> game = Optional.empty();

@Override
public void paint(Graphics g) {
Expand Down Expand Up @@ -56,7 +56,7 @@ public void paint(Graphics g) {
*/
@Override
public void update(Observable o, Object arg) {
if (o instanceof minesweeper.model.Game game)
if (o instanceof Game game)
this.game = arg instanceof Game.Result ? Optional.empty() : Optional.of(game);
}

Expand Down

0 comments on commit 806ff48

Please sign in to comment.