ivapylibs / puzzle_solver

1 stars 2 forks source link

Code: puzzle.solver.twoAgent #21

Closed pv33 closed 3 years ago

pv33 commented 3 years ago

Added a two agent solver class.

Test script should do heavy lifting for now. As in the test script has the puzzle play loop and the display functions within it, then calls the turn taking member function of the two agent system.

I am assuming that python classes as handles by default and that updates by the agents will be recognized since they have handles to the same puzzle instances. Please confirm this assumption for me by replying yes to the message. If not, then explain how python manages class instances and how to create a handle versus value class.

Uio96 commented 3 years ago

I am assuming that python classes as handles by default and that updates by the agents will be recognized since they have handles to the same puzzle instances. Please confirm this assumption for me by replying yes to the message. If not, then explain how python manages class instances and how to create a handle versus value class.

Your assumption is correct and I have finished this task.

pv33 commented 3 years ago

@Uio96 Missing animated video as documented evidence.

Uio96 commented 3 years ago

Similar to https://github.com/ivapylibs/puzzle_solver/issues/19#issuecomment-899083769, but will also display the current agent status on the title.