Actually I need all the permutations.
It isn't an assignment for a class, its actually for a game I'm currently designing. It is going to be a 3D version of the game Boggle played on a 3x3x3 cube that can be rotated to see the various faces. I'm currently working on a way to find all of the allowable words on the cube. I'm starting with 7 letter words only and then I'll expand from there. I have a table in the DB with all 7 letter words (from the English language) divided into 7 seperate fields, each field is a text field max length 1 character. I then have a table that is generated for each new cube. The fields are FaceName (byte), Letter (text), X Coord (byte), Y Coord (byte), Z Coord (byte).
I'm working on generating possible 7 letter combinations where ((X1-X2)^2 + (Y1-Y2)^2 + (Z1-Z2)^2) <=2. That will give me only the cubes bordering each other. I just need a way to eliminate it from repeating the same cubeface twice.
I'm basically making the game purely for my own amusement right now. I'll be programming it in
VB but thought that using a DB would be easier and allow me to do my since I don't know enough code to do everything purely in
VB.