aboutsummaryrefslogtreecommitdiff
path: root/btsd.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2023-08-30 22:07:50 +0000
committerrodri <rgl@antares-labs.eu>2023-08-30 22:07:50 +0000
commitbe547a2dba10292fb3191bc5fec42212d2391660 (patch)
tree4f8771a774d0a947f39aea1c9e92e4c768f87bb9 /btsd.c
parent3d93e42d0e854a3bb7c3a380a0635cf927d59ab7 (diff)
downloadbattleship-be547a2dba10292fb3191bc5fec42212d2391660.tar.gz
battleship-be547a2dba10292fb3191bc5fec42212d2391660.tar.bz2
battleship-be547a2dba10292fb3191bc5fec42212d2391660.zip
forbid placing ships after being done with the layout.
show the current ship and its length during placement. also made changes to some of the info banners.
Diffstat (limited to 'btsd.c')
-rw-r--r--btsd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/btsd.c b/btsd.c
index 92346b2..6e4ac5e 100644
--- a/btsd.c
+++ b/btsd.c
@@ -252,6 +252,10 @@ matchmaker(void *)
threadsetname("matchmaker");
for(;;){
+ /*
+ * TODO make fairer matches
+ * locking playerq while checking nplayers and popping the couple.
+ */
if(playerq.nplayers < 2){
sleep(100);
continue;