Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | updated How to play. | rodri | 2023-09-27 | 1 | -8/+13 |
| | |||||
* | give more feedback about the current state of play to the spectator. | rodri | 2023-09-27 | 1 | -3/+8 |
| | |||||
* | implemented spectator mode. | rodri | 2023-09-27 | 5 | -28/+135 |
| | |||||
* | initial work towards spectator mode. | rodri | 2023-09-26 | 5 | -5/+92 |
| | |||||
* | add parsecmd to the client. finish the menulist of matches. | rodri | 2023-09-22 | 2 | -60/+144 |
| | | | | | the menulist now supports scrolling. also changed some cursors and got to tidy up /^lmb\(. | ||||
* | add parsecmd to the server. | rodri | 2023-09-21 | 6 | -22/+182 |
| | | | | | | | modified it to allow for commands with the same name but different nargs. now each match list entry is preceded by an 'm', to simplify its processing. note that this breaks the client. the next commit will fix that. | ||||
* | more work on the menulist of matches. | rodri | 2023-09-20 | 7 | -92/+169 |
| | |||||
* | initial work on a menu of matches. | rodri | 2023-09-17 | 3 | -34/+134 |
| | | | | | also made some corrections and changed the tokenize(2) fields identifiers from cmd[] to f[]. | ||||
* | update readme file. | rodri | 2023-09-17 | 1 | -2/+2 |
| | |||||
* | renamed cmd to f(ields) to better reflect their nature. | rodri | 2023-09-16 | 1 | -29/+29 |
| | |||||
* | remove leftover msgq channel. | rodri | 2023-09-16 | 1 | -2/+0 |
| | |||||
* | don't send shots when the game is over. and freeze the cursor. | rodri | 2023-09-15 | 1 | -2/+2 |
| | |||||
* | fix mouse button handling. | rodri | 2023-09-15 | 1 | -11/+11 |
| | |||||
* | really allow any key to be pressed to continue. | rodri | 2023-09-15 | 1 | -5/+7 |
| | |||||
* | draw the game's title. | rodri | 2023-09-15 | 15 | -0/+29 |
| | |||||
* | got rid of unnecessary operator process. | rodri | 2023-09-15 | 1 | -60/+52 |
| | |||||
* | fit client to the new architecture. clean things up, make them more consistent. | rodri | 2023-09-15 | 3 | -60/+103 |
| | |||||
* | new server architecture. | rodri | 2023-09-15 | 5 | -174/+569 |
| | |||||
* | fixed game-breaking typo. | rodri | 2023-09-10 | 1 | -1/+1 |
| | |||||
* | don't rotate the ship when moving the mouse while pressing mmb. | rodri | 2023-09-09 | 1 | -2/+6 |
| | |||||
* | made playerq a Channel, turned polling into send/recv points and got rid of ↵ | rodri | 2023-09-09 | 2 | -90/+37 |
| | | | | the reaper. | ||||
* | wrote a manual. | rodri | 2023-09-08 | 2 | -4/+68 |
| | |||||
* | got rid of unused locking popplayer. use an fd for the threadgrp. | rodri | 2023-09-08 | 1 | -21/+4 |
| | |||||
* | inline spawned threads to threadmain. | Amavect | 2023-09-07 | 3 | -73/+46 |
| | | | | | | | | Pointers to automatic variables become invalid when threadmain exits. Solution is to reuse threadmain. Use nbsend to avoid deadlock to the draw channel. Input struct is no longer needed, inline it. | ||||
* | obtain each player's username and show it during battle. | rodri | 2023-09-01 | 3 | -9/+35 |
| | |||||
* | make playerq a fifo instead of a lifo. | rodri | 2023-09-01 | 1 | -4/+10 |
| | |||||
* | change mmb to rotate the ship without presenting a menu. | rodri | 2023-09-01 | 2 | -50/+40 |
| | |||||
* | correct patrolcursor not showing up after finishing a battle. | rodri | 2023-08-31 | 1 | -3/+5 |
| | |||||
* | show the board labels. | rodri | 2023-08-31 | 1 | -0/+21 |
| | |||||
* | improved playerq locking. | rodri | 2023-08-31 | 3 | -20/+59 |
| | | | | wrote a little how to play guide. | ||||
* | forbid placing ships after being done with the layout. | rodri | 2023-08-30 | 4 | -29/+66 |
| | | | | | show the current ship and its length during placement. also made changes to some of the info banners. | ||||
* | added new cursors and their switching. | rodri | 2023-08-30 | 1 | -28/+71 |
| | |||||
* | change the cursor based on game state (waiting and playing). | rodri | 2023-08-30 | 1 | -9/+52 |
| | |||||
* | implemented match conclusion logic and notification. | rodri | 2023-08-29 | 4 | -8/+79 |
| | | | | made the window un-resizable. | ||||
* | reset the boards after each game. | rodri | 2023-08-29 | 4 | -14/+68 |
| | | | | | | only change turns if the shot was valid. show the opponent's hits on localboard. keep the orientation for consecutive ships while outlaying. | ||||
* | removed unnecessary pointer. | rodri | 2023-08-29 | 2 | -12/+8 |
| | |||||
* | major development stride: | rodri | 2023-08-29 | 5 | -103/+254 |
| | | | | | | - implemented per-line msg framing - wrote most of the game logic - fixed an issue where the ship would go off-board when rotated | ||||
* | show the current state and keep ships from overlapping. | rodri | 2023-08-26 | 1 | -9/+38 |
| | |||||
* | implemented most of the layout code. | rodri | 2023-08-25 | 5 | -41/+166 |
| | | | | | | added a new util.c to host the cell/coordinate conversions. made the showproc a painter thread instead, to avoid problems with menuhit(2). | ||||
* | minor ship placement clean up. | rodri | 2023-08-24 | 1 | -7/+12 |
| | |||||
* | armada placement testing. wrote part of the client netcode. | rodri | 2023-08-24 | 2 | -40/+104 |
| | |||||
* | fixed the match process cleanup procedure. | rodri | 2023-08-24 | 2 | -80/+65 |
| | |||||
* | wrote a readme. | rodri | 2023-08-24 | 1 | -0/+3 |
| | |||||
* | added the rules manual. | rodri | 2023-08-16 | 3 | -33/+67 |
| | |||||
* | added ship drawing and placement procedures. | rodri | 2023-08-15 | 2 | -19/+107 |
| | |||||
* | latest try of player mgmt procedure. (not working) | rodri | 2023-08-12 | 3 | -40/+314 |
| | |||||
* | initial commit. | rodri | 2023-08-08 | 7 | -0/+520 |