-
Notifications
You must be signed in to change notification settings - Fork 2
/
field.ads
28 lines (26 loc) · 1.14 KB
/
field.ads
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
-- Mine Detector Game
-- Copyright (C) 2014 by PragmAda Software Engineering. All rights reserved.
-- **************************************************************************
--
-- Encapsulates the definition of the mine field
--
-- V7.0 2014 Dec 01 First Gnoga version
--
package Field is
subtype Valid_Row is Positive range 1 .. 16; -- Size of the mine field
subtype Valid_Column is Positive range 1 .. 30;
type Cell_Location is record
Row : Valid_Row := 1;
Column : Valid_Column := 1;
end record;
subtype Valid_Count is Natural range 0 .. 9; -- Count of # of mines in a cell & its neighbors
end Field;
--
-- This is free software; you can redistribute it and/or modify it under
-- terms of the GNU General Public License as published by the Free Software
-- Foundation; version 2.
-- This software is distributed in the hope that it will be useful, but WITH
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
-- for more details. Free Software Foundation, 59 Temple Place - Suite
-- 330, Boston, MA 02111-1307, USA.