<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>stealthcopter.com &#187; WordCube</title>
	<atom:link href="http://www.stealthcopter.com/blog/tag/wordcube/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stealthcopter.com/blog</link>
	<description>Android, Linux, Python and stealthcopters</description>
	<lastBuildDate>Sat, 24 Jul 2010 00:01:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Wordcube feedback</title>
		<link>http://www.stealthcopter.com/blog/2010/03/wordcube-feedback/</link>
		<comments>http://www.stealthcopter.com/blog/2010/03/wordcube-feedback/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 00:31:14 +0000</pubDate>
		<dc:creator>mat</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[WordCube]]></category>

		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=783</guid>
		<description><![CDATA[This page was created for feedback from users of wordcube available via the wordcube website or as an app for android phones (available in market). Filling in these polls and leaving feedback will help improve wordcube for everyone. Thanks for your feedback. Please post any bugs, suggestions, complaints or ideas below.]]></description>
			<content:encoded><![CDATA[<p>This page was created for feedback from users of wordcube available via the <a href="http://www.stealthcopter.com/wordcube">wordcube website</a> or as an app for android phones (available in market). Filling in these polls and leaving feedback will help improve wordcube for everyone.</p>
Note: There is a poll embedded within this post, please visit the site to participate in this post's poll.
Note: There is a poll embedded within this post, please visit the site to participate in this post's poll.
Note: There is a poll embedded within this post, please visit the site to participate in this post's poll.
Note: There is a poll embedded within this post, please visit the site to participate in this post's poll.
Note: There is a poll embedded within this post, please visit the site to participate in this post's poll.
<p>Thanks for your feedback. Please post any bugs, suggestions, complaints or ideas below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stealthcopter.com/blog/2010/03/wordcube-feedback/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Android: WordCube &#8211; Daily puzzle game</title>
		<link>http://www.stealthcopter.com/blog/2010/01/android-wordcube-daily-puzzle-game/</link>
		<comments>http://www.stealthcopter.com/blog/2010/01/android-wordcube-daily-puzzle-game/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 17:37:36 +0000</pubDate>
		<dc:creator>mat</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[WordCube]]></category>

		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=454</guid>
		<description><![CDATA[Due to the success (and small amount of addiction) of my browser-based wordcube game (see here), I decided to make a WordCube application for android. Features Anagram / Wordsearch based puzzle Small file size (~100kb) and footprint Updated daily Share score with twitter integration (compete with friends) Saves your last attempts so you can continue [...]]]></description>
			<content:encoded><![CDATA[<p>Due to the success (and small amount of addiction) of my browser-based wordcube game (<a href="http://www.stealthcopter.com/wordcube">see here</a>), I decided to make a WordCube application for android.</p>
<p><strong>Features</strong></p>
<ul>
<li>Anagram / Wordsearch based puzzle</li>
<li>Small file size (~100kb) and footprint</li>
<li>Updated daily</li>
<li>Share score with twitter integration (compete with friends)</li>
<li>Saves your last attempts so you can continue at later time</li>
<li>This also means you can continue your last game offline</li>
<li>Several achievements can be unlocked (more to come, also looking for suggestions for achievements)</li>
</ul>
<div id="attachment_501" class="wp-caption aligncenter" style="width: 330px"><a href="http://www.stealthcopter.com/blog/wp-content/uploads/2010/01/wordcube_ss1.png"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/01/wordcube_ss1.png" alt="wordcube screenshot" title="wordcube_ss1" width="320" height="480" class="size-full wp-image-501" /></a><p class="wp-caption-text">screenshot of wordcube</p></div>
<p><strong>Gameplay</strong><br />
Find as many words as possible using letters from the grid. The words must be 4 letters or more, contain the central letter and each letter may not be used more than once. There is at least one word that uses all of the letters in the cube.</p>
<p>The main interface is by tapping the letters in order to construct a word, but keyboards (and on screen keyboards) are also supported.</p>
<div id="attachment_502" class="wp-caption aligncenter" style="width: 330px"><a href="http://www.stealthcopter.com/blog/wp-content/uploads/2010/01/WordCubePro_ss2.png"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/01/WordCubePro_ss2.png" alt="wordcube screenshot 2" title="WordCubePro_ss2" width="320" height="480" class="size-full wp-image-502" /></a><p class="wp-caption-text">Another wordcube screenshot</p></div>
<p><strong>Twitter Integration </strong><br />
Once you have attained all the words that you can, you can post your score to twitter and then compare with your friends to see how they did in comparison. In order to use this feature you need to have a twitter client installed, I would recommend twidroid.</p>
<div id="attachment_503" class="wp-caption aligncenter" style="width: 345px"><a href="http://www.stealthcopter.com/blog/wp-content/uploads/2010/01/android_twidroid1.png"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/01/android_twidroid1.png" alt="wordcube twitter integration" title="android_twidroid" width="335" height="492" class="size-full wp-image-503" /></a><p class="wp-caption-text">Twitter integration in wordcube</p></div>
<p><strong>Download</strong><br />
WordCube can be downloaded from the market on your android phone either by searching for wordcube or following one the two android links below. To download the WordCube app from this website, follow the Web link.</p>
<p>Android: <a href="market://details/?id=com.sc.wordcubefree">WordCube Free</a><br />
Android: <a href="market://details/?id=com.sc.wordcubee">WordCube Pro</a> (only £1)<br />
Web: <a href="mhttp://www.stealthcopter.com/android/apps/wordcubefree/wordcubefree.apk">WordCube Free</a></p>
<p>The pro version is available for £1, with the money going to support the developer and the development and maintenance of this application. The pro version features all of the latest features and in the near future will support personal statistics to keep track of performance.</p>
<p>If you enjoyed this please leave feedback for me either here or on the market. Comments, suggestions and constructive criticism is also welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stealthcopter.com/blog/2010/01/android-wordcube-daily-puzzle-game/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Android: Blurring and dimming background windows from dialogs</title>
		<link>http://www.stealthcopter.com/blog/2010/01/android-blurring-and-dimming-background-windows-from-dialogs/</link>
		<comments>http://www.stealthcopter.com/blog/2010/01/android-blurring-and-dimming-background-windows-from-dialogs/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 22:32:03 +0000</pubDate>
		<dc:creator>mat</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[sdk]]></category>
		<category><![CDATA[WordCube]]></category>

		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=463</guid>
		<description><![CDATA[The android SDK has lots of nice goodies built in to make your applications look sexier. One such feature is the blurring of windows. This effect looks particularly nice if a background window is blurred while a dialog box is shown above which can really make it stand out. Below shows the application such an [...]]]></description>
			<content:encoded><![CDATA[<p>The android SDK has lots of nice goodies built in to make your applications look sexier. One such feature is the blurring of windows. This effect looks particularly nice if a background window is blurred while a dialog box is shown above which can really make it stand out. Below shows the application such an example; on the left is the default about box (for WordCube Pro) and on the right is with added blur and no dimming.</p>
<div id="attachment_466" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.stealthcopter.com/blog/wp-content/uploads/2010/01/android_dim_both.png"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/01/android_dim_both-300x221.png" alt="android blur dim, before, after" title="android_dim_both" width="300" height="221" class="size-medium wp-image-466" /></a><p class="wp-caption-text">android bluring and dimming effect before and after</p></div>
<p>I am using the AlterDialog.Builder to create my dialog, however this method will work with all kinds of dialog providing you can access it via getWindow.</p>
<pre name="code" class="java">
   dialog = new AlertDialog.Builder(WordCube.this)
   .setTitle(WordCube.this.getResources().getString(R.string.app_name))
   .setMessage(s)
   .setIcon(R.drawable.logo)
   .setPositiveButton(R.string.btn_close, null)
   .show();
</pre>
<p>Below shows the code needed to add blur and remove dimming of the background (as I think the blur looks nicer when the background is well lit).</p>
<pre name="code" class="java">
WindowManager.LayoutParams lp = dialog.getWindow().getAttributes();
lp.dimAmount=0.0f;
dialog.getWindow().setAttributes(lp);
dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
</pre>
<p>The blur is simply created using the last line (line 4) which sets a flag for the dialog telling android that we want windows below this one to be blurred. To achieve the dimming, we need to retrieve the layout parameters for the dialog window, set the dim amount to zero, update these parameters with setAttributes (lines 1-3).</p>
<p>Any comments, questions, or improvements please let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stealthcopter.com/blog/2010/01/android-blurring-and-dimming-background-windows-from-dialogs/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Python: Wordwheel / WordCube solver</title>
		<link>http://www.stealthcopter.com/blog/2009/12/python-wordwheel-wordcube-solver/</link>
		<comments>http://www.stealthcopter.com/blog/2009/12/python-wordwheel-wordcube-solver/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 17:36:50 +0000</pubDate>
		<dc:creator>mat</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[strings]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[WordCube]]></category>

		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=240</guid>
		<description><![CDATA[Often in newspapers there is a wordwheel or some variant, whereby you have to find as many words greater than 3 letters long, containing the centre word and using the letters no more than once. I have created a webpage that generates a &#8220;WordCube&#8221; daily for people to peruse at their leisure (www.stealthcopter.com/wordcube). This post [...]]]></description>
			<content:encoded><![CDATA[<p>Often in newspapers there is a wordwheel or some variant, whereby you have to find as many words greater than 3 letters long, containing the centre word and using the letters no more than once. I have created a webpage that generates a &#8220;WordCube&#8221; daily for people to peruse at their leisure (<a href="http://www.stealthcopter.com/wordcube">www.stealthcopter.com/wordcube</a>). This post contains the code and explanation of the solutions to wordcube&#8217;s (and all other word&lt;insert shape here&gt;). </p>
<p><img src="http://stealthcopter.com/wordcube/images/20091212.png" alt="WordCube from http://www.stealthcopter.com/wordcube for 12/12/2009" /><br />
Example WordCube image for the 12th December 2009 from <a href="http://www.stealthcopter.com/wordcube/2009/12/12">www.stealthcopter.com/wordcube/2009/12/12</a></p>
<p>Below is a function I wrote to check if an input was a valid anagram (or partial anagram, as it isn&#8217;t essential to use every letter). The function works by cycling over each letter of word we are testing (word), and checks if the letter is valid (checked against chkword). If the letter is valid then it removes the letter from the original word and moves to the next letter until we run out of letters (returns True) or if the letter is invalid (returns False).</p>
<pre name="code" class="python">
def anagramchk(word,chkword):
	for letter in word:
		if letter in chkword:
			chkword=chkword.replace(letter, '', 1)
		else:
			return False
	return True

f=open('english', 'r')
word=raw_input('Input letters (starting with mandatory letter) :')
minlen=4
count=0
for l in f:
	l=l.strip()
	if len(l)&lt;=len(word) and len(l)&gt;=minlen and word[0] in l and anagramchk(l,word):
		if len(l)==len(word):
			print l,'  &lt;-- Long word'
		else:
			print l
		count+=1
f.close()
print count
</pre>
<p>This will output a list of the possible words, along with a total. The results can be seen for the WordCube in the example above <a href="www.stealthcopter.com/wordcube/2009/12/12?solutions=1">here</a> (To prevent spoiling it if you&#8217;d like to have a go at it yourself).</p>
<p>As always I&#8217;d be interested to see if anyone knows any faster methods or any other general improvements or comments.</p>
<p>The dictionary file can be found here (not perfect):<br />
<a href="http://www.stealthcopter.com/files/english.txt">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stealthcopter.com/blog/2009/12/python-wordwheel-wordcube-solver/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
