Closed drbeco closed 8 years ago
% world_setup(Randomness, Topology, Size, Movement, Actions, Tries, Gold, Pit, Bat)
% Randomness: - fig62 (implies Topology=grid, Size=4, Movement=stander)
% - random (implies Size range [2-9] or 20) (default)
% - pit3 (implies Size range [3-9] or 20)
% Topology: - grid (default)
% - dodeca (aka dodecahedron original map)
% Size: - 4, grid, fig62
% - [2-9] grid, random (default 4)
% - [3-9] grid, pit3
% - 20, dodeca
% Movement: - stander (does not move at all) (default)
% - walker (moves when hears shoot)
% - runner (moves all the time)
% Actions: - 2 to 200, number of maximum agent actions allowed (default 64)
% Tries: - Number of trials (default 1)
% Gold: - Gold probability per square. When fig62 or pit3, only
% one gold. (default 0.1)
% Pit: - Pit probability per square. When fig62 or pit3, only
% 3 pits. (default 0.2)
% Bat: - yes or no. When fig62, no. (default no)
Commit: d9320f263d6762997e44aa529bf8b8f3bff201f4
% world_setup([Size, Type, Move, Gold, Pit, Bat])
%
% 1. Size: 2..20, with some constrictions: [2-9] grid; 20, dodeca; 4, fig62
% 2. Type: fig62, grid or dodeca
% 3. Move: stander, walker, runner (wumpus movement)
% 4. Gold: Integer G>0 is deterministic number, float from 0.0<G<1.0 is probabilistic
% 5. Pits: Idem, 0 is no pits.
% 6. Bats: Idem, 0 is no bats.
%
% Actions: Fixed at 4 actions per square
% Tries: fixed at 1 single try
%
% examples:
% world_setup([4, grid, stander, 0.1, 0.2, 0.1])). % default
% world_setup([5, grid, stander, 1, 3, 1]). % size 5, 1 gold, 3 pits and 1 bat
% world_setup([4, fig62, stander, 1, 3, 0]). % size 4, 1 gold, 3 pits and 0 bats
Done version 3.1
Wumpus: just 1
A more clean code.
Pits - number or probability Gold - number or probability Bat - number or probability Wumpus - fixed 1? or number or probability? Lets see...