<feed xmlns='http://www.w3.org/2005/Atom'>
<title>metasol/metasol.cpp, branch trh/multirun</title>
<subtitle>General Solitaire solver that avoids using hidden information</subtitle>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/4th-year-coursework/metasol/'/>
<entry>
<title>Add indefinite running</title>
<updated>2019-04-03T20:00:53+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2019-04-03T19:27:37+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/4th-year-coursework/metasol/commit/?id=6aa9e916a7420f57dbdc041cb586d0a23bb11264'/>
<id>6aa9e916a7420f57dbdc041cb586d0a23bb11264</id>
<content type='text'>
centre can now be run indefinitely, attempting to solve games
incrementally, by passing it the -f flag.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
centre can now be run indefinitely, attempting to solve games
incrementally, by passing it the -f flag.
</pre>
</div>
</content>
</entry>
<entry>
<title>Prepare for solvability calculations</title>
<updated>2019-04-02T19:08:17+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2019-04-02T19:08:17+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/4th-year-coursework/metasol/commit/?id=9804c8661a3faea88d8a91d05287aaf480ca116e'/>
<id>9804c8661a3faea88d8a91d05287aaf480ca116e</id>
<content type='text'>
New fucntions have been implemented to allow for the integration into
centre of the calculation of solvability percentages, through
mass-solving games.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
New fucntions have been implemented to allow for the integration into
centre of the calculation of solvability percentages, through
mass-solving games.
</pre>
</div>
</content>
</entry>
<entry>
<title>Skip to 'solved' when there are no hidden cards</title>
<updated>2019-02-25T15:42:38+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2019-02-25T15:42:38+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/4th-year-coursework/metasol/commit/?id=332a8262cca7edbc43c702f3c9b055bf044ccb2c'/>
<id>332a8262cca7edbc43c702f3c9b055bf044ccb2c</id>
<content type='text'>
If a game-state can be solved by a voter from a position where there are
no hidden cards, the game can be solved by metasol also. The rest of the
game can be skipped, which saves time.

If the sequence of moves taken is required, the remaining moves can be
taken from a successful voter.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a game-state can be solved by a voter from a position where there are
no hidden cards, the game can be solved by metasol also. The rest of the
game can be skipped, which saves time.

If the sequence of moves taken is required, the remaining moves can be
taken from a successful voter.
</pre>
</div>
</content>
</entry>
<entry>
<title>Check for majority moves after regular move</title>
<updated>2019-02-25T14:49:54+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2019-02-25T14:49:54+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/4th-year-coursework/metasol/commit/?id=1f9089849f964b28158144fce2d053149cf8a312'/>
<id>1f9089849f964b28158144fce2d053149cf8a312</id>
<content type='text'>
Previously, majority moves were checked for before regular moves. This
would usually result in time wasted after a reveal-reset.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, majority moves were checked for before regular moves. This
would usually result in time wasted after a reveal-reset.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add documentation for metasol.hpp</title>
<updated>2019-02-22T16:18:23+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2019-02-22T16:18:23+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/4th-year-coursework/metasol/commit/?id=17d294a063e94aaeab82f4b643d0855d5868889b'/>
<id>17d294a063e94aaeab82f4b643d0855d5868889b</id>
<content type='text'>
Adding doxygen documentation should help people understand the use for
metasol.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adding doxygen documentation should help people understand the use for
metasol.
</pre>
</div>
</content>
</entry>
<entry>
<title>Clean up rule description files</title>
<updated>2019-02-21T16:30:32+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2019-02-21T16:30:32+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/4th-year-coursework/metasol/commit/?id=da3b449ee61fc03eef5f19a8189d4cfcfd000674'/>
<id>da3b449ee61fc03eef5f19a8189d4cfcfd000674</id>
<content type='text'>
The files for describing rules have changed a bit: they are no longer
`.json` files (although they are still parsed by a JSON parser). The
description files are now their own format, with a little less
boilerplate required than for JSON files.

