posted Dec 3, 2013, 7:57 AM by Samuel Konstantinovich   [ updated Dec 3, 2013, 9:30 AM ]
Goal: Word Search basics.
-Design a data structure to hold the words.
-Decide on how the overall program would work.
-Decide on how to start writing this program.
-Implement the first method, and a way to test it.

Start with

public class WordGrid{
    private char[][]data;

    /*create your grid as an array like: char[rows][cols]
      they should be blank to start
    public WordGrid(int rows,int cols){


    /*sets all values to underscores '_'*/
    private void clear(){


    /*print the characters.
      place spaces between adjacent values
      place newlines at the end of each row
    public String toString(){

    /*attempt to add a given word to the specified position
      if the word does not fit, or if the word overlaps a non matching letter:
        return false.
        add the word to the grid and return true.
    public boolean addWordHorizontal(String word,int row, int col){


    /*vertical + diagonal should be implemented as well.*/