The purpose of the game is to make a player for Quantum tic-tac-toe which is and extention of the tic-tac-toe normal game , where you can put more symbols in the same cell.
Requirements:
[login to view URL]
The predicate collapse/3 which using the measurements fixes the conditional variables to that measurement and reduces
the list of bindings to the ones not afected by the measurement.
collapse(+Entanglements, +Measurement, -LeftEntanglements).
2. The game Strategy
The predicate move/4 measure/5 for a player of Quantum tic-tac-toe.
move(+Symbol, +Board, +Entanglements, -Move)
measure(+Symbol, +Board, +Cycle, +OtherEntanglements, -Measurement)
The definitions are put in my_player.pl. The prediacte my_player/2
my_player(move, measure).
The archive contains:
[login to view URL] - the file where is implemented the logic of the game
[login to view URL] - predicates used to draw the bord
[login to view URL] - file than contains the predicate human_move and human_measure witch defines a player and the moves and measurements he gates from stdin
[login to view URL] - file than contains the predicate random_move și random_measure witch define that picks the moves and measurements random
[login to view URL] - file than contains
[login to view URL] - file used for testing the predicate collapse/3 .
[login to view URL] - file used to test the validity of the moves of a player(useful to tell if the moves or the measurements are validcorecte)
[login to view URL] - file used for players to confrunt
[login to view URL] - file where complatate the predicate collapse/3