package page.com.googleoids;

import org.wikiwebserver.handler.http.interfaces.*;

import page.config.SiteTemplatedPage;

import static org.wikiwebserver.html.HTMLHelper.*;

public class Instructions extends SiteTemplatedPage implements HTTPResponder {
    
    public void generate() {
        addCSSLink("/templates/com/googleoids/googleoids.css");  
        
        setTitle("How to play Googleoids");
        
        append("<h1>How to play</h1>" +
        	   ol(new String[] {
        	       "Poke the pictures to release letters.",
        	       "Use the letters to search for more pictures."
        	   })
        );
        
        append("<h1>Scoring</h1>" +
               "<p>Points are awarded based on the number of search results" +
               " returned and the number of letters used. If too few letters" +
               " are used or no search results returned, the game is over.</p>"
        );   
        
        append("<h1>Tips and tricks</h1>" +
                ol(new String[] {
                        "Blank squares function as spaces.",
                        "Use search engine terms such as <b>or</b> to maximise results."
                })
        );         
        
        append("<p>Googleoids was developed by Michael Gardiner</p>"
        );         
    }
}


