User:YAYitsAndrew: Difference between revisions

From TetrisWiki
Jump to navigation Jump to search
*>YAYitsAndrew
*>YAYitsAndrew
Line 5: Line 5:
== Current Events ==
== Current Events ==
*I'll be competing at the Nintendo World Store's May 7th Tetris DS tournament, Battle at the Plaza 05/2006.
*I'll be competing at the Nintendo World Store's May 7th Tetris DS tournament, Battle at the Plaza 05/2006.
*Working on [[Template:PlayingField]], [[Template:PlayingFieldRow]], [[Template:PlayingFieldNoRow]]
*[[Template:WinterPlayingField]]
{{PlayingField|Row|l| | |j| |i|i|i|i| |=
              |Row|l| | |j| | |i| | | |=
              |Row|l|l|j|j| | |i| | | |=
              |Row|j|j|l|l| | |i| | | |=
              |Row|j| | |l| | |i| | | |=
              |Row|j| | |l| |i|i|i|i| |=
              |NoRow|||||||||||=
              |NoRow|||||||||||=
              |NoRow|||||||||||=
              |NoRow|||||||||||=
              |NoRow|||||||||||=
              |NoRow|||||||||||=
              |NoRow|||||||||||=
              |NoRow|||||||||||=
              |NoRow|||||||||||=
              |NoRow|||||||||||=
              |NoRow|||||||||||=
              |NoRow|||||||||||=
              |NoRow|||||||||||=
              |NoRow|||||||||||=
              |NoRow|||||||||||=
              |NoRow|||||||||||=
              |NoRow|||||||||||=
              |NoRow|||||||||||}}
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:
<pre>
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";
  }
}
</pre>
 
Winter!
<pre>
{{#for | {{#setvar|i|0}} || {{#i|<|#2}} || {{#i|++}} ||
  {{#for | {{#setvar|j|0}} || {{#j|<|#1}} || {{#j|++}} ||
    [[Image:{{#{{#formula | (#i * #2) + #j + 3}}}}Tet.png]]
  }}
  <br/>
}}
</pre>
[[Template:WinterPlayingField]]


{{WinterPlayingField|10|1|j|j|j|j| | |j|j|j|j}}
{{WinterPlayingField|10|1|j|j|j|j| | |j|j|j|j}}

Revision as of 04:06, 19 April 2006

Friend Code

248208
158890

Current Events

{{#setvar|width|10}} {{#setvar|height|1}} {{#for | {{#setvar|i|0}} || {{#i | < | {{#height}} }} || {{#i|++}} || {{#for | {{#setvar|j|0}} || {{#j | < | {{#width}} }} || {{#j|++}} || [[Image:^_(^_(^_({{#op | {{#i}} | * | {{#height}} | + | {{#j}} | + | 3}}^_)^_)^_)Tet.png]] }}
}}

<nowinter>

</nowinter>

{{#setvar|width|10}} {{#setvar|height|2}} {{#for | {{#setvar|i|0}} || {{#i | < | {{#height}} }} || {{#i|++}} || {{#for | {{#setvar|j|0}} || {{#j | < | {{#width}} }} || {{#j|++}} || [[Image:^_(^_(^_({{#op | {{#i}} | * | {{#height}} | + | {{#j}} | + | 3}}^_)^_)^_)Tet.png]] }}
}}

<nowinter>

</nowinter>

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