As a result, rule description files can be given shebangs and be made
executable, allowing a user to run the rule file instead of `centre`
directly. The rules files in the repository are set up to run `centre`
if it is on the user's path.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The files for describing rules have changed a bit: they are no longer
`.json` files (although they are still parsed by a JSON parser). The
description files are now their own format, with a little less
boilerplate required than for JSON files.

As a result, rule description files can be given shebangs and be made
executable, allowing a user to run the rule file instead of `centre`
directly. The rules files in the repository are set up to run `centre`
if it is on the user's path.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for Golf</title>
<updated>2019-02-19T12:35:26+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2019-02-19T12:35:26+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/4th-year-coursework/metasol/commit/?id=dc440022e1a8f148877dd3e57db4468da0a0b314'/>
<id>dc440022e1a8f148877dd3e57db4468da0a0b314</id>
<content type='text'>
A few changes were needed to support Golf: `hole_build_loop` had to be
implemented, as well as the `STOCK_TO_HOLE` stock deal method.

The solver doesn't seem very good at Golf, although there may be a bug
or missing rule causing this.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A few changes were needed to support Golf: `hole_build_loop` had to be
implemented, as well as the `STOCK_TO_HOLE` stock deal method.

The solver doesn't seem very good at Golf, although there may be a bug
or missing rule causing this.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add Will-o-the-wisp rules, reorganise main loop</title>
<updated>2019-02-18T15:39:28+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2019-02-18T15:39:28+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/4th-year-coursework/metasol/commit/?id=e721c537f47b77a86ec4541bbe44c4ae94489b84'/>
<id>e721c537f47b77a86ec4541bbe44c4ae94489b84</id>
<content type='text'>
Also, the solvability (and the solved-ness) of a game-state is not
checked between majority-vote moves.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also, the solvability (and the solved-ness) of a game-state is not
checked between majority-vote moves.
</pre>
</div>
</content>
</entry>
<entry>
<title>Reveal stock cards if stock redeals allowed</title>
<updated>2019-02-17T13:28:15+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2019-02-17T13:28:15+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/4th-year-coursework/metasol/commit/?id=b3a3e8bf17dd338ea72ec3f3dbb8f0b9935ee940'/>
<id>b3a3e8bf17dd338ea72ec3f3dbb8f0b9935ee940</id>
<content type='text'>
If stock redeals are allowed, then the player can go through the stock
once at the start of the game and reset it, bringing the game back to
the original game state. This allows the player to see all cards in the
stock, even if the stock isn't explicitly face-up.

This can be used to reduce the number of voters run, since the stock
will not be hidden and fewer reveals means fewer full resets. As such,
this optimisation seems to reduce solving time by roughly half.

This optimisation also theoretically increases solvability percentages
in affected games, since the system has fewer face-down cards to
generate misleading permutations with.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If stock redeals are allowed, then the player can go through the stock
once at the start of the game and reset it, bringing the game back to
the original game state. This allows the player to see all cards in the
stock, even if the stock isn't explicitly face-up.

This can be used to reduce the number of voters run, since the stock
will not be hidden and fewer reveals means fewer full resets. As such,
this optimisation seems to reduce solving time by roughly half.

This optimisation also theoretically increases solvability percentages
in affected games, since the system has fewer face-down cards to
generate misleading permutations with.
</pre>
</div>
</content>
</entry>
<entry>
<title>Skip voting if majority already established</title>
<updated>2019-02-17T13:01:09+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2019-02-17T13:01:09+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/4th-year-coursework/metasol/commit/?id=fc17f4dd450e2a1e0658779ba84b733b0ec86863'/>
<id>fc17f4dd450e2a1e0658779ba84b733b0ec86863</id>
<content type='text'>
If there is a number of voters that agree on the next move that is a
majority, then it is unnecessary to run more voters as they cannot
affect the outcome.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If there is a number of voters that agree on the next move that is a
majority, then it is unnecessary to run more voters as they cannot
affect the outcome.
</pre>
</div>
</content>
</entry>
</feed>
