aboutsummaryrefslogtreecommitdiff
path: root/K/Main.jack
diff options
context:
space:
mode:
authorYuchen Pei <me@ypei.me>2018-01-20 15:41:49 +0100
committerYuchen Pei <me@ypei.me>2018-01-20 15:41:49 +0100
commitd3a0cc3a8ba6dfeb64d3faeffdeb6845b60e5840 (patch)
treed58df9ec2480e2a9ec6240f9c797f83d1a0b1056 /K/Main.jack
parent3571f998b28fbc8d9250ba04c983935f10a16c15 (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.jack16
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;
+ }
+}