Commit Graph
27 Commits
Author SHA1 Message Date
karolina 08799a3809 refactored lobby logic; streamlined commands and added PeerMessages to client for more cohesive socket messaging 2025-07-20 17:37:10 +02:00
karolina 189d04ccd4 jester and magician cards have been recoloured to white to avoid confusion with numebred cards 2025-07-20 12:17:52 +02:00
karolina aef7778a4b client can now only play allowed cards 2025-07-18 14:10:39 +02:00
karolina b61dfef76f all clients now receive current round 2025-07-18 12:53:43 +02:00
karolina cc7afb5477 scoring implemented; clients calculate scores individually and display ranks per player 2025-07-16 11:15:05 +02:00
karolina e0cea82394 game now correctly rotates through plays and goes to the next rounds when all cards have been played 2025-07-15 19:38:27 +02:00
karolina 231e861416 added winning determination algorithm (not entirely working yet) 2025-07-15 14:42:06 +02:00
karolina ecfe5955b7 more backend improvements; clients are (should be) able to submit cards and start new rounds; determining winners and scoring points is unimplemented 2025-07-15 12:11:50 +02:00
karolina 2f3f4dbc14 added bet mechanism (currently without checks for invalid bets) 2025-07-15 11:51:02 +02:00
karolina 3a22a4e95d cards are now distributed and displayed among all clients 2025-07-15 11:31:01 +02:00
karolina 59ff9a429a added commands for requesting and receiving bets and starting rounds 2025-07-09 16:48:45 +02:00
karolina 08773d963c server: added more gameplay commands and determine playing order on start_game command 2025-07-08 10:42:34 +02:00
karolina 3122df893a host client can now start round and send out shuffled cards, server can spread them to all connected clients 2025-07-07 22:40:46 +02:00
karolina f51444874a client & server: added error handling for lobby connection issues 2025-07-07 10:57:39 +02:00
karolina dffda0d4fe server: cleaned up code 2025-07-07 10:31:22 +02:00
karolina a2bab58d3f server: sending connected client names instead of count on every (dis)connect 2025-07-07 09:58:34 +02:00
karolina 63869dc530 server now sends, client receives lobby player count 2025-07-06 20:08:38 +02:00
karolina 05e5acd503 server: added SSL context for running on remote server 2025-07-06 19:49:08 +02:00
karolina 958be7e1ce client & server: changed from TCP stream to WebSocket implementations 2025-07-04 19:59:46 +02:00
karolina af763c89b3 server: fixed bug that caused host client to disconnect when leaving lobby if they were the only connected client in the lobby 2025-07-04 14:24:28 +02:00
karolina 2aa6d710cf client: now displays when clients leave the lobby 2025-07-04 11:41:57 +02:00
karolina 4b4285ca99 chat messages are now sent and relayed. server: handling host client leaving correctly 2025-07-04 11:29:25 +02:00
karolina f4a7fb722e server: moved code generation from client to server to avoid code collision 2025-07-04 10:57:24 +02:00
karolina 68a152af42 server: edited lobby leaving logic slightly 2025-07-02 22:16:52 +02:00
karolina d128f39e6a server: added broadcast for players entering the lobby. client: added text output for connection actions 2025-06-30 22:07:43 +02:00
karolina 07a37a5602 server: moved send_message to LobbyManager and added broadcast_message 2025-06-30 21:31:47 +02:00
karolina 27979ffe9f Switched from UDP to TCP-based connection; implemented creating, joining, leaving lobbies 2025-06-29 20:37:43 +02:00