Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Using TDD to create a Boggle board with the ability to rotate.

 
Ranch Hand
Posts: 87
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey folks. I thought I would come of to the Agile area and meet a few people who have similar outlooks. I feel Agile coding is important to me, even in my early stages. I also want to share what I am working on and ask if anyone would care to share a few pointers.

I have been practicing TDD quite a bit and here is a thread that I started where I have gotten most of my TDD and SOLID practice TDD-Simple-Calculator

As for this thread (the Boggle board), is I want to try building a simple boggle board generator and one that can rotate the board. There will be no in game mechanics. It is a simple Boggle board generator and rotator (kinda like the game Wordament in app stores).

-console output,
-take user input of n and create a board n^2
-generates all random letters.
-board can rotate 90 degrees at a time and refactor the board with the correct letters.

This is to be simple.


I have imagined what the program is supposed to do and I asked myself what does this program look like. What type of methods? What should it do with user input?

So to keep it simple, I figured write a test that will take a user input and create a string of that length squared. Is this an ok first test?

so like this...


 
Michael Bruce Allen
Ranch Hand
Posts: 87
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
probably not that interesting, I know. I am just trying to learn to be a efficient coder.
 
author & internet detective
Posts: 40795
828
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For me, it isn't that it is uninteresting. It's that I looked at the length of the original thread and am not going to be able to check the thread that many times.

I'm guessing this is psuedo code?


I'm confused by it because it doesn't seem like a String is a good choice of data structure of a 2D board. Why not use a char[][]?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic