jordansoans2002 / Games_Arcade

1 stars 0 forks source link

CowBull networking #2

Open jordansoans2002 opened 2 years ago

jordansoans2002 commented 2 years ago
  1. All players send their words to the server and then the server sends it to each of the other players
  2. After a player enters a word it needs to be sent to the rest of the players and the other players should be waiting to receive it.
  3. Only the player whose turn it is to play should have his text field as editable.
jordansoans2002 commented 2 years ago

server: receives word from current player and the sends to the rest of the players https://github.com/jordansoans2002/Miniproject_1B/blob/master/src/main/java/com/example/miniproject_1b/multiplayer_server.java client: should send each guess to the server when it is the current players chance. should receives other player's guesses from the server https://github.com/jordansoans2002/Miniproject_1B/blob/master/src/main/java/com/example/miniproject_1b/multiplayer_client.java

jordansoans2002 commented 2 years ago

server with game controller is functional

jordansoans2002 commented 2 years ago

Testing with GUI on both sides not done Server may not be able to accept multiple clients

jordansoans2002 commented 2 years ago

Not yet tested with more than 2 PCs but seems like it should be working fine

jordansoans2002 commented 2 years ago

Accepts only one connection but doesnt seem to be accepting the second connection

jordansoans2002 commented 2 years ago

Fixed

jordansoans2002 commented 2 years ago

Can try sending messages with a prefix for certain settings. Will need to start the networking thread earlier