Can you suggest a framework/libary/plug in to make this app (described within) easier
I am tasked with writing an application that is similar to battle ship. There is a 100x100 grid. Initial, each cell of the grid has a red box in it. A user clicks the red box, enters a special code that they were given, and that red box reveals a letter or a blank space. There a certain "winning words". So lets say the letters WINNIN have been revealed. The person who reveals the G is a "winner". So, the application does a few things:
Firstly, after a user clicks the square and enters a code, it checks to see if the code is valid.
Then, assuming the code is valid, the red square turns into a letter or a blank space.
If a letter is revealed, the system checks to see if it's a "winning" letter. Therefore, the system would need to see if the other letters in that same word have been revealed.
The thing to do is to change the image immediately with jQuery and update the value via ajax. When you initially load the application, you will need to load the images based on values in the database.
jQuery is going to be good, but you will have to mix in some PHP for writing values to the database.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)