TauferLab / ExSciTecH

ExSciTecH is a set of educational tools used to promote the science used in the volunteer project Docking@Home.
0 stars 0 forks source link

Decouple Flashcard Game from deck selection #2

Closed saschlac closed 10 years ago

saschlac commented 10 years ago

The idea is to have one page to select the game you want to play and another page to actually play the game. So the selection page would have links to the game page (for example: play.php?ID=10) . Then the game page could pull the gameID from the URL and load the game data from the server as it is done currently. There are a couple of reasons we might want to do this:

saschlac commented 10 years ago

I think the primary benefit to having a separate page for game selection is that we can eventually swap out the game selection screen as mentioned in issue #10. Even now with only 16 test question sets it's difficult to even know that there are 16 question sets when you first land on http://exscitech.org/flashcards/ . By modularizing the application we can develop the two independently.

CMahaff commented 10 years ago

Actually it is already modularized by our framework - the JS and CSS for that 'screen' are separate from the main game JS and CSS. Changing both at once would not cause conflicts.

Again, I'd like to avoid mixing PHP and HTML where possible, and using JS to call the correct PHP functions (based on the URL parameters), as we have with other requests, would let us do that and keep us from having to redo the page from scratch.