blob: 38d152d3177f1113133ca2454132336982031a34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package jrummikub;
import javax.swing.UIManager;
import jrummikub.control.TurnControl;
import jrummikub.model.GameState;
import jrummikub.model.Position;
import jrummikub.view.impl.View;
public class JRummikub {
public static void main(String[] args) {
String nativeLF = UIManager.getSystemLookAndFeelClassName();
try {
UIManager.setLookAndFeel(nativeLF);
} catch (Exception e) {
}
GameState gameState = new GameState();
View view = new View();
gameState.getActivePlayer().getHand()
.drop(gameState.getGameHeap().drawStone(), new Position(0, 0));
TurnControl turnControl = new TurnControl(gameState.getActivePlayer()
.getHand(), gameState.getTable(), view);
}
}
|