revert 6232e6f93e
revert Merge branch 'main' of https://grond.iut-fbleau.fr/stiti/SAE31_2024
This commit is contained in:
26
TestV1/TestEnAttendantResolutionBug/model/Game.java
Normal file
26
TestV1/TestEnAttendantResolutionBug/model/Game.java
Normal file
@@ -0,0 +1,26 @@
|
||||
package model;
|
||||
|
||||
public class Game {
|
||||
private Board board;
|
||||
private int score;
|
||||
|
||||
public Game() {
|
||||
board = new Board();
|
||||
score = 0;
|
||||
}
|
||||
|
||||
public Board getBoard() {
|
||||
return board;
|
||||
}
|
||||
|
||||
public int getScore() {
|
||||
return score;
|
||||
}
|
||||
|
||||
public void placeTile(Tile tile) {
|
||||
if (board.isPlacementValid(tile)) {
|
||||
board.addTile(tile);
|
||||
score += 10; // Par exemple, chaque tuile ajoute 10 points
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user