<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.hoenzb
        {mso-style-name:hoenzb;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Personally, I would just show a little movie (E-Prime 2, otherwise movie converted to BMP) of a roulette wheel (easy to make in flash, for instance), show that spinning for a bit and write a big number in a central square that is either black or red. More to the point, it seems to me like Corey has never used E-Prime before and should first work through the tutorial or <a href="http://step.psy.cmu.edu/materials/EPrimer.pdf">http://step.psy.cmu.edu/materials/EPrimer.pdf</a> because otherwise it’s a bit like telling an illiterate how to write an essay in ms word.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>(I did like your all-out canvas approach to the problem, btw)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Best,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Michiel<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> e-prime@googlegroups.com [mailto:e-prime@googlegroups.com] <b>On Behalf Of </b>ben robinson<br><b>Sent:</b> 22. May 2013 16:36<br><b>To:</b> eprime<br><b>Subject:</b> Re: E prime casino game code<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>It won't be the easiest thing to do if you've never programmed before, but not impossible. Take it one step at a time. Here's how I made a roulette wheel recently:<o:p></o:p></p><div><p class=MsoNormal>1) Learn to drawn a circle onscreen in an inline. This will eventually be your roulette wheel.<o:p></o:p></p></div><div><p class=MsoNormal>2) Learn to drawn radii at regular intervals around the circle, for as many slices as you'll want on your wheel. Use code to iterate the drawing of the first radius as many times as you need around the circle (For radiusNumber = 1 to NUMBER_OF_TOTAL_RADII; Next radiusNumber).<o:p></o:p></p></div><div><p class=MsoNormal>3) Try to assign a different color to each slice for as many outcomes as you anticipate needing on your wheel - if it's just win vs not win, you'll only need two colors.<o:p></o:p></p></div><div><p class=MsoNormal>4) Now whatever code you've used to accomplish the above, try to make that iterative (using a similar For Loop) so that the same wheel you've just drawn can be drawn once for each step of a full rotation, because eventually the wheel will need to spin and you want the colors of your slices to travel with their respective slices around a full rotation.<o:p></o:p></p></div><div><p class=MsoNormal>5) Save each step of this iterative drawing process to a different offScreenCanvas so that you can later copy and paste the various offScreenCanvases onto your main cavas.<o:p></o:p></p></div><div><p class=MsoNormal>6) Draw a little arrow or something to indicate visually the location where a winning slice will be determined. You know, the ticker thing that goes tic-tic-tic-tic-tic like in The Price Is Right.<o:p></o:p></p></div><div><p class=MsoNormal>7) Write code to draw the wheel spinning for a period of time. Maybe find a .wav file online for the sound of a roulette wheel spinning, and draw the wheel spinning for as long as it takes the .wav file to play to completion. Make sure you add enough randomness to this spinning process or it will be easy for the participant to anticipate given the wheel's starting position, which slice will wind up a winner.<o:p></o:p></p></div><div><p class=MsoNormal>8) Write code to check the color of the pixel shown near the point of your arrow, and perform different actions given this color. This way, when the wheel finishes spinning, you check to see the color of the slice immediately in front of the arrow. This is the winning slice, and the color of the pixel should tell you what outcome to present the participant.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Hope that helps.<o:p></o:p></p></div></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>On Tue, May 21, 2013 at 9:19 PM, Corey Christner <<a href="mailto:cchristner91@gmail.com" target="_blank">cchristner91@gmail.com</a>> wrote:<o:p></o:p></p><p class=MsoNormal>Hey everyone,<br><br>I'm a Junior psychology student, and am conducting an experiment dealing with Gambler's Fallacy this fall. I am trying to find code for a roulette wheel game, or at least get tips on how to write one. I'm brand new to the E prime program so any help would be appreciated. If you would like any more information or have any questions to ask, feel free! <br><span style='color:#888888'><br><span class=hoenzb>-Corey<o:p></o:p></span></span></p><p class=MsoNormal><span class=hoenzb><span style='color:#888888'>-- </span></span><span style='color:#888888'><br><span class=hoenzb>You received this message because you are subscribed to the Google Groups "E-Prime" group.</span><br><span class=hoenzb>To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:e-prime%2Bunsubscribe@googlegroups.com" target="_blank">e-prime+unsubscribe@googlegroups.com</a>.</span><br><span class=hoenzb>To post to this group, send email to <a href="mailto:e-prime@googlegroups.com" target="_blank">e-prime@googlegroups.com</a>.</span><br><span class=hoenzb>To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/c6cecb9a-c34f-4afd-a9b3-72178bd99bb7%40googlegroups.com?hl=en-US" target="_blank">https://groups.google.com/d/msgid/e-prime/c6cecb9a-c34f-4afd-a9b3-72178bd99bb7%40googlegroups.com?hl=en-US</a>.</span><br><span class=hoenzb>For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/groups/opt_out</a>.</span><br><span class=hoenzb> </span><br><span class=hoenzb> </span></span><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal>-- <br>You received this message because you are subscribed to the Google Groups "E-Prime" group.<br>To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:e-prime+unsubscribe@googlegroups.com">e-prime+unsubscribe@googlegroups.com</a>.<br>To post to this group, send email to <a href="mailto:e-prime@googlegroups.com">e-prime@googlegroups.com</a>.<br>To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/CABkDJUd9cipoO-gUrw8ssoFMTYm3rcPOzmN4-gDKqkHRydp3Rg%40mail.gmail.com?hl=en-US">https://groups.google.com/d/msgid/e-prime/CABkDJUd9cipoO-gUrw8ssoFMTYm3rcPOzmN4-gDKqkHRydp3Rg%40mail.gmail.com?hl=en-US</a>.<br>For more options, visit <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br> <br> <o:p></o:p></p></div></body></html>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe@googlegroups.com.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/001e01ce578b%247cfa1d40%2476ee57c0%24%40eu?hl=en-US">https://groups.google.com/d/msgid/e-prime/001e01ce578b%247cfa1d40%2476ee57c0%24%40eu?hl=en-US</a>.<br />
For more options, visit <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br />
 <br />
 <br />