Skip to main content
0 votes
0 answers
116 views

Quiz Quest: There has been a keenly fought quiz among five teams. The losers did not quite live up to their name and finish fourth. The numbskulls were not the team who took movies as a special ...
Ritta Neg-Mfa's user avatar
0 votes
0 answers
69 views

I'll preface this with the prompt I have to follow: Bobby went to Truman Theaters. Taking a quick glance around, he can see that a different movie is playing on each screen (1 through 10) and that ...
oP41No2's user avatar
  • 11
0 votes
0 answers
97 views

Below is a Prolog problem in my textbook that is a variation of the Zebra problem. Instead of the original, it asks you to find the location of the pizza out of 4 people who each ordered a unique food ...
scumjag's user avatar
0 votes
0 answers
81 views

I need to solve this problem with a Prolog code in SWISH: " In a quiet street located in a galaxy far, far away, there are five houses, each of a different color. In each house lives a person of ...
majas's user avatar
  • 9
1 vote
1 answer
149 views

I am trying to create a prolog predicate to solve this zebra problem however It keeps on running indefinitely and does not produce a result, how can I fix this. Here is the Zebra Problem: The five ...
guy43535453's user avatar
0 votes
2 answers
356 views

I am playing the game Dishonored 2 There is a puzzle in the game, see the picture below (no spoilers). Riddle Naturally I wanted to solve this using Prolog. I have looked around and other people have ...
CricGuru's user avatar
1 vote
3 answers
295 views

I started to learn Prolog and I can't solve a difficult task for me. On Halloween, three friends - Bob, Mark, Alex, chose the costumes of three ghosts: a ghost, a zombie, a werewolf. It is known that: ...
Tempos's user avatar
  • 23
0 votes
1 answer
49 views

` import itertools def imright(h1, h2): "House h1 is immediately right of h2 if h1-h2 == 1." return h1-h2 == 1 def nextto(h1, h2): "Two houses are next to each other if ...
Ilke Yigiter's user avatar
1 vote
3 answers
340 views

I've seen a few posts on SO discussing this puzzle, but they seem to be aimed at fast execution and I don't really understand what's going on. I'm trying to keep it very simple and want to write ...
LearnDude's user avatar
  • 123
-1 votes
1 answer
140 views

I have the following table (I have covered up the current_holder column for privacy reasons): For each row, I want to find the number of times we could pull 4 unique objects out of a bag (the objects ...
locket's user avatar
  • 761
0 votes
2 answers
221 views

the rules are five students won five different places in five different disciplines - Alex, Bob, John, Deo, Sam. The language student placed higher than Bob as much as Bob placed higher than the law ...
user avatar
1 vote
2 answers
213 views

I want to solve this logic puzzle with Prolog without using any built-in functions or libraries. The problem is I don't know how to formulate the negative terms in the code. The negative terms are in ...
Kadam's user avatar
  • 23
0 votes
1 answer
53 views

I'm trying to learn swi-prolog and I'm struggling with the following question. The question goes: Vanessa, Mary and Penny study chemistry, biology and math, in countries Spain, Portugal, Venezuela. It ...
dzhanerhasan's user avatar
3 votes
1 answer
182 views

I am working on an assignment and I have to write a prolog program to solve a puzzle where there are 5 rooms and there are five people, Hunter, Laura, Arnie, Addiley and Ramey. Hunter cannot be in ...
Nic Ceccanti's user avatar
0 votes
0 answers
82 views

A family has 5 children. Their ages: 4, 5, 6, 7 and 8 years old. Their names: Rose, Becca, Iona, Stu, Rob. Each of them has a talent: piano, math, violin, literature, computer. I need to find out each ...
Yuki's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
8