Usage

Launch client

./tetriq_client <ip> <port> <displayMode>

ip: IP adress of the server (IPv4)

port: Port of the server

displayMode: Choose between sfml or ncurses

Ncurses Keybinds

Left Arrow: Move left

Right Arrow: Move right

Down Arrow: Move down

Up Arrow: Rotate

Space: Drop

Q: Send powerup

S: Target player

0-9: Target player id (need "select target mode": S)

Z: Target next player

X: Target previous player

Note that when targeting players with S, on press you have a 2 seconds delay to enter a player ID (1 - 999) refreshed every time you add a digit. Press any non-numerical key or wait the 2 seconds to save the target ID.

SFML Keybinds

Left Arrow: Move left

Right Arrow: Move right

Down Arrow: Move down

Up Arrow: Rotate

Space: Drop

Q: Send powerup

shift (hold): Select target mode

0-9: Target player id (need "select target mode": shift)

h: Show help

esc: Exit game

Note that when targeting players with shift (hold), you can type the player ID. Press shift again to reset the target to 0 (self). e.g. shift (hold) + 1 + 2 + 3 will target player 123.