User:YAYitsAndrew: Difference between revisions

From TetrisWiki
Jump to navigation Jump to search
*>YAYitsAndrew
*>YAYitsAndrew
Line 51: Line 51:
</pre>
</pre>


Possibly working Winter code (untested):
Winter!
<pre>
<pre>
{{#for | {{#setvar|i|0}} || {{#i|<|#2}} || {{#i|++}} ||
{{#for | {{#setvar|i|0}} || {{#i|<|#2}} || {{#i|++}} ||
Line 60: Line 60:
}}
}}
</pre>
</pre>
[[Template:WinterPlayingField]]


== About Me ==
== About Me ==

Revision as of 05:10, 18 April 2006

Friend Code

248208
158890

Current Events

Template:PlayingField Wikimedia templates do not lend themselves to a variable template very well because there are no conditional or looping constructs. I'll play with it for a bit though and see if it's doable. I'm a computer science major in my senior year.

Pseudocode for if Winter gets installed:

makePlayingField(int a_width, int a_height, char[] a_blocks)
{
  for(int i=0; i<a_height; i++)
  {
    println makePlayingFieldRow(a_width, i*a_height, a_blocks);
  }
}

makePlayingfieldRow(int a_width, int a_offset, char[] a_blocks)
{
  for(int j=0; j<a_width; j++)
  {
    print char[a_offset+j] + "Tet.png";
  }
}

Winter!

{{#for | {{#setvar|i|0}} || {{#i|<|#2}} || {{#i|++}} ||
  {{#for | {{#setvar|j|0}} || {{#j|<|#1}} || {{#j|++}} ||
    [[Image:{{#{{#formula | (#i * #2) + #j}}}}Tet.png]]
  }}
  <br/>
}}

Template:WinterPlayingField

About Me

  • I'm an intermediate tetris player in the Jersey City/Hoboken, NJ area.
  • I help make games in my free time: gamedozer.com
  • I also have a personal webspace with utilities I wrote: yayitsandrew.com

Contact Info

Yahoo IM: YAYitsAndrew