<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="et">
	<id>http://courses.cs.taltech.ee/w/index.php?action=history&amp;feed=atom&amp;title=ITI0011%3AHW01_Mall</id>
	<title>ITI0011:HW01 Mall - Redigeerimiste ajalugu</title>
	<link rel="self" type="application/atom+xml" href="http://courses.cs.taltech.ee/w/index.php?action=history&amp;feed=atom&amp;title=ITI0011%3AHW01_Mall"/>
	<link rel="alternate" type="text/html" href="http://courses.cs.taltech.ee/w/index.php?title=ITI0011:HW01_Mall&amp;action=history"/>
	<updated>2026-05-21T21:52:47Z</updated>
	<subtitle>Selle lehekülje redigeerimiste ajalugu</subtitle>
	<generator>MediaWiki 1.35.9</generator>
	<entry>
		<id>http://courses.cs.taltech.ee/w/index.php?title=ITI0011:HW01_Mall&amp;diff=4108&amp;oldid=prev</id>
		<title>Ago – 21. veebruar 2016, kell 02:37</title>
		<link rel="alternate" type="text/html" href="http://courses.cs.taltech.ee/w/index.php?title=ITI0011:HW01_Mall&amp;diff=4108&amp;oldid=prev"/>
		<updated>2016-02-21T02:37:34Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;et&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←Vanem redaktsioon&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Redaktsioon: 21. veebruar 2016, kell 02:37&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot; &gt;2. rida:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;2. rida:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;public class &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;HW01Bonus &lt;/del&gt;{&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;public class &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;HW01 &lt;/ins&gt;{&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     /**&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     /**&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      * Value to return in makeMove in case&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      * Value to return in makeMove in case&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l129&quot; &gt;129. rida:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;129. rida:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      */&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      */&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     public static int addHighscore(String id, String name, int score) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     public static int addHighscore(String id, String name, int score) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        // liiga väike score, või liiga lühike nimi, siis -1&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        // muul juhul indeks, mitmenda koha saan&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         return 1;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         return 1;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l173&quot; &gt;173. rida:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;171. rida:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    // bonus: soe-külm&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    // type: soe-külm, &amp;quot;tavaline&amp;quot;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     /**&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     /**&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ago</name></author>
	</entry>
	<entry>
		<id>http://courses.cs.taltech.ee/w/index.php?title=ITI0011:HW01_Mall&amp;diff=4107&amp;oldid=prev</id>
		<title>Ago: Uus lehekülg: &#039;Siin lehel on ITI0011 aine esimese kodutöö (Aardejaht) mall:  &lt;source lang=&quot;java&quot;&gt; public class HW01Bonus {     /**      * Value to return in makeMove in ...&#039;</title>
		<link rel="alternate" type="text/html" href="http://courses.cs.taltech.ee/w/index.php?title=ITI0011:HW01_Mall&amp;diff=4107&amp;oldid=prev"/>
		<updated>2016-02-21T02:36:37Z</updated>

		<summary type="html">&lt;p&gt;Uus lehekülg: &amp;#039;Siin lehel on ITI0011 aine esimese kodutöö (&lt;a href=&quot;/pages/ITI0011:Aardejaht&quot; title=&quot;ITI0011:Aardejaht&quot;&gt;Aardejaht&lt;/a&gt;) mall:  &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt; public class HW01Bonus {     /**      * Value to return in makeMove in ...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Uus lehekülg&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Siin lehel on ITI0011 aine esimese kodutöö ([[ITI0011:Aardejaht|Aardejaht]]) mall:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
public class HW01Bonus {&lt;br /&gt;
    /**&lt;br /&gt;
     * Value to return in makeMove in case&lt;br /&gt;
     * the cell was empty.&lt;br /&gt;
     */&lt;br /&gt;
    public static final int CELL_EMPTY = 0;&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * Value to return in makeMove in case&lt;br /&gt;
     * the cell contained treasure.&lt;br /&gt;
     */&lt;br /&gt;
    public static final int CELL_TREASURE = 10;&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * Value for a cell which is hidden&lt;br /&gt;
     * (the contents of the cell is not visible).&lt;br /&gt;
     * Used in bonus part 1.&lt;br /&gt;
     */&lt;br /&gt;
    public static final int CELL_HIDDEN = 100;&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * Value to return in makeMove in case&lt;br /&gt;
     * the cell does not exist.&lt;br /&gt;
     */&lt;br /&gt;
&lt;br /&gt;
    public static final int CELL_ERROR = -1;&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * Used to indicate that the score is wrong.&lt;br /&gt;
     * Used by getHighscoreScoreAtIndex()&lt;br /&gt;
     */&lt;br /&gt;
    public static final int HIGHSCORE_WRONG = Integer.MIN_VALUE;&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * Minsweeper-like clearing in case of empty cells.&lt;br /&gt;
     */&lt;br /&gt;
    public static final int GAME_TYPE_MINESWEEPER = 1;&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * Cell contains the distance to the closest treasure.&lt;br /&gt;
     */&lt;br /&gt;
    public static final int GAME_TYPE_HOT_COLD = 2;&lt;br /&gt;
    /**&lt;br /&gt;
     * Makes move to cell in certain row and column&lt;br /&gt;
     * and returns the contents of the cell.&lt;br /&gt;
     * Use CELL_* constants in return.&lt;br /&gt;
     * @param row Row to make move to.&lt;br /&gt;
     * @param col Column to make move to.&lt;br /&gt;
     * @return Contents of the cell.&lt;br /&gt;
     */&lt;br /&gt;
    public static int makeMove(int row, int col) {&lt;br /&gt;
        if (row == -1) return CELL_ERROR;&lt;br /&gt;
        return CELL_EMPTY;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * Creates a map with certain measures and treasures.&lt;br /&gt;
     * You should store the created map internally.&lt;br /&gt;
     * This means you can choose your own implementation of how to store&lt;br /&gt;
     * the map.&lt;br /&gt;
     * The treasures should be put on the map randomly using setCell method.&lt;br /&gt;
     * @param height Height of the map.&lt;br /&gt;
     * @param width Width of the map.&lt;br /&gt;
     * @param treasures The number of treasures on the map.&lt;br /&gt;
     * @return Whether map was created.&lt;br /&gt;
     */&lt;br /&gt;
    public static boolean createMap(int height, int width, int treasures) {&lt;br /&gt;
        // initialize map (for example 2D-array)&lt;br /&gt;
        //   - set all cells empty (is this needed?)&lt;br /&gt;
        // do some random for every treasure and add them to map:&lt;br /&gt;
        setCell(2, 3, CELL_TREASURE);&lt;br /&gt;
&lt;br /&gt;
        if (height == -3) return false;&lt;br /&gt;
        return false;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * Sets the cell value for the active map (created earlier using&lt;br /&gt;
     * createMap method).&lt;br /&gt;
     * This method is required to test certain maps&lt;br /&gt;
     * @param row Row index.&lt;br /&gt;
     * @param col Column index.&lt;br /&gt;
     * @param cellContents The value of the cell.&lt;br /&gt;
     * @return Whether the cell value was set.&lt;br /&gt;
     */&lt;br /&gt;
    public static boolean setCell(int row, int col, int cellContents) {&lt;br /&gt;
        if (row == -123) return false;&lt;br /&gt;
        return false;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * Gets the used move count by the player.&lt;br /&gt;
     * @return The number of moves done.&lt;br /&gt;
     */&lt;br /&gt;
    public static int getMoveCount() {&lt;br /&gt;
        return 1;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * Returns cell contents at the given row and column.&lt;br /&gt;
     * @param row Row index&lt;br /&gt;
     * @param col Column index&lt;br /&gt;
     * @return Cell contents according to CELL_* constants.&lt;br /&gt;
     * In case the cell contains number of treasures, returns this number.&lt;br /&gt;
     */&lt;br /&gt;
    public static int getCell(int row, int col) {&lt;br /&gt;
        // open with treasure number =&amp;gt; 4&lt;br /&gt;
        // treasure =&amp;gt; CELL_TREASURE&lt;br /&gt;
        // open with treasure number == 0 =&amp;gt; 0 or CELL_EMPTY&lt;br /&gt;
        // hidden (not yet opened)&lt;br /&gt;
        return CELL_HIDDEN;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * Adds a player name and score to one of the highscore tables.&lt;br /&gt;
     * @param id Highscore table to use. This can be&lt;br /&gt;
     *           configuration or name etc. In case the game has several&lt;br /&gt;
     *           highscore tables (one for minesweeper version, one for&lt;br /&gt;
     *           hot-cold version) they have to have different ids.&lt;br /&gt;
     * @param name The name of the player.&lt;br /&gt;
     * @param score The score of the player.&lt;br /&gt;
     * @return The index where the player is put. In case&lt;br /&gt;
     * the name is too short, the table with id does not exist&lt;br /&gt;
     * or the score is too low, returns -1.&lt;br /&gt;
     */&lt;br /&gt;
    public static int addHighscore(String id, String name, int score) {&lt;br /&gt;
        // liiga väike score, või liiga lühike nimi, siis -1&lt;br /&gt;
        // muul juhul indeks, mitmenda koha saan&lt;br /&gt;
        return 1;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * Gets the score from the concrete table at concrete index.&lt;br /&gt;
     * @param id The highscore table to use.&lt;br /&gt;
     * @param index The index of the score to be returned&lt;br /&gt;
     * @return The score at the index. If the table does not exist&lt;br /&gt;
     * or the index is not acceptable, returns -1.&lt;br /&gt;
     */&lt;br /&gt;
    public static int getHighscoreScoreAtIndex(String id, int index) {&lt;br /&gt;
        return HIGHSCORE_WRONG;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * Gets the name of the player from the conrete table&lt;br /&gt;
     * at concrete index.&lt;br /&gt;
     * @param id The highscore table to use.&lt;br /&gt;
     * @param index The index of the player to be returned.&lt;br /&gt;
     * @return The name at the index. If the table does not exist&lt;br /&gt;
     * or the index is not acceptable, return null.&lt;br /&gt;
     */&lt;br /&gt;
    public static String getHighscoreNameAtIndex(String id, int index) {&lt;br /&gt;
        return null;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * Returns all the available highscore table ids.&lt;br /&gt;
     * @return An array of table ids.&lt;br /&gt;
     */&lt;br /&gt;
    public static String[] getHighscoreTables() {&lt;br /&gt;
        return null;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * Resets (clears) highscore table.&lt;br /&gt;
     * @param id The id of the table to be reset.&lt;br /&gt;
     */&lt;br /&gt;
    public static void resetHighscores(String id) {&lt;br /&gt;
        //&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    // bonus: soe-külm&lt;br /&gt;
    // type: soe-külm, &amp;quot;tavaline&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * Starts a game with the given mode.&lt;br /&gt;
     * This allows the game to switch between &amp;quot;minesweeper&amp;quot; and &amp;quot;hot-cold&amp;quot;&lt;br /&gt;
     * variants. Even if you only choose to implement the &amp;quot;hot-cold&amp;quot; variant&lt;br /&gt;
     * this method is required to test it. Minesweeper variant is the default.&lt;br /&gt;
     * @param type The type of game to start.&lt;br /&gt;
     */&lt;br /&gt;
    public static void startGame(int type) {&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * Returns the distance to the closest treasure.&lt;br /&gt;
     * The distance indicates the minimum steps it takes to get from&lt;br /&gt;
     * the given (row, col) to the closest treasure.&lt;br /&gt;
     * Step can be taken to every adjacent cell (horisontal, vertical and&lt;br /&gt;
     * diagonal). From one cell you can step to 8 other cells.&lt;br /&gt;
     * &amp;lt;pre&amp;gt;&lt;br /&gt;
     * Example:&lt;br /&gt;
     * ...C&lt;br /&gt;
     * .B..&lt;br /&gt;
     * A...&lt;br /&gt;
     * ..DP&lt;br /&gt;
     * &amp;lt;/pre&amp;gt;&lt;br /&gt;
     *&lt;br /&gt;
     * distances:&lt;br /&gt;
     * AP = 3&lt;br /&gt;
     * BP = 2&lt;br /&gt;
     * CP = 3&lt;br /&gt;
     * DP = 1&lt;br /&gt;
     *&lt;br /&gt;
     * @param row Row index&lt;br /&gt;
     * @param col Col index&lt;br /&gt;
     * @return The distance to the closest treasure&lt;br /&gt;
     */&lt;br /&gt;
    public static int getDistanceToClosestTreasure(int row, int col) {&lt;br /&gt;
        return 0;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ago</name></author>
	</entry>
</feed>