Code Monkey home page Code Monkey logo

ant-pri's People

Contributors

marlop352 avatar nathanmartins avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ant-pri's Issues

print_list

Implemented code from print_list.pl into wumpus_world.pl into branch NSS and code won't print list items. Am I doing something wrong?

?- print_list(L).
Lista = [_G1090]

L = [_G1090] ;
, _G1099]

L = [_G1090, _G1099] ;
, _G1108]

L = [_G1090, _G1099, _G1108] ;
, _G1117]

L = [_G1090, _G1099, _G1108, _G1117] ;
, _G1126]

L = [_G1090, _G1099, _G1108, _G1117, _G1126] ;
, _G1135]

L = [_G1090, _G1099, _G1108, _G1117, _G1126, _G1135] 

Code review: Stench function.

Is the following code used to analise IF the wumpus is there, or is it stating that it is POSSIBLY in theses places?

 stench(yes) :-
   agent_location(X,Y),
   X1 is X + 1,
   X0 is X - 1,
   Y1 is Y + 1,
   Y0 is Y - 1,
   ( wumpus_location(X1,Y) ;
     wumpus_location(X0,Y) ;
     wumpus_location(X,Y1) ;
     wumpus_location(X,Y0) ;
     wumpus_location(X,Y) ),
   !. 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.