From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e4042699db4db63b X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Thu, 12 Mar 2009 18:16:19 +0100 From: Georg Bauhaus User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Newbie question References: <49b90e2d$0$2847$ba620e4c@news.skynet.be> In-Reply-To: <49b90e2d$0$2847$ba620e4c@news.skynet.be> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <49b94364$0$31874$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 12 Mar 2009 18:16:20 CET NNTP-Posting-Host: 003a3c71.newsspool3.arcor-online.net X-Trace: DXC=B7c>V4X:0B8T2Rfi6 Olivier Scalbert schrieb: > But I can not have an empty square ! You can have an empty square. Just say so :-) Yet another option might be this one: type Color_T is (White, Black, Transparent); type PieceType_T is (Pawn, Knight, Bishop, Rook, Queen, King, Ghost); type Piece_T is record Color: Color_T; PieceType: PieceType_T; end record; type Square_Index is range 1 .. 64; type Board_T is array(Square_Index) of Piece_T; Empty_Square: constant Piece_T := (Color => Transparent, PieceType => Ghost); The distinction between empty square or figure is thus moved from a variant record to testing for a special, colorless ghost.