aboutsummaryrefslogtreecommitdiff
path: root/K/Main.jack
blob: c1b6a7912ea37efa001b76c16fdf35c5d996ae0e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
- K: a 2048 clone written in Jack language
- Coursework for Nand2Tetris (http://nand2tetris.org/)
- Author: Yuchen Pei (me@ypei.me)
- This file: the main file for the K game
*/
class Main {
    function void main() {
        var KGame game;
        do Board.init();
        let game = KGame.new();
        do game.run();
        do game.dispose();
        return;
    }
}