/Hecatomb-Pinwheel-PLOG

Two projects made using the Prolog language. One of them is a two-player game and the other is a puzzle which uses constraint logic programming notions.

Primary LanguageProlog

Hecatomb

Rules (source):

The game is played by two players on a board of 8 by 8 squares. Each player has 32 pieces: 31 queens and one king. The kings are positioned in the opening setup on e1 (for white) and e8 (for black); the other squares each contain a queen: a white one on each square (except e1) of the first four rows, and a black one on each square (except e8) of the last four rows. Apart from this particular opening setup, the game is played following all applicable rules of chess.

Hecatomb

Pinwheel Puzzle

Rules (source):

Hard version: arrange the tiles such that all 9 blades add to 20, including the number on the frame. Easy version: disregard the numbers on the frame and arrange the tiles such that all blades add to 15.

Pinwheel

Pinwheel Puzzle developed alongside Pedro Fraga

Both games were developed in an academical context (Logical Programming course).

Both games are in portuguese language only.