| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
coordinates.
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
show the current ship and its length during placement.
also made changes to some of the info banners.
|
|
|
|
| |
made the window un-resizable.
|
|
|
|
|
|
| |
only change turns if the shot was valid.
show the opponent's hits on localboard.
keep the orientation for consecutive ships while outlaying.
|
|
|
|
|
|
| |
- implemented per-line msg framing
- wrote most of the game logic
- fixed an issue where the ship would go off-board when rotated
|
|
added a new util.c to host the cell/coordinate conversions.
made the showproc a painter thread instead, to avoid
problems with menuhit(2).
|