diff options
author | Yuchen Pei <me@ypei.me> | 2018-01-20 15:41:49 +0100 |
---|---|---|
committer | Yuchen Pei <me@ypei.me> | 2018-01-20 15:41:49 +0100 |
commit | d3a0cc3a8ba6dfeb64d3faeffdeb6845b60e5840 (patch) | |
tree | d58df9ec2480e2a9ec6240f9c797f83d1a0b1056 /K/Main.jack | |
parent | 3571f998b28fbc8d9250ba04c983935f10a16c15 (diff) |
rearranged the dir for github
- removed tools and pdfs
- rearranged the projects dirs
- added md files
- other minor changes
Diffstat (limited to 'K/Main.jack')
-rw-r--r-- | K/Main.jack | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/K/Main.jack b/K/Main.jack new file mode 100644 index 0000000..c1b6a79 --- /dev/null +++ b/K/Main.jack @@ -0,0 +1,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; + } +} |