• Post Reply Bookmark Topic Watch Topic
  • New Topic

Checkerboard Exercise - "Art and Science of Java"  RSS feed

 
Greenhorn
Posts: 15
Eclipse IDE Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Checkerboard is supposed to be centered with red and black checkers set up for play.

Do you want to tear apart my work? I will appreciate it! As you will see, I haven't figured out how to center the pieces yet.





Screen-shot-2011-07-17-at-8.55.33-PM.png
[Thumbnail for Screen-shot-2011-07-17-at-8.55.33-PM.png]
 
Marshal
Posts: 56610
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't write 45.The latter will get your draughtsmen into the middle of the squares. You can change TOKEN_SIZE from a constant, in which case you can allow for resizing of the whole board.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!