From owner-freebsd-bugs Sat Oct 3 08:20:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA17339 for freebsd-bugs-outgoing; Sat, 3 Oct 1998 08:20:10 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA17331 for ; Sat, 3 Oct 1998 08:20:07 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id IAA19881; Sat, 3 Oct 1998 08:20:01 -0700 (PDT) Received: from mail.tower.net.au (orion.tower.net.au [203.22.233.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA16862 for ; Sat, 3 Oct 1998 08:12:21 -0700 (PDT) (envelope-from anthony@dino.omen.com.au) Received: from s2-15.staronline.com.au ([203.18.142.215]) by mail.tower.net.au with esmtp id m0zPTLj-000SgJC (Smail-3.2.0.92 1997-Feb-9 #2); Sat, 3 Oct 1998 23:11:59 +0800 (WST) Message-Id: <199810032313.XAA01271@magenta.tower.net.au> Date: Sat, 3 Oct 1998 23:13:48 GMT From: lemonpie@tower.net.au Reply-To: lemonpie@tower.net.au To: anthony@indigo.tower.net.au X-Send-Pr-Version: 3.2 Subject: bin/8134: Bug in Battleship (Salvo Mode) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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