maaslalani / gambit

Play chess in your terminal
MIT License
825 stars 30 forks source link

Networked play over ssh #3

Closed aymanbagabas closed 2 years ago

aymanbagabas commented 2 years ago

Hi Maas,

This is still wip networked play using ssh and wish 😃 it still needs some brushing up and more testing but so far it looks good. Lmk what you think.

You can start the server by running gambit serve. By default, it runs on port 53531, generates an ed25519 key at the root directory gambit_ed25519, and binds to localhost.

maaslalani commented 2 years ago

This is some really incredible work! Just tested this out and it works really well!

image

One thing I did notice was when a user sshes in without a public key (no ssh config) the server crashes. We could probably handle this gracefully and tell the user to generate a key.

Really awesome work, dude! Thanks so much for the contribution ❤️

maaslalani commented 2 years ago

One thing I absolutely love is that you can leave the game and come back in! This is going to be so fun to actually play on!

maaslalani commented 2 years ago

Great work, Ayman! This looks good to me! 😄