public class WumpusSolver extends AbstractWumpusSolver implements QuagentExecution
Modifier and Type | Field and Description |
---|---|
Client |
agent |
boolean[][] |
breeze |
boolean[][] |
explored |
boolean |
found_wumpus |
boolean[][] |
glitter |
edu.rochester.cs.quagents3.client.WumpusSolver.GUI |
gui |
boolean |
killed_wumpus |
boolean[][] |
pits |
boolean[][] |
safe |
boolean[][] |
stench |
int |
wump_x |
int |
wump_y |
boolean[][] |
wumpus |
int |
wumpus_count |
Constructor and Description |
---|
WumpusSolver(int x,
int y,
GOD director) |
Modifier and Type | Method and Description |
---|---|
void |
executeCode() |
void |
explore() |
boolean |
getBreeze(int x,
int y) |
boolean |
getExplored(int x,
int y) |
boolean |
getGlitter(int x,
int y) |
boolean |
getPit(int x,
int y) |
boolean |
getSafe(int x,
int y) |
void |
getSensor() |
boolean |
getStench(int x,
int y) |
boolean |
getWumpus(int x,
int y) |
static void |
main(java.lang.String[] argv) |
boolean |
moveTo(int x,
int y) |
void |
setBreeze(int x,
int y,
boolean val) |
void |
setExplored(int x,
int y,
boolean val) |
void |
setGlitter(int x,
int y,
boolean val) |
void |
setPit(int x,
int y,
boolean val) |
void |
setSafe(int x,
int y,
boolean val) |
void |
setStench(int x,
int y,
boolean val) |
void |
setWumpus(int x,
int y,
boolean val) |
void |
test() |
void |
update(int x,
int y) |
faceDirection, move, sense
public Client agent
public boolean[][] breeze
public boolean[][] stench
public boolean[][] glitter
public boolean[][] pits
public boolean[][] wumpus
public boolean[][] explored
public boolean[][] safe
public boolean found_wumpus
public boolean killed_wumpus
public int wump_x
public int wump_y
public int wumpus_count
public edu.rochester.cs.quagents3.client.WumpusSolver.GUI gui
public WumpusSolver(int x, int y, GOD director)
public void getSensor()
public boolean moveTo(int x, int y)
public void explore()
public void update(int x, int y)
public void test()
public void setBreeze(int x, int y, boolean val)
public boolean getBreeze(int x, int y)
public void setStench(int x, int y, boolean val)
public boolean getStench(int x, int y)
public void setGlitter(int x, int y, boolean val)
public boolean getGlitter(int x, int y)
public void setExplored(int x, int y, boolean val)
public boolean getExplored(int x, int y)
public void setWumpus(int x, int y, boolean val)
public boolean getWumpus(int x, int y)
public void setPit(int x, int y, boolean val)
public boolean getPit(int x, int y)
public void setSafe(int x, int y, boolean val)
public boolean getSafe(int x, int y)
public void executeCode()
executeCode
in interface QuagentExecution
public static void main(java.lang.String[] argv) throws java.net.UnknownHostException, java.io.IOException
java.net.UnknownHostException
java.io.IOException