Hi All,
I am a student and learning j2me right now, I am working on a simple application wordgame in j2me but have some problem while filling up the matrix in starting.
Description of the program :
Program screen will have a 5*5 matrix devided into rows and columns. so it will contain 5 rows and 5 columns in each row at the screen and in this way we can show 25 characters in the cells on the screen.
Now i have words in an array, some words are of 5 characters and other have characters less then 5.
Now problem is how to fill this matrices with the words given in the array dynamically. Means i want everytime whenever the program will be run matrices will be filled by the characters (one character in each cell) and some words of the array will be hidden into this matrices.
User will have to search that words inside this matrices.
Now words may be filled
Horizontly, vertically, or diagonally.
Being a beginner i am not a good programmer and not able to make a perfact logic for the same.
I have created a logic but the code for that goes for around 150 lines and which creates the problem while running the whole application on real phone as for the further processing i also have to right a lot of code.
Is there anybody who can help me to do it by some simple logic.
Waiting for the reply
Regards,
Rohan
I am a student and learning j2me right now, I am working on a simple application wordgame in j2me but have some problem while filling up the matrix in starting.
Description of the program :
Program screen will have a 5*5 matrix devided into rows and columns. so it will contain 5 rows and 5 columns in each row at the screen and in this way we can show 25 characters in the cells on the screen.
Now i have words in an array, some words are of 5 characters and other have characters less then 5.
Now problem is how to fill this matrices with the words given in the array dynamically. Means i want everytime whenever the program will be run matrices will be filled by the characters (one character in each cell) and some words of the array will be hidden into this matrices.
User will have to search that words inside this matrices.
Now words may be filled
Horizontly, vertically, or diagonally.
Being a beginner i am not a good programmer and not able to make a perfact logic for the same.
I have created a logic but the code for that goes for around 150 lines and which creates the problem while running the whole application on real phone as for the further processing i also have to right a lot of code.
Is there anybody who can help me to do it by some simple logic.
Waiting for the reply
Regards,
Rohan