aboutsummaryrefslogtreecommitdiff
path: root/fns.h
Commit message (Collapse)AuthorAgeFilesLines
* bts: add vfx. use stringn instead of string.rodri2024-11-151-0/+16
|
* make cell2coords thread-safe.rodri2023-10-071-1/+1
|
* use a better random source. fix a bug with andys generating oob cell ↵rodri2023-10-071-0/+2
| | | | coordinates.
* initial implementation of an AI.rodri2023-10-061-0/+6
| | | | | | added different modes for those who want to play with others and those who prefer to play against a bot (-a flag).
* added a border to the boards and corrected a bug when placing a ship.rodri2023-09-281-1/+1
| | | | | | | | | the bug allowed the player to move the ship when the cursor was outside the board in the negative side of its rframe. by using floor(2) instead of a cast to int the problem is over.
* implemented spectator mode.rodri2023-09-271-0/+1
|
* initial work towards spectator mode.rodri2023-09-261-0/+2
|
* add parsecmd to the server.rodri2023-09-211-0/+7
| | | | | | | 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.rodri2023-09-201-0/+7
|
* new server architecture.rodri2023-09-151-0/+2
|
* forbid placing ships after being done with the layout.rodri2023-08-301-0/+1
| | | | | show the current ship and its length during placement. also made changes to some of the info banners.
* implemented match conclusion logic and notification.rodri2023-08-291-0/+1
| | | | made the window un-resizable.
* reset the boards after each game.rodri2023-08-291-0/+1
| | | | | | only change turns if the shot was valid. show the opponent's hits on localboard. keep the orientation for consecutive ships while outlaying.
* major development stride:rodri2023-08-291-0/+4
| | | | | | - 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.rodri2023-08-251-0/+6
| | | | | | added a new util.c to host the cell/coordinate conversions. made the showproc a painter thread instead, to avoid problems with menuhit(2).
* initial commit.rodri2023-08-081-0/+8