Commands
git clone https://github.com/imathur1/rust-project
-> Clone repositorycd rust-project
-> Change to the rust-project directorycargo run --bin snek-server
-> Create the server8080
-> Port that the server should listen on- Open a new terminal window
cargo run --bin snek-client
-> Creates player 1SERVER_IP:8080
-> Address of the server that the client will connect to- Open a new terminal window
cargo run --bin snek-client
-> Creates player 2SERVER_IP:8080
-> Address of the server that the client will connect to
Two windows will open, each one representing a different player, and the game will start. Use the arrow keys to move the sneks.
Currently:
- The game can only function locally, so the both the clients and server needs to open on the same machine
- Technically the code for cross-machine networking is there, we just haven't managed to figure out if its a problem with port-forwarding or the firewall
Future:
- Plan to put the game on a web server so that multiple machines can connect to the game