User Tools

Site Tools


a_2048_gui

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
a_2048_gui [2026/02/12 16:28] frchrisa_2048_gui [2026/02/12 16:36] (current) frchris
Line 122: Line 122:
  for(int r = 0; r <= boardSize; r++) {  for(int r = 0; r <= boardSize; r++) {
      for(int i = 0; i < thickness ; i++)      for(int i = 0; i < thickness ; i++)
-                      g.drawLine(left, top + size*r, left + boardSize*size, top +size*r);+                      g.drawLine(left, top + size*r+i, left + boardSize*size, top +size*r+i);
  }  }
  
  for(int c = 0; c <= boardSize; c++){  for(int c = 0; c <= boardSize; c++){
                     for(int i = 0; i < thickness ; i++)                     for(int i = 0; i < thickness ; i++)
- g.drawLine(left+c*size, top ,left+c*size, top + boardSize* size);+ g.drawLine(left+c*size+i, top ,left+c*size+i, top + boardSize* size);
  }  }
  }  }
a_2048_gui.txt · Last modified: by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki