Commit graph

37 commits

Author SHA1 Message Date
cc5a90405c fixed type hint for packets 2023-03-07 10:14:16 +01:00
bd748ad349 the connexion timeout is now 1 second instead of 5 (fix the quiting fast from host to client to connect to ourselves) 2023-03-07 09:33:43 +01:00
8d3f53cec1 there is now a status text when trying to connect to a host, it is no longer possible to spam "connect" 2023-03-07 09:30:21 +01:00
f3ee475c2e boats of the ally grid are now sent to the opposent when the game end 2023-03-06 19:30:07 +01:00
8c7b429d29 each move are now saved in the history list of the Game object 2023-03-06 13:54:56 +01:00
808b309c40 the load menus now show the time of the save 2023-03-05 21:47:51 +01:00
5bdffd40de changed some grid code to be easier to manipulate 2023-03-05 11:32:36 +01:00
8048a3d43b load screen before loading an old save file 2023-03-04 13:32:59 +01:00
312210b323 Added prompt to save the game 2023-03-04 12:46:58 +01:00
5cbb28df72 fixed some bugs, network error are now handled 2023-03-04 11:11:41 +01:00
c4116b64d1 added an GameError scene in case of error in the Game 2023-03-03 19:07:48 +01:00
aa4b2f8eb2 added a popup for the quit button in the game 2023-03-03 18:26:23 +01:00
b7d147fc3c added SimplePacket and VariableLengthBytesPacket to simplify some Packet type 2023-02-28 18:15:08 +01:00
37350926b2 changed the packet code to be simpler and more flexible 2023-02-28 14:07:00 +01:00
58287a0649 port can now be changed 2023-02-27 16:15:53 +01:00
25a3c0fa86 simplified some part of the game code, made some quality of life change 2023-02-24 19:37:44 +01:00
385adb2cf1 added settings for the game 2023-02-24 16:11:44 +01:00
5dd5663ac6 ajout d'un texte affichant l'état de la partie 2023-02-24 11:46:28 +01:00
c49971fe5a ajout d'un écran de victoire 2023-02-24 11:32:13 +01:00
1bbef3f57d unified the cls_from_connection, instance_from_connection 2023-02-23 22:38:04 +01:00
fb90534436 the header and the data are now send together 2023-02-23 21:38:47 +01:00
db21bf5e04 it is now possible to see the opponent move on our board 2023-02-23 17:34:43 +01:00
9c8e0f87ce the score system is now working 2023-02-23 17:22:20 +01:00
75d7c407c1 added the turn system 2023-02-23 16:59:55 +01:00
bda05d3f8e simplified packet with the struct module 2023-02-23 10:02:16 +01:00
a2d37c37f7 added more documentation in some files 2023-02-23 00:02:28 +01:00
dc4cb3b1a7 removed the test network code 2023-02-22 23:26:06 +01:00
23b3824585 simplified a bit the packet class 2023-02-22 23:25:34 +01:00
c6ffbb9a58 simplified the usage of socket thanks to the Packet class 2023-02-22 23:19:37 +01:00
4e376bc009 implemented more of the game with the network 2023-02-22 15:50:45 +01:00
972327cdc7 added a StoppableThread class to simplify a bit the Host and Client thread 2023-02-21 23:39:49 +01:00
2f96ab14ad added a better management for the network thread and a prototypal chat 2023-02-21 23:25:50 +01:00
39d44e7ec2 added a function to render board on the grid (unoptimised !!!) 2023-02-20 15:21:43 +01:00
f38f440e9d fixed a bug where creating a room and quiting it would not close the thread 2023-02-19 17:07:28 +01:00
ca59abee01 added background on game and renamed some minor variable 2023-02-17 22:49:44 +01:00
8181885c84 fixed an issue with gl context when connected 2023-02-17 16:09:49 +01:00
ca001511c8 started the networking and interface connection 2023-02-17 15:56:00 +01:00