Date: Sat, 3 Oct 1998 23:13:48 GMT From: lemonpie@tower.net.au To: anthony@indigo.tower.net.au Subject: bin/8134: Bug in Battleship (Salvo Mode) Message-ID: <199810032313.XAA01271@magenta.tower.net.au>
next in thread | raw e-mail | index | archive | help
>Number: 8134 >Category: bin >Synopsis: End of game is not recognised immediately in salvo mode. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 3 08:20:01 PDT 1998 >Last-Modified: >Originator: Anthony Di Pietro >Organization: >Release: FreeBSD 3.0-BETA i386 >Environment: FreeBSD-current running on a Pentium 200MMX with 32M RAM. >Description: When playing battleship (/usr/games/bs) in salvo mode (ie using the -s option), if you destroy all of the computer's ships, but still have one or more shots remaining in your salvo, the game does not recognize your victory until you finish your salvo. >How-To-Repeat: Play in salvo mode and beat the computer mid-salvo. When I did it, I was firing two shots at a time (2 ships left) and the computer was firing one shot at a time (1 ship left). I destroyed his last ship with my first shot, and the game didn't end until I fired my other shot. >Fix: I haven't looked at the source, but I suppose you aren't checking whether the game has ended after every shot, but rather at the end of every turn. If you check after every shot, things should work properly, I guess. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810032313.XAA01271>