<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html">Comments - Silverlight - eCraft Labs</title>
  <icon>http://labs.ecraft.com/Content/icons/favicon.ico</icon>
  <logo>http://labs.ecraft.com/Content/icons/favicon.png</logo>
  <updated>2010-02-03T14:57:16.63</updated>
  <id>http://labs.ecraft.com/tags/silverlight/comments/atom</id>
  <link rel="alternate" type="text/html" hreflang="en" href="/tags/silverlight/atom"/>
  <link rel="self" type="application/atom+xml" href="http://labs.ecraft.com/Tags/Silverlight/Comments/ATOM"/>
  <generator uri="http://oxite.net" version="1.0">Oxite</generator>
  <entry>
    <title type="html">From Windows Forms to Silverlight (WPF)</title>
    <link rel="alternate" type="text/html" href="http://labs.ecraft.com/Code/From-Windows-Forms-to-Silverlight-(WPF)#c-201002030257166"/>
    <id>http://labs.ecraft.com/Code/From-Windows-Forms-to-Silverlight-(WPF)#c-201002030257166</id>
    <updated>2010-02-03T14:57:16.63</updated>
    <published>2010-02-03T14:57:16.63</published>
    <author>
      <name>Johnny Ribacka</name>
    </author>
    <content type="html" xml:lang="en">
      I already beat the &quot;normal&quot; computer 63-0, so in order for a high score table to be of use, the AI would probably need to be better.

The trick to really wiping the floor with the computer is to play a few games until you find a starting sequence where the computer surrenders a corner to you quite early in the game. After that it is often quite easy to win in a way that leaves the computer at 0...

Hi Jonte! :-)
    </content>
  </entry>
  <entry>
    <title type="html">From Windows Forms to Silverlight (WPF)</title>
    <link rel="alternate" type="text/html" href="http://labs.ecraft.com/Code/From-Windows-Forms-to-Silverlight-(WPF)#c-201002030149231"/>
    <id>http://labs.ecraft.com/Code/From-Windows-Forms-to-Silverlight-(WPF)#c-201002030149231</id>
    <updated>2010-02-03T13:49:23.183</updated>
    <published>2010-02-03T13:49:23.183</published>
    <author>
      <name>Tero Tapanainen</name>
    </author>
    <content type="html" xml:lang="en">
      Yes, if we want high secure version the moves should be send to the server. This way the server holds the state of the game and knows if illegal moves are tried to make. 

Actually to separate the AI etc. logic from the client and move to the server side woulnd't be that hard. Also the high score feature would be cool. Let's see if I have time to implement it.

-Tero
    </content>
  </entry>
  <entry>
    <title type="html">From Windows Forms to Silverlight (WPF)</title>
    <link rel="alternate" type="text/html" href="http://labs.ecraft.com/Code/From-Windows-Forms-to-Silverlight-(WPF)#c-201002020802470"/>
    <id>http://labs.ecraft.com/Code/From-Windows-Forms-to-Silverlight-(WPF)#c-201002020802470</id>
    <updated>2010-02-02T20:02:47.053</updated>
    <published>2010-02-02T20:02:47.053</published>
    <author>
      <name>Jon Wickstr&#246;m</name>
    </author>
    <content type="html" xml:lang="en">
      A somewhat secure highscore could be implemented by also submitting the moves. Number of turns is quite finite in reversi...  A server could replay the game and chek the computer moves are moves it possibly would have chosen.

But there is no easy way to check the player is human...
    </content>
  </entry>
  <entry>
    <title type="html">From Windows Forms to Silverlight (WPF)</title>
    <link rel="alternate" type="text/html" href="http://labs.ecraft.com/Code/From-Windows-Forms-to-Silverlight-(WPF)#c-201001281144305"/>
    <id>http://labs.ecraft.com/Code/From-Windows-Forms-to-Silverlight-(WPF)#c-201001281144305</id>
    <updated>2010-01-28T11:44:30.517</updated>
    <published>2010-01-28T11:44:30.517</published>
    <author>
      <name>Per Lundberg</name>
    </author>
    <content type="html" xml:lang="en">
      I should mention that this was on &quot;easy&quot; mode. :-)

Thanks for the source link! I might look into it some day. Some potential improvements/changes I've been thinking about:

- Add a &quot;high score&quot; table. This is an interesting challenge from a security point of view. If you just let the client report in the score after the game has been played, how can you trust the content to be reliable? A malicious user (developer) could place a handcrafted webservice call and &quot;cheat&quot; his way into the highscore chart. The only reliable way to implement this feature that I can think of would be to change the application to a client/server app, where each turn is validated by the server (rather than just the client).

This will change the app rather fundamentally, though. :-) Do you have any other ideas about how we could implement a high score listing in a secure manner?

Best regards,
Per
    </content>
  </entry>
  <entry>
    <title type="html">From Windows Forms to Silverlight (WPF)</title>
    <link rel="alternate" type="text/html" href="http://labs.ecraft.com/Code/From-Windows-Forms-to-Silverlight-(WPF)#c-201001270158393"/>
    <id>http://labs.ecraft.com/Code/From-Windows-Forms-to-Silverlight-(WPF)#c-201001270158393</id>
    <updated>2010-01-27T13:58:39.367</updated>
    <published>2010-01-27T13:58:39.367</published>
    <author>
      <name>Tero Tapanainen</name>
    </author>
    <content type="html" xml:lang="en">
      Yep, the computer could be tweaked a lot but with limited time (less that a week, mostly evenings) this was the best I could come up with :).

I added link to the full source at the end of the post.

-Tero

    </content>
  </entry>
  <entry>
    <title type="html">From Windows Forms to Silverlight (WPF)</title>
    <link rel="alternate" type="text/html" href="http://labs.ecraft.com/Code/From-Windows-Forms-to-Silverlight-(WPF)#c-201001260337423"/>
    <id>http://labs.ecraft.com/Code/From-Windows-Forms-to-Silverlight-(WPF)#c-201001260337423</id>
    <updated>2010-01-26T15:37:42.34</updated>
    <published>2010-01-26T15:37:42.34</published>
    <author>
      <name>Per Lundberg</name>
    </author>
    <content type="html" xml:lang="en">
      Yes! I won 32-31 in my first attempt to play it. (Oh, then I realized that there was one free spot as well, so the actual victory was a total of 39-25 to my advantage)

Really cool Tero, very good work. How about putting up the full source here? I'll gladly take a look at it and share my opinions.

Best regards,
Per
    </content>
  </entry>
</feed>
