Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | make cell2coords thread-safe. | rodri | 2023-10-07 | 1 | -4/+7 |
| | |||||
* | tell the spectator who's playing the moment they join. | rodri | 2023-10-07 | 1 | -2/+5 |
| | |||||
* | use a better random source. fix a bug with andys generating oob cell ↵ | rodri | 2023-10-07 | 1 | -1/+0 |
| | | | | coordinates. | ||||
* | initial implementation of an AI. | rodri | 2023-10-06 | 1 | -40/+126 |
| | | | | | | added different modes for those who want to play with others and those who prefer to play against a bot (-a flag). | ||||
* | send the matches list upon first connection. changed the syntax a bit. | rodri | 2023-09-29 | 1 | -13/+27 |
| | |||||
* | implemented spectator mode. | rodri | 2023-09-27 | 1 | -11/+45 |
| | |||||
* | initial work towards spectator mode. | rodri | 2023-09-26 | 1 | -1/+8 |
| | |||||
* | add parsecmd to the server. | rodri | 2023-09-21 | 1 | -21/+50 |
| | | | | | | | 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 | 1 | -8/+4 |
| | |||||
* | initial work on a menu of matches. | rodri | 2023-09-17 | 1 | -2/+2 |
| | | | | | also made some corrections and changed the tokenize(2) fields identifiers from cmd[] to f[]. | ||||
* | 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 |
| | |||||
* | 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 | 1 | -0/+2 |
| | |||||
* | new server architecture. | rodri | 2023-09-15 | 1 | -160/+502 |
| | |||||
* | fixed game-breaking typo. | rodri | 2023-09-10 | 1 | -1/+1 |
| | |||||
* | made playerq a Channel, turned polling into send/recv points and got rid of ↵ | rodri | 2023-09-09 | 1 | -81/+37 |
| | | | | the reaper. | ||||
* | 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 | 1 | -6/+4 |
| | | | | | | | | 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 | 1 | -7/+13 |
| | |||||
* | make playerq a fifo instead of a lifo. | rodri | 2023-09-01 | 1 | -4/+10 |
| | |||||
* | improved playerq locking. | rodri | 2023-08-31 | 1 | -14/+27 |
| | | | | wrote a little how to play guide. | ||||
* | forbid placing ships after being done with the layout. | rodri | 2023-08-30 | 1 | -0/+4 |
| | | | | | show the current ship and its length during placement. also made changes to some of the info banners. | ||||
* | implemented match conclusion logic and notification. | rodri | 2023-08-29 | 1 | -1/+9 |
| | | | | made the window un-resizable. | ||||
* | reset the boards after each game. | rodri | 2023-08-29 | 1 | -7/+17 |
| | | | | | | 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 | 1 | -6/+4 |
| | |||||
* | major development stride: | rodri | 2023-08-29 | 1 | -33/+94 |
| | | | | | | - implemented per-line msg framing - wrote most of the game logic - fixed an issue where the ship would go off-board when rotated | ||||
* | implemented most of the layout code. | rodri | 2023-08-25 | 1 | -1/+1 |
| | | | | | | added a new util.c to host the cell/coordinate conversions. made the showproc a painter thread instead, to avoid problems with menuhit(2). | ||||
* | fixed the match process cleanup procedure. | rodri | 2023-08-24 | 1 | -76/+62 |
| | |||||
* | added the rules manual. | rodri | 2023-08-16 | 1 | -32/+61 |
| | |||||
* | latest try of player mgmt procedure. (not working) | rodri | 2023-08-12 | 1 | -29/+178 |
| | |||||
* | initial commit. | rodri | 2023-08-08 | 1 | -0/+98 |