<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.board18.org/index.php?action=history&amp;feed=atom&amp;title=The_DRAFT1846Last_Page</id>
	<title>The DRAFT1846Last Page - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.board18.org/index.php?action=history&amp;feed=atom&amp;title=The_DRAFT1846Last_Page"/>
	<link rel="alternate" type="text/html" href="https://wiki.board18.org/index.php?title=The_DRAFT1846Last_Page&amp;action=history"/>
	<updated>2026-06-18T07:41:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.0</generator>
	<entry>
		<id>https://wiki.board18.org/index.php?title=The_DRAFT1846Last_Page&amp;diff=3080&amp;oldid=prev</id>
		<title>Rich at 14:44, 28 October 2020</title>
		<link rel="alternate" type="text/html" href="https://wiki.board18.org/index.php?title=The_DRAFT1846Last_Page&amp;diff=3080&amp;oldid=prev"/>
		<updated>2020-10-28T14:44:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:44, 28 October 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l63&quot;&gt;Line 63:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 63:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It only needs to check for errors and it only needs to report  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It only needs to check for errors and it only needs to report  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;the first error.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;the first error.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Design]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rich</name></author>
	</entry>
	<entry>
		<id>https://wiki.board18.org/index.php?title=The_DRAFT1846Last_Page&amp;diff=2799&amp;oldid=prev</id>
		<title>Rich: Created page with &quot;{{Draft1846 Design Document Index}} The draft1846Last page is called from an email generated by a previous iteration of draft1846Last or by draft1846Next.&lt;br&gt;   This page hand...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.board18.org/index.php?title=The_DRAFT1846Last_Page&amp;diff=2799&amp;oldid=prev"/>
		<updated>2020-05-21T21:09:32Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Draft1846 Design Document Index}} The draft1846Last page is called from an email generated by a previous iteration of draft1846Last or by draft1846Next.&amp;lt;br&amp;gt;   This page hand...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Draft1846 Design Document Index}}&lt;br /&gt;
The draft1846Last page is called from an email generated by&lt;br /&gt;
a previous iteration of draft1846Last or by draft1846Next.&amp;lt;br&amp;gt;  &lt;br /&gt;
This page handles the special case when only one private&lt;br /&gt;
and no blank cards are left to be chosen. &amp;lt;br&amp;gt;If the active&lt;br /&gt;
player takes the private the draft is over. &amp;lt;br&amp;gt;But if he &lt;br /&gt;
passes then the draft1846Last page&lt;br /&gt;
sends an email to the next player for him to take his turn.&lt;br /&gt;
&lt;br /&gt;
== function getDraftResult(result) ==&lt;br /&gt;
The getDraftResult function is the call back function for &lt;br /&gt;
the ajax call to getDraft.php. It checks that it is the  &lt;br /&gt;
current players turn and sets up the first part of the  &lt;br /&gt;
draft1846Last page.&lt;br /&gt;
 &lt;br /&gt;
Output from getDraft.php is a json encoded array.   &lt;br /&gt;
The &amp;quot;return&amp;quot; value will be either &amp;quot;success&amp;quot; or &amp;quot;fail&amp;quot;. If &lt;br /&gt;
it is &amp;quot;fail&amp;quot; then it will be the only item in the array.&lt;br /&gt;
If the &amp;quot;return&amp;quot; value is &amp;quot;success&amp;quot;, then the rest of the&lt;br /&gt;
array will be the json string from the specified table row.&lt;br /&gt;
&lt;br /&gt;
== function processLastSelection() ==&lt;br /&gt;
The processLastSelection function uses the last card   &lt;br /&gt;
to update the current player&amp;#039;s hand.It then calls updateDraft.php to &lt;br /&gt;
update the draft record. &lt;br /&gt;
&lt;br /&gt;
== function processPass() ==&lt;br /&gt;
The processPass function saves the updated  &lt;br /&gt;
value of D1846.draft.cpd to the database.   &lt;br /&gt;
It then causes updateDraftResult to send&lt;br /&gt;
an email to the next player.&lt;br /&gt;
&lt;br /&gt;
== function updateDraftResult(result) ==&lt;br /&gt;
The updateDraftResult function is the call back function for &lt;br /&gt;
the ajax calls to updateDraft.php. It checks for collisions.&lt;br /&gt;
Then I checks if the draft has completed. If the draft is &lt;br /&gt;
over then it calls the finishDraft() function.&lt;br /&gt;
 &lt;br /&gt;
If the draft is not over then the next player needs to be &lt;br /&gt;
informed that it is now his turn. To do this the updateDraftResult &lt;br /&gt;
function will send an email directing the next player &lt;br /&gt;
to the draft1846Last page.&lt;br /&gt;
&lt;br /&gt;
== function nextEmailResult(response) ==&lt;br /&gt;
Function nextEmailsResult is the call back function for the&lt;br /&gt;
ajax call to emailNext.php. It only needs to check for errors.&lt;br /&gt;
&lt;br /&gt;
== function finishDraft() ==&lt;br /&gt;
The finishDraft function updates the draft status to &amp;quot;Done&amp;quot;.&lt;br /&gt;
It then calls updtDraft.php to do the final update to the draft.&lt;br /&gt;
&lt;br /&gt;
== function finishDraftResult(result) ==&lt;br /&gt;
The finishDraftResult function is the call back function for &lt;br /&gt;
the ajax call by the finishDraft function to updtDraft.php. &lt;br /&gt;
It checks for collisions. Then it&lt;br /&gt;
uses emailDone.php to send a completed email to each player &lt;br /&gt;
and finally it calls the draftDone() function.&lt;br /&gt;
&lt;br /&gt;
== function doneEmailResult(response) ==&lt;br /&gt;
The doneEmailResult function is the call back function for &lt;br /&gt;
the ajax call to emailDone.php. It will have to&lt;br /&gt;
process returns from multiple emails for the same call.&lt;br /&gt;
It only needs to check for errors and it only needs to report &lt;br /&gt;
the first error.&lt;/div&gt;</summary>
		<author><name>Rich</name></author>
	</entry>
</feed>