<feed xmlns='http://www.w3.org/2005/Atom'>
<title>metasol/centre.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>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 rules file for Canfield</title>
<updated>2019-02-20T14:29:41+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2019-02-20T14:29:41+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/4th-year-coursework/metasol/commit/?id=e03ce66f47b880ac954c2f9172ecd387c1ee1e06'/>
<id>e03ce66f47b880ac954c2f9172ecd387c1ee1e06</id>
<content type='text'>
It seems like Canfield may need a longer timeout on the voters, but for
the .json rules seem to describe the game accurately.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It seems like Canfield may need a longer timeout on the voters, but for
the .json rules seem to describe the game accurately.
</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>Split Solvitaire k+ moves into stock moves</title>
<updated>2019-02-17T00:16:12+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2019-02-17T00:16:12+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/4th-year-coursework/metasol/commit/?id=5fb3cdc6faee083ceb43dee168b440c92ba951ad'/>
<id>5fb3cdc6faee083ceb43dee168b440c92ba951ad</id>
<content type='text'>
In Solvitaire, going through the stock in stock-waste games is bundled
with the move out of the waste, in what's called a k-plus move. This
makes sense in Solvitaire, but in this system having each stock move be
explicit helps because it itemises all moves similarly, making shaving
off single moves easy.

The `calculate_stock_moves` function uses a simulation rather than a
simple calculation, which has a couple of downsides:
1. it's slower than a calculation;
2. it loops infinitely when given an index that's impossible to reach.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In Solvitaire, going through the stock in stock-waste games is bundled
with the move out of the waste, in what's called a k-plus move. This
makes sense in Solvitaire, but in this system having each stock move be
explicit helps because it itemises all moves similarly, making shaving
off single moves easy.

The `calculate_stock_moves` function uses a simulation rather than a
simple calculation, which has a couple of downsides:
1. it's slower than a calculation;
2. it loops infinitely when given an index that's impossible to reach.
</pre>
</div>
</content>
</entry>
<entry>
<title>Solve a Klondike deal</title>
<updated>2019-02-11T19:29:40+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2019-02-11T19:29:40+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/4th-year-coursework/metasol/commit/?id=556867ce14441ca559a3d80793dfece07bb79d73'/>
<id>556867ce14441ca559a3d80793dfece07bb79d73</id>
<content type='text'>
The solver can now solve a Klondike deal! Use seed 5 to generate a deal
that seems to always be solvable.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The solver can now solve a Klondike deal! Use seed 5 to generate a deal
that seems to always be solvable.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for reading rules from .json files</title>
<updated>2019-02-01T15:53:27+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2019-02-01T15:53:27+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/4th-year-coursework/metasol/commit/?id=912a11b8bc173fada75815fb4f740cd11879205b'/>
<id>912a11b8bc173fada75815fb4f740cd11879205b</id>
<content type='text'>
Game rules can now be read from .json files passed as argument with
`-r`/`--rules` on the command-line. The rules descriptions are built on
top of sane default rules, so some rules can be omitted.

Without a rules file specified, `centre` plays canfield.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Game rules can now be read from .json files passed as argument with
`-r`/`--rules` on the command-line. The rules descriptions are built on
top of sane default rules, so some rules can be omitted.

Without a rules file specified, `centre` plays canfield.
</pre>
</div>
</content>
</entry>
</feed>
