blob: a913e2afc8c9a1edacda209add0cc1fb0e6501e5 (
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
32
33
34
35
36
37
38
39
40
41
42
43
|
package jrummikub;
import javax.swing.UIManager;
import jrummikub.control.RoundControl;
import jrummikub.model.GameState;
import jrummikub.model.Position;
import jrummikub.model.Stone;
import jrummikub.model.StoneSet;
import jrummikub.view.impl.View;
/**
* The main class
*/
public class JRummikub {
/**
* The main method
*
* @param args
* command line arguments
*/
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();
for (Stone stone : gameState.getGameHeap().drawStones(5)) {
gameState.getTable().drop(new StoneSet(stone), new Position(0, 0));
}
RoundControl roundControl = new RoundControl(gameState, view);
roundControl.startRound();
}
}
|