Minimal kernal that plays Tetris at boot. All built with Rust
git clone https://github.com/manorajesh/moss.git
cd moss
cargo bootimage --release
cargo run --release
or
dd if=target/x86_64-moss/release/bootimage-moss.bin of=/dev/sdX && sync
Replace sdX
with bootable drive
NOTE: All data on sdX
will be destroyed. Also, only Legacy BIOS is supported, so make sure to set that option on the device's BIOS.
It is just normal Tetris.
The objective of Tetris is to move and rotate falling pieces called tetrominoes in order to create complete horizontal lines. When a line is complete, it will be cleared, and the lines above it will drop down. The game becomes progressively faster as you clear more lines and level up.
Left Arrow
: Move the active piece left.Right Arrow
: Move the active piece right.Down Arrow
: Move the active piece down (soft drop).Up Arrow
: Rotate the active piece clockwise.Space
: Hard drop the active piece.C
: Hold the active piece.P
: Pause the game.Q
: Quit the game.