Skip to content
Snippets Groups Projects
  1. Jul 31, 2019
  2. Jul 28, 2019
    • ReformCopyright's avatar
      Change DOCTYPE to HTML5 and make index.html conform. · 7d826345
      ReformCopyright authored
      Mainly involves:
      
      * adding `alt` attributes to all `<img>` and `<input type="image">` elements, at least empty ones,
      * adding `src` attributes to all `<img>` and `<input type="image">` elements. Uses a transparent image as a placeholder. blankcard.jpg is not needed; the card elements have backgrounds (which should be white, not off-white like name labels and speech bubbles),
      * fixing duplicate `id`s (partly by deleting the old individual filter modal),
      
      Other errors:
      
      * `<button>` mustn't contain block elements
      * boolean attributes, like `disabled`, do not take `true` and `false` as their values; they are true by existing, and if they have a value, it must be the same as the attribute name.
      * `<label>` can only contain one labelable control.
      * `<p>` can only contain inline elements and text.
      * `<ul>` must contain `<li>` elements.
      * `&` should be encoded as `&amp;`.
      
      Side effect:
      * Switching to HTML5 seems to add vertical space between lines of inline-block elements. The selection cards on the individual select screen were changed from `display: inline-block` to `float: left`.
      7d826345
  3. Jul 27, 2019
    • ReformCopyright's avatar
      Tooltip fixes · 3a2f18bf
      ReformCopyright authored
      * Refactor status icon and tooltip updating.
      * Initialize tooltips once and in one place (except for the individual selection screen, where selection cards are created dynamically) by setting tooltip attributes in index.html.
      * Change `updateIndividualSelectScreen()` to hiding and showing selection cards to avoid destroying the tooltip handlers.
      * Move `pointer-events: none` property to .opponent-image so that opponent suggestion status tooltips work.
      * Change placement of tooltips so they fit on screen.
      3a2f18bf
  4. Jul 22, 2019
  5. Jul 20, 2019
  6. Jul 17, 2019
  7. Jul 12, 2019
  8. Jul 08, 2019
  9. Jul 06, 2019
  10. Jul 02, 2019
    • ReformCopyright's avatar
      Focus the Enter buttons on the Warning and Title screens and the main button... · 6d662e31
      ReformCopyright authored
      Focus the Enter buttons on the Warning and Title screens and the main button on the Game screen to make sure that the keyboard handler works.
      6d662e31
    • ReformCopyright's avatar
      Improve keyboard handling. · 428a42e6
      ReformCopyright authored
      * Prevents the space key from pushing buttons at the same time as advancing the game (caused the game to advance two phases at a time if the main button had focus).
      * Sets focus in each modal.
      * Disables game key handler whenever a modal is displayed instead of toggling a variable in only some cases.
      * Blocks tabbing to control on the screen in the background whenever a modal is displayed.
      * Adds a focus indicator so you can know where you're tabbing.
      428a42e6
  11. Jun 20, 2019
  12. May 30, 2019
  13. May 11, 2019
  14. Apr 25, 2019
  15. Apr 23, 2019
    • ReformCopyright's avatar
      Rework option handling and storage: · 9878e883
      ReformCopyright authored
      1. localStorage is used instead of a cookie. Multiple entries are used, and keys have a prefix to avoid any collisions when hosted on other sites.
      
      2. The existing cookie is converted so as not to lose unlocked endings in particular. This code can be dropped some time in the future.
      
      3. Option values are handled and stored as-is intead of as opaque indices from 1 and up. For time values, this has the disadvantage that if we modify what e.g. "Slow" means, the old value will still be used until the user chooses a new option, but the advantages that we can later add more options or change the input elements to sliders without problems, plus the disadvantage can also be an advantage. Above all, there's no conversion back and forth and default values aren't specified in three or four places.
      
      4. Option change event handles are attached with jQuery and the option values stored in attributes.
      
      5. Backgrounds are renamed and moved to a subdirectory (that could have been done anyway; it's not a direct result of 3).
      
      6. Clothes selections are stored as arrays of article names instead of 18 true/false values.
      
      7. No separate askedUsageTracking flag. If no usageTracking value is in localStorage, then we haven't asked. Similarily, null is used for FORFEIT_DELAY and ENDING_DELAY to represent Disabled.
      9878e883
    • FarawayVision's avatar
    • FarawayVision's avatar
      Add minimalist UI prototype · 8c8b8107
      FarawayVision authored
      8c8b8107
  16. Mar 16, 2019
    • ReformCopyright's avatar
      Refactor poker code sililarly to v12 · ce19d11e
      ReformCopyright authored
      Define Card and Hand classes; make ranks and suits summary arrays members of Hand so that they can be reused by AI.
      
      As in v12, Ace is represented as 14 instead of 1 so that cards to be exchanged can be found by comparing them to he value array elements set by the determine() method of Hand.
      
      A simpler algorithm for finding straight draws is included. It also fixes the bug that traight draws are not attempted if the odd card out is higher than the cards to keep.
      
      More OOfication remains to be done.
      ce19d11e
  17. Mar 04, 2019
  18. Mar 03, 2019
  19. Mar 02, 2019
  20. Feb 15, 2019
Loading