Skip to content

Latest commit

 

History

History

6

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Picat: Part 1, Part 2

Another fairly easy puzzle that's amenable to an imperative-style solution.

Part 1

No major problems here, although it's still not clear how best to parse complicated text input. Something like Parsec, or Rust's scan_fmt would be sweet. I'm getting a little quicker debugging with some of Picat's less informative error messages:

*** error(failed,main/0)

In this case I think it was a partial function that failed to match on its arguments. It would probably be more helpful for Picat to report which function it was trying to call, from where.

Part 2

A small step beyond part 1, nothing scary.