# \#playingwithprolog

**URL:** https://swi-prolog.discourse.group/tag/playingwithprolog/10.md

[Latest](https://swi-prolog.discourse.group/latest.md) · [Categories](https://swi-prolog.discourse.group/categories.md) · [Tags](https://swi-prolog.discourse.group/tags.md)

---

## [Irregular sudoku on prolog](https://swi-prolog.discourse.group/t/irregular-sudoku-on-prolog/5498)

<div class="topic-metadata">

**Author:** [@busraguleryuz](https://swi-prolog.discourse.group/u/busraguleryuz)\
**Replies:** 1\
**Last updated:** [June 15, 2022, 7:44pm UTC](https://swi-prolog.discourse.group/t/irregular-sudoku-on-prolog/5498 "2022-06-15T19:44:10Z")

</div>

hey guys. i am creating an irregular sudoku solver on swi prolog. here is my code: % :- use\_module(library(clpfd)). sudoku(Matrix):- length(Matrix, 9), maplist(same\_length(Matrix), Matrix), append(Matrix, Elems),…

---

## [Prolog: Replace the nth item in the list with the first](https://swi-prolog.discourse.group/t/prolog-replace-the-nth-item-in-the-list-with-the-first/5290)

<div class="topic-metadata">

**Author:** [@anna](https://swi-prolog.discourse.group/u/anna)\
**Replies:** 1\
**Last updated:** [April 17, 2022, 2:50pm UTC](https://swi-prolog.discourse.group/t/prolog-replace-the-nth-item-in-the-list-with-the-first/5290 "2022-04-17T14:50:29Z")

</div>

I’d like to have a Prolog predicate that can replace the nth item in the list with the first. Example: % replace(+List,+Counter,-New List, %-First Item). ?- replace(\[1,2,3,4,5\],3,L,Z). L = \[1, 2, 1, 4, 5\] Z = 1 This …

---

## ["Simply Logical: Intelligent Reasoning" as ePUB?](https://swi-prolog.discourse.group/t/simply-logical-intelligent-reasoning-as-epub/4202)

<div class="topic-metadata">

**Author:** [@halloleo](https://swi-prolog.discourse.group/u/halloleo)\
**Replies:** 0\
**Last updated:** [July 26, 2021, 3:19am UTC](https://swi-prolog.discourse.group/t/simply-logical-intelligent-reasoning-as-epub/4202 "2021-07-26T03:19:35Z")

</div>

The “Simply Logical” site offer the Prolog book " Simply Logical:Intelligent Reasoning by Example" in multiple versions as PDF, which is great. Just wanted to ask, is there is an ePUB version somewhere available too? Wo…

---

## [Playing with Prolog - Train Consists](https://swi-prolog.discourse.group/t/playing-with-prolog-train-consists/2805)

<div class="topic-metadata">

**Author:** [@anniepoo](https://swi-prolog.discourse.group/u/anniepoo)\
**Replies:** 0\
**Last updated:** [August 20, 2020, 8:58am UTC](https://swi-prolog.discourse.group/t/playing-with-prolog-train-consists/2805 "2020-08-20T08:58:57Z")

</div>

Lars and I have another one! Playing with Prolog is back with “Train Consists”, a high-concept drama where Annie, as a plucky Prolog programmer, helps Lars arrange his trains using the power of clp(fd)! t…

---

## [Ann: Playing with Prolog - Tabling](https://swi-prolog.discourse.group/t/ann-playing-with-prolog-tabling/1144)

<div class="topic-metadata">

**Author:** [@anniepoo](https://swi-prolog.discourse.group/u/anniepoo)\
**Replies:** 0\
**Last updated:** [September 2, 2019, 3:53pm UTC](https://swi-prolog.discourse.group/t/ann-playing-with-prolog-tabling/1144 "2019-09-02T15:53:10Z")

</div>

Lars is now Dr. Hupel, and that means he’s got time for such frivolities as Playing with Prolog. This episode we’ll take a look at tabling:
