This is a 1 or 2 player Tetris (local or remote) so you can play against a friend !
Our implementation satisfies the Super Rotation System, that means the starting positions, the rotations and wall-kicks are conforming to this standard.
Currently you can play tetris alone locally just with:
cargo runSupposing you have cargo installed. Otherwise see How to install cargo.
It works well, only it's more fun to play with others right ?
I's also possible to play tetris remotely !
Remote 2 players only works if the IPs can ping each other, a solution for this is connecting to the same mobile hotspot.
Then you can refer to the Great Rust Documentation : https://doc.rust-lang.org/cargo/getting-started/installation.html.
I think this fixes it
sudo apt-get install libxcb-shape0-dev libxcb-xfixes0-dev
Then you're interested by the variable gravity in main.rs, set it how it fits you.
Add the target (you can also change this for whatever target you're cross compiling for):
rustup target add x86_64-pc-windows-gnu
You can build your crate easily with:
cargo build --release --target x86_64-pc-windows-gnu
See export_exe.sh and export_linux.sh.
graph LR
trait([trait]) ===|is implemented for| struct[[struct]]
struct2[[struct]] --o|contains| enum[enum]
obj@{ shape: text, label: "any" } -.->|uses| obj2@{ shape: text, label: "any" }