Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 10th, 2012  |  syntax: None  |  size: 0.30 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. if (Key=='d') {  for(i=0;i<=30;i++)
  2.                         if (a[i]==1)
  3.                          {  a[i]=0; if (i<2){i=30; } a[i-1]=1; }
  4. show();
  5. }
  6.  
  7. if (Key=='a')  { for(i=0;i<=30;i++)
  8.                         if (a[i]==1)
  9.                          {  a[i]=0; if (i>29){i=2; } a[i+1]=1; }
  10. show();
  11. }