git @ Cat's Eye Technologies Animals / cd8ab37
Place this distribution in the public domain. catseye 10 years ago
3 changed file(s) with 32 addition(s) and 29 deletion(s). Raw diff Collapse all Expand all
1212 with binary trees as Erlang terms. A more serious implementation would
1313 probably use a real database system, such as Mnesia.
1414
15 License
16 -------
17
18 This work is in the public domain. See the file `UNLICENSE` for more
19 information.
20
1521 Running
1622 -------
1723
0 This is free and unencumbered software released into the public domain.
1
2 Anyone is free to copy, modify, publish, use, compile, sell, or
3 distribute this software, either in source code form or as a compiled
4 binary, for any purpose, commercial or non-commercial, and by any
5 means.
6
7 In jurisdictions that recognize copyright laws, the author or authors
8 of this software dedicate any and all copyright interest in the
9 software to the public domain. We make this dedication for the benefit
10 of the public at large and to the detriment of our heirs and
11 successors. We intend this dedication to be an overt act of
12 relinquishment in perpetuity of all present and future rights to this
13 software under copyright law.
14
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
19 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21 OTHER DEALINGS IN THE SOFTWARE.
22
23 For more information, please refer to <http://unlicense.org/>
00 %%% BEGIN animals.erl %%%
11 %%%
22 %%% animals - Classic 'expert system' game of Animals, in Erlang
3 %%% Copyright (c)2002-2010 Cat's Eye Technologies. All rights reserved.
43 %%%
5 %%% Redistribution and use in source and binary forms, with or without
6 %%% modification, are permitted provided that the following conditions
7 %%% are met:
4 %%% This work is in the public domain. See UNLICENSE for more information.
85 %%%
9 %%% Redistributions of source code must retain the above copyright
10 %%% notice, this list of conditions and the following disclaimer.
11 %%%
12 %%% Redistributions in binary form must reproduce the above copyright
13 %%% notice, this list of conditions and the following disclaimer in
14 %%% the documentation and/or other materials provided with the
15 %%% distribution.
16 %%%
17 %%% Neither the name of Cat's Eye Technologies nor the names of its
18 %%% contributors may be used to endorse or promote products derived
19 %%% from this software without specific prior written permission.
20 %%%
21 %%% THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 %%% ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 %%% LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24 %%% FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25 %%% COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
26 %%% INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
27 %%% (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 %%% SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 %%% HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
30 %%% STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31 %%% ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
32 %%% OF THE POSSIBILITY OF SUCH DAMAGE.
336
347 %% @doc The classic 'expert system' demonstration game of Animals.
358 %%
4417 -module(animals).
4518 -vsn('$Id: animals.erl 531 2010-04-29 20:05:21Z cpressey $').
4619 -author('cpressey@catseye.tc').
47 -copyright('Copyright (c)2002-2010 Cat`s Eye Technologies. All rights reserved.').
20 -copyright('This work is in the public domain; see UNLICENSE for more info').
4821
4922 -export([start/0]).
5023