1) When randomly placing ships, allow them to be anywhere on the board
authorSascha Wildner <swildner@dragonflybsd.org>
Wed, 15 Jun 2005 20:59:13 +0000 (20:59 +0000)
committerSascha Wildner <swildner@dragonflybsd.org>
Wed, 15 Jun 2005 20:59:13 +0000 (20:59 +0000)
commit41430d77c236cc30478fd62bca32d8a73eb1adcb
tree419ca4226a017314d0f3e5822cc3de0036d6c79c
parent4986965bf9338066926452c12ce80de6479471d0
1) When randomly placing ships, allow them to be anywhere on the board
   instead of unconditionally restricting the range of the random number
   by the ship's length.

2) Fix an off by one error in checkplace(). The ship starts on the current
   position.

Fix 1 submitted by: Craig Dooley <xlnxminusx@gmail.com>
games/bs/bs.c