training repository for block game implemented in Jack
To run the game, you need to install VM Emulator on JVM.
-
Install Java
-
download the official (Nand2tetris Software Suite](https://www.nand2tetris.org/software)
-
run VMEmulator.sh
-
[File] -> [Load Program] -> select source/Tetris of this repository -> press [Load Program]
-
When confirmation message pops up, press
Yes
(for better game speed, master brand relies on the build-in OS) -
Set [Animate] select box as 'No animation', and press [>>] button
-
Hit Enter key to start.
-
Now you are ready to go!
-
To resume after gameover, hit [<<] and then [>>].
Enter ... start the game ← ... move left → ... move right ↑ ... rotate clockwise Z ... rotate counter-clockwise ↓ ... soft drop Space ... hard drop
For re-compilation of the source code, you'll need a Jack compiler. A working compiler sample can be found here.
Origial ideas of HACK/Jack architecture are given by:
- basic ideas/tools are introduced at:
- see the publisher's link for datails:
http://mitpress.mit.edu/books/elements-computing-systems https://www.oreilly.co.jp/books/9784873117126/