Click here to Skip to main content
Sign Up to vote bad
good
See more: C++
I have to do an homework in prolog:please help meeeeeeeee
 
the frog jumping puzzle consists of 6 frogs,3 of which are green(on the left) and 3 of which are brown (on the right) sitting on either sides.The objective of the puzzle is to switch their sides i.e. all green frogs to go to the right and all brown frogs to go to the left.
 
legal moves:
1.A frog can only jump to an empty water-lily.
2.A frog can only jump over at most one other frog of different color.
3.A frog can only jump forward(in direction they are facing,i.e. green frogs jump right and brown frogs jump left).
 
Write program in PROLOG that sovles the above problem
Posted 45 mins ago

Comments
We do not assist school cheating. And you should be really interested to do your assignments by yourself. —SA
Hamza Dabjan - 32 mins ago
prolog is very difficult language... thanks for your advice any way
You are welcome. Thank you for understanding. —SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 533
1 Maciej Los 395
2 OriginalGriff 370
3 Dave Kreskowiak 270
4 Mohammed Hameed 263
0 Sergey Alexandrovich Kryukov 5,477
1 OriginalGriff 4,532
2 CPallini 2,667
3 Róhãn Lëuvä 2,337
4 Tadit Dash 1,443


Advertise | Privacy | Mobile
Web04 | 2.6.130513.1 | Last Updated 13 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid